@roundtable-bb/sdk 0.1.40 → 0.1.41
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/dist/index.d.ts +11 -1
- package/dist/index.js +8 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -149,6 +149,7 @@ type ReorderCategory = z.infer<typeof ReorderCategorySchema>;
|
|
|
149
149
|
declare const ForumSchema: z.ZodObject<{
|
|
150
150
|
id: z.ZodUUID;
|
|
151
151
|
categoryId: z.ZodUUID;
|
|
152
|
+
parentId: z.ZodNullable<z.ZodUUID>;
|
|
152
153
|
name: z.ZodString;
|
|
153
154
|
description: z.ZodNullable<z.ZodString>;
|
|
154
155
|
position: z.ZodNumber;
|
|
@@ -158,11 +159,13 @@ declare const ForumSchema: z.ZodObject<{
|
|
|
158
159
|
}, z.core.$strip>;
|
|
159
160
|
declare const CreateForumSchema: z.ZodObject<{
|
|
160
161
|
categoryId: z.ZodUUID;
|
|
162
|
+
parentId: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
|
|
161
163
|
name: z.ZodString;
|
|
162
164
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
163
165
|
isHidden: z.ZodOptional<z.ZodBoolean>;
|
|
164
166
|
}, z.core.$strip>;
|
|
165
167
|
declare const UpdateForumSchema: z.ZodObject<{
|
|
168
|
+
parentId: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
|
|
166
169
|
name: z.ZodOptional<z.ZodString>;
|
|
167
170
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
168
171
|
isHidden: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -1014,7 +1017,14 @@ declare class RoundtableClient {
|
|
|
1014
1017
|
}, options?: {
|
|
1015
1018
|
authMethod?: AuthMethod;
|
|
1016
1019
|
}): Promise<PaginatedResponse<Thread>>;
|
|
1017
|
-
/** List
|
|
1020
|
+
/** List the direct sub-forums of a forum */
|
|
1021
|
+
listForumChildren(params: {
|
|
1022
|
+
tenantId: string;
|
|
1023
|
+
forumId: string;
|
|
1024
|
+
}, options?: {
|
|
1025
|
+
authMethod?: AuthMethod;
|
|
1026
|
+
}): Promise<Forum[]>;
|
|
1027
|
+
/** List visible root forums (no parent) for the requesting user */
|
|
1018
1028
|
listForums(params: {
|
|
1019
1029
|
tenantId: string;
|
|
1020
1030
|
}, options?: {
|
package/dist/index.js
CHANGED
|
@@ -212,7 +212,11 @@ class RoundtableClient {
|
|
|
212
212
|
listFeedThreads(params, query, options) {
|
|
213
213
|
return request(this.opts, 'GET', `/tenants/${params.tenantId}/feed/threads`, { ...options, query, routeAuth: { acceptsApiKey: true, acceptsBetterAuth: true, acceptsTenantJwt: true } });
|
|
214
214
|
}
|
|
215
|
-
/** List
|
|
215
|
+
/** List the direct sub-forums of a forum */
|
|
216
|
+
listForumChildren(params, options) {
|
|
217
|
+
return request(this.opts, 'GET', `/tenants/${params.tenantId}/forums/${params.forumId}/children`, { ...options, routeAuth: { acceptsApiKey: true, acceptsBetterAuth: true, acceptsTenantJwt: true } });
|
|
218
|
+
}
|
|
219
|
+
/** List visible root forums (no parent) for the requesting user */
|
|
216
220
|
listForums(params, options) {
|
|
217
221
|
return request(this.opts, 'GET', `/tenants/${params.tenantId}/forums`, { ...options, routeAuth: { acceptsApiKey: true, acceptsBetterAuth: true, acceptsTenantJwt: true } });
|
|
218
222
|
}
|
|
@@ -474,6 +478,7 @@ const ReorderCategorySchema = z.array(z.object({ id: IdSchema, position: z.numbe
|
|
|
474
478
|
const ForumSchema = z.object({
|
|
475
479
|
id: IdSchema,
|
|
476
480
|
categoryId: IdSchema,
|
|
481
|
+
parentId: IdSchema.nullable(),
|
|
477
482
|
name: z.string(),
|
|
478
483
|
description: z.string().nullable(),
|
|
479
484
|
position: z.number().int(),
|
|
@@ -483,11 +488,13 @@ const ForumSchema = z.object({
|
|
|
483
488
|
});
|
|
484
489
|
const CreateForumSchema = z.object({
|
|
485
490
|
categoryId: IdSchema,
|
|
491
|
+
parentId: IdSchema.nullable().optional(),
|
|
486
492
|
name: z.string().min(1).max(200),
|
|
487
493
|
description: z.string().max(1000).nullable().optional(),
|
|
488
494
|
isHidden: z.boolean().optional(),
|
|
489
495
|
});
|
|
490
496
|
const UpdateForumSchema = z.object({
|
|
497
|
+
parentId: IdSchema.nullable().optional(),
|
|
491
498
|
name: z.string().min(1).max(200).optional(),
|
|
492
499
|
description: z.string().max(1000).nullable().optional(),
|
|
493
500
|
isHidden: z.boolean().optional(),
|