@appconda/nextjs 1.0.206 → 1.0.208

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.
@@ -100,3 +100,168 @@ export type View = {
100
100
  active: boolean;
101
101
  position: number;
102
102
  };
103
+ export declare enum Roles {
104
+ USER = "USER",
105
+ ADMIN = "ADMIN"
106
+ }
107
+ export declare enum PostStatus {
108
+ OPEN = "OPEN",
109
+ UNDER_REVIEW = "UNDER_REVIEW",
110
+ PLANNED = "PLANNED",
111
+ IN_PROGRESS = "IN_PROGRESS",
112
+ COMPLETE = "COMPLETE",
113
+ CLOSED = "CLOSED"
114
+ }
115
+ export type Roadmap = {
116
+ id: string;
117
+ title: string;
118
+ createdAt: Date;
119
+ updatedAt: Date;
120
+ posts: RoadmapPost[];
121
+ };
122
+ export type RoadmapPost = {
123
+ id: string;
124
+ roadmapId: string;
125
+ roadmap: Roadmap;
126
+ postId: string;
127
+ post: Post;
128
+ createdAt: Date;
129
+ updatedAt: Date;
130
+ };
131
+ export type Post = {
132
+ id: string;
133
+ authorId: string;
134
+ by?: string;
135
+ boardId: string;
136
+ board: Board;
137
+ postCategoryId?: string;
138
+ postCategory?: PostCategory;
139
+ comments: Comment[];
140
+ votes: Vote[];
141
+ ChangeLogPost: ChangeLogPost[];
142
+ StatusHistory: StatusChange[];
143
+ createdAt: Date;
144
+ updatedAt: Date;
145
+ details?: string;
146
+ eta?: string;
147
+ postImages: PostImages[];
148
+ owner?: string;
149
+ roadmapPosts: RoadmapPost[];
150
+ score: number;
151
+ status: PostStatus;
152
+ statusChangedAt: Date;
153
+ title: string;
154
+ url?: string;
155
+ PostTag: PostTag[];
156
+ };
157
+ export type PostImages = {
158
+ id: string;
159
+ postId: string;
160
+ post: Post;
161
+ url: string;
162
+ };
163
+ export type Board = {
164
+ id: string;
165
+ name: string;
166
+ posts: Post[];
167
+ createdAt: Date;
168
+ PostCategory: PostCategory[];
169
+ Comment: Comment[];
170
+ Tag: Tag[];
171
+ Vote: Vote[];
172
+ };
173
+ export type PostCategory = {
174
+ id: string;
175
+ name: string;
176
+ board: Board;
177
+ boardId: string;
178
+ posts: Post[];
179
+ parentID?: string;
180
+ parent?: PostCategory;
181
+ children: PostCategory[];
182
+ subscribeAdmins: boolean;
183
+ };
184
+ export type Comment = {
185
+ id: string;
186
+ author: string;
187
+ boardId: string;
188
+ board: Board;
189
+ postId?: string;
190
+ post?: Post;
191
+ createdAt: Date;
192
+ updatedAt: Date;
193
+ images: CommentImage[];
194
+ internal: boolean;
195
+ likeCount: number;
196
+ mentions: CommentMention[];
197
+ parentID?: string;
198
+ parent?: Comment;
199
+ children: Comment[];
200
+ private: boolean;
201
+ value: string;
202
+ };
203
+ export type CommentImage = {
204
+ id: string;
205
+ commentId: string;
206
+ comment: Comment;
207
+ url: string;
208
+ };
209
+ export type CommentMention = {
210
+ id: string;
211
+ commentId: string;
212
+ comment: Comment;
213
+ userId: string;
214
+ };
215
+ export type Vote = {
216
+ id: string;
217
+ voterId: string;
218
+ by?: string;
219
+ boardId: string;
220
+ board: Board;
221
+ postId: string;
222
+ post: Post;
223
+ createdAt: Date;
224
+ };
225
+ export type Tag = {
226
+ id: string;
227
+ boardId: string;
228
+ board: Board;
229
+ name: string;
230
+ posts: PostTag[];
231
+ };
232
+ export type PostTag = {
233
+ id: string;
234
+ postId: string;
235
+ post: Post;
236
+ tagId: string;
237
+ tag: Tag;
238
+ };
239
+ export type Changelog = {
240
+ id: string;
241
+ title: string;
242
+ details?: string;
243
+ created: Date;
244
+ lastSaved?: Date;
245
+ publishedAt?: Date;
246
+ scheduledFor?: Date;
247
+ status: string;
248
+ url?: string;
249
+ type: string;
250
+ ChangeLogPost: ChangeLogPost[];
251
+ };
252
+ export type ChangeLogPost = {
253
+ id: string;
254
+ postId: string;
255
+ changelogId: string;
256
+ post: Post;
257
+ changelog: Changelog;
258
+ };
259
+ export type StatusChange = {
260
+ id: string;
261
+ changerId: string;
262
+ changeComment?: string;
263
+ postId: string;
264
+ post: Post;
265
+ status: PostStatus;
266
+ changedAt: Date;
267
+ };
@@ -1,2 +1,17 @@
1
- export {};
2
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHlwZXMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvbW9kdWxlcy90YXNrL3R5cGVzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiIiLCJzb3VyY2VzQ29udGVudCI6WyJcbmV4cG9ydCB0eXBlIFRhc2tMaXN0ID0ge1xuICAgIGlkOiBzdHJpbmc7XG4gICAgdGl0bGU6IHN0cmluZztcbiAgICBjb2xvcj86IHN0cmluZztcbiAgICBwcm9qZWN0SWQ6IHN0cmluZztcbiAgICBsaXN0VHlwZTogbnVtYmVyO1xuICAgIGlzUHVibGljOiBib29sZWFuO1xuICAgIGNyZWF0ZWRBdDogRGF0ZTtcbiAgICB1cGRhdGVkQXQ6IERhdGU7XG4gICAgcG9zaXRpb246IG51bWJlcjtcbiAgICBkZXNjcmlwdGlvbjogc3RyaW5nO1xuICAgIHZpZXdJZD86IHN0cmluZztcbiAgICB0YXNrczogVGFza1tdO1xufVxuXG5leHBvcnQgdHlwZSBTcHJpbnQgPSB7XG4gICAgaWQ6IHN0cmluZztcbiAgICBuYW1lOiBzdHJpbmc7XG4gICAgZGVzY3JpcHRpb246IHN0cmluZztcbn1cblxuXG5leHBvcnQgdHlwZSBQcm9qZWN0ID0ge1xuICAgIGlkOiBzdHJpbmc7XG4gICAgdGVuYW50SWQ6IHN0cmluZztcbiAgICBwaWN0dXJlPzogc3RyaW5nO1xuICAgIG93bmVySWQ6IHN0cmluZztcbiAgICB0aXRsZTogc3RyaW5nO1xuICAgIHdlYj86IHN0cmluZztcbiAgICBjcmVhdGVkRGF0ZTogRGF0ZTtcbiAgICB1cGRhdGVkRGF0ZTogRGF0ZTtcbiAgICBkZXNjcmlwdGlvbj86IHN0cmluZztcbiAg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leri için TypeScript Tipleri
2
+ // Enum Tipleri
3
+ export var Roles;
4
+ (function (Roles) {
5
+ Roles["USER"] = "USER";
6
+ Roles["ADMIN"] = "ADMIN";
7
+ })(Roles || (Roles = {}));
8
+ export var PostStatus;
9
+ (function (PostStatus) {
10
+ PostStatus["OPEN"] = "OPEN";
11
+ PostStatus["UNDER_REVIEW"] = "UNDER_REVIEW";
12
+ PostStatus["PLANNED"] = "PLANNED";
13
+ PostStatus["IN_PROGRESS"] = "IN_PROGRESS";
14
+ PostStatus["COMPLETE"] = "COMPLETE";
15
+ PostStatus["CLOSED"] = "CLOSED";
16
+ })(PostStatus || (PostStatus = {}));
17
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHlwZXMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvbW9kdWxlcy90YXNrL3R5cGVzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQStHQSwyQ0FBMkM7QUFFM0MsZUFBZTtBQUNmLE1BQU0sQ0FBTixJQUFZLEtBR1g7QUFIRCxXQUFZLEtBQUs7SUFDYixzQkFBYSxDQUFBO0lBQ2Isd0JBQWUsQ0FBQTtBQUNuQixDQUFDLEVBSFcsS0FBSyxLQUFMLEtBQUssUUFHaEI7QUFFRCxNQUFNLENBQU4sSUFBWSxVQU9YO0FBUEQsV0FBWSxVQUFVO0lBQ2xCLDJCQUFhLENBQUE7SUFDYiwyQ0FBNkIsQ0FBQTtJQUM3QixpQ0FBbUIsQ0FBQTtJQUNuQix5Q0FBMkIsQ0FBQTtJQUMzQixtQ0FBcUIsQ0FBQTtJQUNyQiwrQkFBaUIsQ0FBQTtBQUNyQixDQUFDLEVBUFcsVUFBVSxLQUFWLFVBQVUsUUFPckIiLCJzb3VyY2VzQ29udGVudCI6WyJcbmV4cG9ydCB0eXBlIFRhc2tMaXN0ID0ge1xuICAgIGlkOiBzdHJpbmc7XG4gICAg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6IERhdGU7XG59XG5cbiJdfQ==
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@appconda/nextjs",
3
3
  "homepage": "https://appconda.io/support",
