@roundtable-bb/sdk 0.1.40 → 0.1.42
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 +12 -1
- package/dist/index.js +9 -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,14 @@ 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
|
+
categoryId: z.ZodOptional<z.ZodUUID>;
|
|
169
|
+
parentId: z.ZodOptional<z.ZodNullable<z.ZodUUID>>;
|
|
166
170
|
name: z.ZodOptional<z.ZodString>;
|
|
167
171
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
168
172
|
isHidden: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -1014,7 +1018,14 @@ declare class RoundtableClient {
|
|
|
1014
1018
|
}, options?: {
|
|
1015
1019
|
authMethod?: AuthMethod;
|
|
1016
1020
|
}): Promise<PaginatedResponse<Thread>>;
|
|
1017
|
-
/** List
|
|
1021
|
+
/** List the direct sub-forums of a forum */
|
|
1022
|
+
listForumChildren(params: {
|
|
1023
|
+
tenantId: string;
|
|
1024
|
+
forumId: string;
|
|
1025
|
+
}, options?: {
|
|
1026
|
+
authMethod?: AuthMethod;
|
|
1027
|
+
}): Promise<Forum[]>;
|
|
1028
|
+
/** List visible root forums (no parent) for the requesting user */
|
|
1018
1029
|
listForums(params: {
|
|
1019
1030
|
tenantId: string;
|
|
1020
1031
|
}, 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,14 @@ 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
|
+
categoryId: IdSchema.optional(),
|
|
498
|
+
parentId: IdSchema.nullable().optional(),
|
|
491
499
|
name: z.string().min(1).max(200).optional(),
|
|
492
500
|
description: z.string().max(1000).nullable().optional(),
|
|
493
501
|
isHidden: z.boolean().optional(),
|