@foru-ms/sdk 1.3.2 → 1.3.3
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/README.md +5 -0
- package/dist/types.d.ts +5 -0
- package/package.json +1 -1
- package/src/types.ts +5 -0
package/README.md
CHANGED
|
@@ -553,6 +553,11 @@ We welcome contributions! Please see our contributing guidelines for more inform
|
|
|
553
553
|
|
|
554
554
|
## Changelog
|
|
555
555
|
|
|
556
|
+
### v1.3.3
|
|
557
|
+
- Added postsCount?: number and threadsCount?: number to User interface
|
|
558
|
+
- Added postsCount?: number and lastPostAt?: string to Thread interface
|
|
559
|
+
- Added tags?: string[] to UpdateThreadPayload
|
|
560
|
+
|
|
556
561
|
### v1.3.2
|
|
557
562
|
- Fixed issue with optional parameters not being optional in typescript
|
|
558
563
|
|
package/dist/types.d.ts
CHANGED
|
@@ -14,6 +14,8 @@ export interface User {
|
|
|
14
14
|
displayName: string | null;
|
|
15
15
|
roles?: any[];
|
|
16
16
|
extendedData?: Record<string, any>;
|
|
17
|
+
postsCount?: number;
|
|
18
|
+
threadsCount?: number;
|
|
17
19
|
createdAt?: string;
|
|
18
20
|
updatedAt?: string;
|
|
19
21
|
}
|
|
@@ -25,6 +27,8 @@ export interface Thread {
|
|
|
25
27
|
userId: string;
|
|
26
28
|
locked: boolean;
|
|
27
29
|
pinned: boolean;
|
|
30
|
+
postsCount?: number;
|
|
31
|
+
lastPostAt?: string;
|
|
28
32
|
createdAt: string;
|
|
29
33
|
updatedAt: string;
|
|
30
34
|
user?: User;
|
|
@@ -64,6 +68,7 @@ export interface UpdateThreadPayload {
|
|
|
64
68
|
userId?: string;
|
|
65
69
|
locked?: boolean;
|
|
66
70
|
pinned?: boolean;
|
|
71
|
+
tags?: string[];
|
|
67
72
|
extendedData?: Record<string, any>;
|
|
68
73
|
}
|
|
69
74
|
export interface Post {
|
package/package.json
CHANGED
package/src/types.ts
CHANGED
|
@@ -16,6 +16,8 @@ export interface User {
|
|
|
16
16
|
displayName: string | null;
|
|
17
17
|
roles?: any[]; // Refine if needed
|
|
18
18
|
extendedData?: Record<string, any>;
|
|
19
|
+
postsCount?: number;
|
|
20
|
+
threadsCount?: number;
|
|
19
21
|
createdAt?: string;
|
|
20
22
|
updatedAt?: string;
|
|
21
23
|
}
|
|
@@ -29,6 +31,8 @@ export interface Thread {
|
|
|
29
31
|
userId: string;
|
|
30
32
|
locked: boolean;
|
|
31
33
|
pinned: boolean;
|
|
34
|
+
postsCount?: number;
|
|
35
|
+
lastPostAt?: string;
|
|
32
36
|
createdAt: string;
|
|
33
37
|
updatedAt: string;
|
|
34
38
|
user?: User;
|
|
@@ -70,6 +74,7 @@ export interface UpdateThreadPayload {
|
|
|
70
74
|
userId?: string;
|
|
71
75
|
locked?: boolean;
|
|
72
76
|
pinned?: boolean;
|
|
77
|
+
tags?: string[];
|
|
73
78
|
extendedData?: Record<string, any>;
|
|
74
79
|
}
|
|
75
80
|
|