4
4
  "description": "Appconda is an open-source self-hosted backend server that abstract and simplify complex and repetitive development tasks behind a very simple REST API",
5
- "version": "1.0.206",
5
+ "version": "1.0.208",
6
6
  "license": "BSD-3-Clause",
7
7
  "main": "dist/index.js",
8
8
  "types": "dist/index.d.ts",
@@ -3,7 +3,7 @@
3
3
  import { z } from 'zod';
4
4
  import { AppcondaException } from '../../client';
5
5
  import { getSDKForCurrentUser } from '../../getSDKForCurrentUser';
6
- import { CreateListSchema, CreateProjectSchema, CreateSprintSchema, CreateTaskListSchema, CreateTaskSchema, CreateViewSchema, DeleteSprintSchema, DeleteTaskListSchema, GetProjectSchema, GetSprintSchema, GetTaskListSchema, ListProjectsSchema, ListTaskListsSchema, ListTasksInListSchema, ListViewsSchema, MoveTaskSchema, UpdateSprintSchema, UpdateTaskListSchema } from './schema';
6
+ import { ChangePostCategorySchema, ChangePostStatusSchema, CreateBoardSchema, CreateChangelogSchema, CreateCommentSchema, CreateListSchema, CreatePostCategorySchema, CreatePostSchema, CreateProjectSchema, CreateRoadmapSchema, CreateSprintSchema, CreateStatusChangeSchema, CreateTagSchema, CreateTaskListSchema, CreateTaskSchema, CreateViewSchema, CreateVoteSchema, DeleteBoardSchema, DeleteCommentSchema, DeletePostCategorySchema, DeleteSprintSchema, DeleteTaskListSchema, DeleteVoteSchema, GetBoardSchema, GetChangeLogSchema, GetCommentSchema, GetPostCategorySchema, GetPostSchema, GetProjectSchema, GetRoadmapSchema, GetSprintSchema, GetTagSchema, GetTaskListSchema, GetVoteSchema, ListBoardsSchema, ListChangeLogsSchema, ListCommentsSchema, ListPostCategoriesSchema, ListPostsSchema, ListProjectsSchema, ListTagsSchema, ListTaskListsSchema, ListTasksInListSchema, ListTasksSchema, ListViewsSchema, ListVotesSchema, MoveTaskSchema, UpdateSprintSchema, UpdateTaskListSchema } from './schema';
7
7
 
