@roundtable-bb/sdk 0.1.0 → 0.1.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@roundtable-bb/sdk",
3
- "version": "0.1.0",
3
+ "version": "0.1.2",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",
@@ -1,7 +1,7 @@
1
1
  // AUTO-GENERATED — do not edit manually.
2
2
  // Run `nx run @roundtable-bb/sdk:codegen` to regenerate.
3
3
 
4
- import type { ApiKey, Category, CreateApiKey, CreateCategory, CreateGroup, CreatePost, CreateTenant, CreateThread, CreatedApiKey, GrantPlatformOwner, Group, Id, Notification, PaginatedResponse, PlatformSetting, Post, SearchResponse, SetGroupCategories, SetGroupPermissions, SetThreadReadStatus, SetUserMembership, Tenant, TenantToken, Thread, ThreadReadStatus, UpdateCategory, UpdateGroup, UpdatePlatformSetting, UpdateThread, UpdateUserProfile, UserMembership, UserProfile } from '@roundtable-bb/types'
4
+ import type { ApiKey, Category, CreateApiKey, CreateGroup, CreatePost, CreateTenant, CreateThread, CreatedApiKey, GrantPlatformOwner, Id, Notification, PaginatedResponse, PlatformSetting, Post, SearchResponse, SetGroupCategories, SetThreadReadStatus, Tenant, TenantToken, Thread, ThreadReadStatus, UpdateGroup, UpdatePlatformSetting, UpdateThread, UpdateUserProfile, UserProfile } from '@roundtable-bb/types'
5
5
  import { request, type RoundtableClientOpts } from '../request.js'
6
6
 
7
7
  export class RoundtableClient {
@@ -13,12 +13,12 @@ export class RoundtableClient {
13
13
  }
14
14
 
15
15
  /** Create a category (admin) */
16
- createCategory(body: CreateCategory): Promise<Category> {
16
+ createCategory(body: unknown): Promise<Category> {
17
17
  return request(this.opts, 'POST', '/categories', { body })
18
18
  }
19
19
 
20
20
  /** Create a group (admin) */
21
- createGroup(body: CreateGroup): Promise<Group> {
21
+ createGroup(body: CreateGroup): Promise<unknown> {
22
22
  return request(this.opts, 'POST', '/groups', { body })
23
23
  }
24
24
 
@@ -78,7 +78,7 @@ export class RoundtableClient {
78
78
  }
79
79
 
80
80
  /** Get a group */
81
- getGroup(params: { id: string }): Promise<Group> {
81
+ getGroup(params: { id: string }): Promise<unknown> {
82
82
  return request(this.opts, 'GET', `/groups/${params.id}`)
83
83
  }
84
84
 
@@ -103,7 +103,7 @@ export class RoundtableClient {
103
103
  }
104
104
 
105
105
  /** Get user membership in the current forum */
106
- getUserMembership(params: { id: string }): Promise<UserMembership> {
106
+ getUserMembership(params: { id: string }): Promise<unknown> {
107
107
  return request(this.opts, 'GET', `/users/${params.id}/membership`)
108
108
  }
109
109
 
@@ -123,7 +123,7 @@ export class RoundtableClient {
123
123
  }
124
124
 
125
125
  /** List groups */
126
- listGroups(): Promise<Group[]> {
126
+ listGroups(): Promise<unknown> {
127
127
  return request(this.opts, 'GET', '/groups')
128
128
  }
129
129
 
@@ -168,12 +168,12 @@ export class RoundtableClient {
168
168
  }
169
169
 
170
170
  /** Set category visibility for a group (admin) */
171
- setGroupCategories(params: { id: string }, body: SetGroupCategories): Promise<Group> {
171
+ setGroupCategories(params: { id: string }, body: SetGroupCategories): Promise<unknown> {
172
172
  return request(this.opts, 'PUT', `/groups/${params.id}/categories`, { body })
173
173
  }
174
174
 
175
175
  /** Replace all permissions for a group (admin) */
176
- setGroupPermissions(params: { id: string }, body: SetGroupPermissions): Promise<Group> {
176
+ setGroupPermissions(params: { id: string }, body: unknown): Promise<unknown> {
177
177
  return request(this.opts, 'PUT', `/groups/${params.id}/permissions`, { body })
178
178
  }
179
179
 
@@ -183,7 +183,7 @@ export class RoundtableClient {
183
183
  }
184
184
 
185
185
  /** Set user group in the current forum (admin) */
186
- setUserMembership(params: { id: string }, body: SetUserMembership): Promise<UserMembership> {
186
+ setUserMembership(params: { id: string }, body: unknown): Promise<unknown> {
187
187
  return request(this.opts, 'PUT', `/users/${params.id}/membership`, { body })
188
188
  }
189
189
 
@@ -198,12 +198,12 @@ export class RoundtableClient {
198
198
  }
199
199
 
200
200
  /** Update a category (admin) */
201
- updateCategory(params: { id: string }, body: UpdateCategory): Promise<Category> {
201
+ updateCategory(params: { id: string }, body: unknown): Promise<Category> {
202
202
  return request(this.opts, 'PATCH', `/categories/${params.id}`, { body })
203
203
  }
204
204
 
205
205
  /** Update a group (admin) */
206
- updateGroup(params: { id: string }, body: UpdateGroup): Promise<Group> {
206
+ updateGroup(params: { id: string }, body: UpdateGroup): Promise<unknown> {
207
207
  return request(this.opts, 'PATCH', `/groups/${params.id}`, { body })
208
208
  }
209
209
 
package/tsconfig.lib.json CHANGED
@@ -9,5 +9,12 @@
9
9
  "types": ["node"]
10
10
  },
11
11
  "include": ["src/**/*.ts"],
12
- "references": []
12
+ "references": [
13
+ {
14
+ "path": "../types/tsconfig.lib.json"
15
+ },
16
+ {
17
+ "path": "../../apps/api/tsconfig.app.json"
18
+ }
19
+ ]
13
20
  }