8
8
  export const CreateProject = async (parsedInput: z.infer<typeof CreateProjectSchema>) => {
9
9
  try {
@@ -293,3 +293,400 @@ export const ListViews = async (parsedInput: z.infer<typeof ListViewsSchema>) =>
293
293
  }
294
294
  };
295
295
 
296
+ export const ListTasks = async (parsedInput: z.infer<typeof ListTasksSchema>) => {
297
+ try {
298
+ const { task } = await getSDKForCurrentUser();
299
+ return await task.ListTasks(parsedInput);
300
+ } catch (error) {
301
+ if (error instanceof AppcondaException) {
302
+ throw new Error(error.message);
303
+ }
304
+
305
+ throw error;
306
+ }
307
+ };
308
+
309
+ // Feedback modülü action fonksiyonları
310
+ export const ChangePostCategory = async (parsedInput: z.infer<typeof ChangePostCategorySchema>) => {
311
+ try {
312
+ const { task } = await getSDKForCurrentUser();
313
+ return await task.ChangePostCategory(parsedInput);
314
+ } catch (error) {
315
+ if (error instanceof AppcondaException) {
316
+ throw new Error(error.message);
317
+ }
318
+ throw error;
319
+ }
320
+ };
321
+
322
+ export const ChangePostStatus = async (parsedInput: z.infer<typeof ChangePostStatusSchema>) => {
323
+ try {
324
+ const { task } = await getSDKForCurrentUser();
325
+ return await task.ChangePostStatus(parsedInput);
326
+ } catch (error) {
327
+ if (error instanceof AppcondaException) {
328
+ throw new Error(error.message);
329
+ }
330
+ throw error;
331
+ }
332
+ };
333
+
334
+ export const CreateBoard = async (parsedInput: z.infer<typeof CreateBoardSchema>) => {
335
+ try {
336
+ const { task } = await getSDKForCurrentUser();
337
+ return await task.CreateBoard(parsedInput);
338
+ } catch (error) {
339
+ if (error instanceof AppcondaException) {
340
+ throw new Error(error.message);
341
+ }
342
+ throw error;
343
+ }
344
+ };
345
+
346
+ export const GetBoard = async (parsedInput: z.infer<typeof GetBoardSchema>) => {
347
+ try {
348
+ const { task } = await getSDKForCurrentUser();
349
+ return await task.GetBoard(parsedInput);
350
+ } catch (error) {
351
+ if (error instanceof AppcondaException) {
352
+ throw new Error(error.message);
353
+ }
354
+ throw error;
355
+ }
356
+ };
357
+
358
+ export const ListBoards = async (parsedInput: z.infer<typeof ListBoardsSchema>) => {
359
+ try {
360
+ const { task } = await getSDKForCurrentUser();
361
+ return await task.ListBoards(parsedInput);
362
+ } catch (error) {
363
+ if (error instanceof AppcondaException) {
364
+ throw new Error(error.message);
365
+ }
366
+ throw error;
367
+ }
368
+ };
369
+
370
+ export const DeleteBoard = async (parsedInput: z.infer<typeof DeleteBoardSchema>) => {
371
+ try {
372
+ const { task } = await getSDKForCurrentUser();
373
+ return await task.DeleteBoard(parsedInput);
374
+ } catch (error) {
375
+ if (error instanceof AppcondaException) {
376
+ throw new Error(error.message);
377
+ }
378
+ throw error;
379
+ }
380
+ };
381
+
382
+ export const CreateChangelog = async (parsedInput: z.infer<typeof CreateChangelogSchema>) => {
383
+ try {
384
+ const { task } = await getSDKForCurrentUser();
385
+ return await task.CreateChangelog(parsedInput);
386
+ } catch (error) {
387
+ if (error instanceof AppcondaException) {
388
+ throw new Error(error.message);
389
+ }
390
+ throw error;
391
+ }
392
+ };
393
+
394
+ export const CreateComment = async (parsedInput: z.infer<typeof CreateCommentSchema>) => {
395
+ try {
396
+ const { task } = await getSDKForCurrentUser();
397
+ return await task.CreateComment(parsedInput);
398
+ } catch (error) {
399
+ if (error instanceof AppcondaException) {
400
+ throw new Error(error.message);
401
+ }
402
+ throw error;
403
+ }
404
+ };
405
+
406
+ export const CreatePost = async (parsedInput: z.infer<typeof CreatePostSchema>) => {
407
+ try {
408
+ const { task } = await getSDKForCurrentUser();
409
+ return await task.CreatePost(parsedInput);
410
+ } catch (error) {
411
+ if (error instanceof AppcondaException) {
412
+ throw new Error(error.message);
413
+ }
414
+ throw error;
415
+ }
416
+ };
417
+
418
+ export const CreatePostCategory = async (parsedInput: z.infer<typeof CreatePostCategorySchema>) => {
419
+ try {
420
+ const { task } = await getSDKForCurrentUser();
421
+ return await task.CreatePostCategory(parsedInput);
422
+ } catch (error) {
423
+ if (error instanceof AppcondaException) {
424
+ throw new Error(error.message);
425
+ }
426
+ throw error;
427
+ }
428
+ };
429
+
430
+ export const CreateRoadmap = async (parsedInput: z.infer<typeof CreateRoadmapSchema>) => {
431
+ try {
432
+ const { task } = await getSDKForCurrentUser();
433
+ return await task.CreateRoadmap(parsedInput);
434
+ } catch (error) {
435
+ if (error instanceof AppcondaException) {
436
+ throw new Error(error.message);
437
+ }
438
+ throw error;
439
+ }
440
+ };
441
+
442
+ export const CreateStatusChange = async (parsedInput: z.infer<typeof CreateStatusChangeSchema>) => {
443
+ try {
444
+ const { task } = await getSDKForCurrentUser();
445
+ return await task.CreateStatusChange(parsedInput);
446
+ } catch (error) {
447
+ if (error instanceof AppcondaException) {
448
+ throw new Error(error.message);
449
+ }
450
+ throw error;
451
+ }
452
+ };
453
+
454
+ export const CreateTag = async (parsedInput: z.infer<typeof CreateTagSchema>) => {
455
+ try {
456
+ const { task } = await getSDKForCurrentUser();
457
+ return await task.CreateTag(parsedInput);
458
+ } catch (error) {
459
+ if (error instanceof AppcondaException) {
460
+ throw new Error(error.message);
461
+ }
462
+ throw error;
463
+ }
464
+ };
465
+
466
+ export const CreateVote = async (parsedInput: z.infer<typeof CreateVoteSchema>) => {
467
+ try {
468
+ const { task } = await getSDKForCurrentUser();
469
+ return await task.CreateVote(parsedInput);
470
+ } catch (error) {
471
+ if (error instanceof AppcondaException) {
472
+ throw new Error(error.message);
473
+ }
474
+ throw error;
475
+ }
476
+ };
477
+
478
+ export const DeleteComment = async (parsedInput: z.infer<typeof DeleteCommentSchema>) => {
479
+ try {
480
+ const { task } = await getSDKForCurrentUser();
481
+ return await task.DeleteComment(parsedInput);
482
+ } catch (error) {
483
+ if (error instanceof AppcondaException) {
484
+ throw new Error(error.message);
485
+ }
486
+ throw error;
487
+ }
488
+ };
489
+
490
+ export const DeletePostCategory = async (parsedInput: z.infer<typeof DeletePostCategorySchema>) => {
491
+ try {
492
+ const { task } = await getSDKForCurrentUser();
493
+ return await task.DeletePostCategory(parsedInput);
494
+ } catch (error) {
495
+ if (error instanceof AppcondaException) {
496
+ throw new Error(error.message);
497
+ }
498
+ throw error;
499
+ }
500
+ };
501
+
502
+ export const DeleteVote = async (parsedInput: z.infer<typeof DeleteVoteSchema>) => {
503
+ try {
504
+ const { task } = await getSDKForCurrentUser();
505
+ return await task.DeleteVote(parsedInput);
506
+ } catch (error) {
507
+ if (error instanceof AppcondaException) {
508
+ throw new Error(error.message);
509
+ }
510
+ throw error;
511
+ }
512
+ };
513
+
514
+ export const GetChangeLog = async (parsedInput: z.infer<typeof GetChangeLogSchema>) => {
515
+ try {
516
+ const { task } = await getSDKForCurrentUser();
517
+ return await task.GetChangeLog(parsedInput);
518
+ } catch (error) {
519
+ if (error instanceof AppcondaException) {
520
+ throw new Error(error.message);
521
+ }
522
+ throw error;
523
+ }
524
+ };
525
+
526
+ export const GetComment = async (parsedInput: z.infer<typeof GetCommentSchema>) => {
527
+ try {
528
+ const { task } = await getSDKForCurrentUser();
529
+ return await task.GetComment(parsedInput);
530
+ } catch (error) {
531
+ if (error instanceof AppcondaException) {
532
+ throw new Error(error.message);
533
+ }
534
+ throw error;
535
+ }
536
+ };
537
+
538
+ export const GetPost = async (parsedInput: z.infer<typeof GetPostSchema>) => {
539
+ try {
540
+ const { task } = await getSDKForCurrentUser();
541
+ return await task.GetPost(parsedInput);
542
+ } catch (error) {
543
+ if (error instanceof AppcondaException) {
544
+ throw new Error(error.message);
545
+ }
546
+ throw error;
547
+ }
548
+ };
549
+
550
+ export const GetPostCategory = async (parsedInput: z.infer<typeof GetPostCategorySchema>) => {
551
+ try {
552
+ const { task } = await getSDKForCurrentUser();
553
+ return await task.GetPostCategory(parsedInput);
554
+ } catch (error) {
555
+ if (error instanceof AppcondaException) {
556
+ throw new Error(error.message);
557
+ }
558
+ throw error;
559
+ }
560
+ };
561
+
562
+ export const GetRoadmap = async (parsedInput: z.infer<typeof GetRoadmapSchema>) => {
563
+ try {
564
+ const { task } = await getSDKForCurrentUser();
565
+ return await task.GetRoadmap(parsedInput);
566
+ } catch (error) {
567
+ if (error instanceof AppcondaException) {
568
+ throw new Error(error.message);
569
+ }
570
+ throw error;
571
+ }
572
+ };
573
+
574
+ export const GetTag = async (parsedInput: z.infer<typeof GetTagSchema>) => {
575
+ try {
576
+ const { task } = await getSDKForCurrentUser();
577
+ return await task.GetTag(parsedInput);
578
+ } catch (error) {
579
+ if (error instanceof AppcondaException) {
580
+ throw new Error(error.message);
581
+ }
582
+ throw error;
583
+ }
584
+ };
585
+
586
+ export const GetVote = async (parsedInput: z.infer<typeof GetVoteSchema>) => {
587
+ try {
588
+ const { task } = await getSDKForCurrentUser();
589
+ return await task.GetVote(parsedInput);
590
+ } catch (error) {
591
+ if (error instanceof AppcondaException) {
592
+ throw new Error(error.message);
593
+ }
594
+ throw error;
595
+ }
596
+ };
597
+
598
+ export const ListChangeLogs = async (parsedInput: z.infer<typeof ListChangeLogsSchema>) => {
599
+ try {
600
+ const { task } = await getSDKForCurrentUser();
601
+ return await task.ListChangeLogs(parsedInput);
602
+ } catch (error) {
603
+ if (error instanceof AppcondaException) {
604
+ throw new Error(error.message);
605
+ }
606
+ throw error;
607
+ }
608
+ };
609
+
610
+ export const ListComments = async (parsedInput: z.infer<typeof ListCommentsSchema>) => {
611
+ try {
612
+ const { task } = await getSDKForCurrentUser();
613
+ return await task.ListComments(parsedInput);
614
+ } catch (error) {
615
+ if (error instanceof AppcondaException) {
616
+ throw new Error(error.message);
617
+ }
618
+ throw error;
619
+ }
620
+ };
621
+
622
+ export const ListPostCategories = async (parsedInput: z.infer<typeof ListPostCategoriesSchema>) => {
623
+ try {
624
+ const { task } = await getSDKForCurrentUser();
625
+ return await task.ListPostCategories(parsedInput);
626
+ } catch (error) {
627
+ if (error instanceof AppcondaException) {
628
+ throw new Error(error.message);
629
+ }
630
+ throw error;
631
+ }
632
+ };
633
+
634
+ export const ListPosts = async (parsedInput: z.infer<typeof ListPostsSchema>) => {
635
+ try {
636
+ const { task } = await getSDKForCurrentUser();
637
+ return await task.ListPosts(parsedInput);
638
+ } catch (error) {
639
+ if (error instanceof AppcondaException) {
640
+ throw new Error(error.message);
641
+ }
642
+ throw error;
643
+ }
644
+ };
645
+
646
+ export const ListRoadmaps = async () => {
647
+ try {
648
+ const { task } = await getSDKForCurrentUser();
649
+ return await task.ListRoadmaps();
650
+ } catch (error) {
651
+ if (error instanceof AppcondaException) {
652
+ throw new Error(error.message);
653
+ }
654
+ throw error;
655
+ }
656
+ };
657
+
658
+ export const ListStatusChanges = async () => {
659
+ try {
660
+ const { task } = await getSDKForCurrentUser();
661
+ return await task.ListStatusChanges();
662
+ } catch (error) {
663
+ if (error instanceof AppcondaException) {
664
+ throw new Error(error.message);
665
+ }
666
+ throw error;
667
+ }
668
+ };
669
+
670
+ export const ListTags = async (parsedInput: z.infer<typeof ListTagsSchema>) => {
671
+ try {
672
+ const { task } = await getSDKForCurrentUser();
673
+ return await task.ListTags(parsedInput);
674
+ } catch (error) {
675
+ if (error instanceof AppcondaException) {
676
+ throw new Error(error.message);
677
+ }
678
+ throw error;
679
+ }
680
+ };
681
+
682
+ export const ListVotes = async (parsedInput: z.infer<typeof ListVotesSchema>) => {
683
+ try {
684
+ const { task } = await getSDKForCurrentUser();
685
+ return await task.ListVotes(parsedInput);
686
+ } catch (error) {
687
+ if (error instanceof AppcondaException) {
688
+ throw new Error(error.message);
689
+ }
690
+ throw error;
691
+ }
692
+ };