@purpleschool/gptbot 0.13.20 → 0.13.22

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.
Files changed (161) hide show
  1. package/api/controllers/http/agents/agent-dialog.ts +1 -0
  2. package/api/controllers/http/diagrams.ts +1 -0
  3. package/api/controllers/http/html-page-builder.ts +1 -0
  4. package/api/controllers/http/image-editor.ts +1 -0
  5. package/api/controllers/http/image-generation.ts +1 -0
  6. package/api/controllers/http/interior-design.ts +1 -0
  7. package/api/controllers/http/marketplace-card.ts +1 -0
  8. package/api/controllers/http/music.ts +1 -0
  9. package/api/controllers/http/paraphrase.ts +1 -0
  10. package/api/controllers/http/presentation.ts +1 -0
  11. package/api/controllers/http/solving-edu-task.ts +1 -0
  12. package/api/controllers/http/spell-corrector.ts +1 -0
  13. package/api/controllers/http/stt.ts +1 -0
  14. package/api/controllers/http/tts.ts +1 -0
  15. package/api/controllers/http/video-editor.ts +1 -0
  16. package/api/controllers/http/video.ts +1 -0
  17. package/api/controllers/http/writer.ts +1 -0
  18. package/api/routes.ts +82 -0
  19. package/build/api/controllers/http/agents/agent-dialog.js +1 -0
  20. package/build/api/controllers/http/diagrams.js +1 -0
  21. package/build/api/controllers/http/html-page-builder.js +1 -0
  22. package/build/api/controllers/http/image-editor.js +1 -0
  23. package/build/api/controllers/http/image-generation.js +1 -0
  24. package/build/api/controllers/http/interior-design.js +1 -0
  25. package/build/api/controllers/http/marketplace-card.js +1 -0
  26. package/build/api/controllers/http/music.js +1 -0
  27. package/build/api/controllers/http/paraphrase.js +1 -0
  28. package/build/api/controllers/http/presentation.js +1 -0
  29. package/build/api/controllers/http/solving-edu-task.js +1 -0
  30. package/build/api/controllers/http/spell-corrector.js +1 -0
  31. package/build/api/controllers/http/stt.js +1 -0
  32. package/build/api/controllers/http/tts.js +1 -0
  33. package/build/api/controllers/http/video-editor.js +1 -0
  34. package/build/api/controllers/http/video.js +1 -0
  35. package/build/api/controllers/http/writer.js +1 -0
  36. package/build/api/routes.js +49 -0
  37. package/build/commands/agents/agent-dialog/find-agent-dialogs.command.js +1 -0
  38. package/build/commands/agents/agent-dialog/index.js +1 -0
  39. package/build/commands/agents/agent-dialog/rename-agent-dialog.command.js +17 -0
  40. package/build/commands/tools/diagrams/find-diagrams-jobs.command.js +5 -0
  41. package/build/commands/tools/diagrams/index.js +1 -0
  42. package/build/commands/tools/diagrams/update-diagrams-job-favorite.command.js +17 -0
  43. package/build/commands/tools/html-page-builder/find-html-page-builder-sessions.command.js +5 -0
  44. package/build/commands/tools/html-page-builder/index.js +1 -0
  45. package/build/commands/tools/html-page-builder/update-html-page-builder-session-favorite.command.js +11 -0
  46. package/build/commands/tools/image-editor/find-image-editor-jobs.command.js +5 -0
  47. package/build/commands/tools/image-editor/index.js +1 -0
  48. package/build/commands/tools/image-editor/update-image-editor-job-favorite.command.js +17 -0
  49. package/build/commands/tools/image-generation/find-image-generation-jobs.command.js +5 -0
  50. package/build/commands/tools/image-generation/index.js +1 -0
  51. package/build/commands/tools/image-generation/update-image-generation-job-favorite.command.js +17 -0
  52. package/build/commands/tools/interior-design/find-interior-design-jobs.command.js +5 -0
  53. package/build/commands/tools/interior-design/index.js +1 -0
  54. package/build/commands/tools/interior-design/update-interior-design-job-favorite.command.js +17 -0
  55. package/build/commands/tools/marketplace-card/find-marketplace-card-jobs.command.js +5 -0
  56. package/build/commands/tools/marketplace-card/index.js +1 -0
  57. package/build/commands/tools/marketplace-card/update-marketplace-card-job-favorite.command.js +17 -0
  58. package/build/commands/tools/music/find-music-jobs.command.js +5 -0
  59. package/build/commands/tools/music/index.js +1 -0
  60. package/build/commands/tools/music/update-music-job-favorite.command.js +17 -0
  61. package/build/commands/tools/paraphrase/find-paraphrase-jobs.command.js +5 -0
  62. package/build/commands/tools/paraphrase/index.js +1 -0
  63. package/build/commands/tools/paraphrase/update-paraphrase-job-favorite.command.js +17 -0
  64. package/build/commands/tools/presentation/find-presentations.command.js +5 -0
  65. package/build/commands/tools/presentation/index.js +1 -0
  66. package/build/commands/tools/presentation/update-presentation-favorite.command.js +11 -0
  67. package/build/commands/tools/solving-edu-task/find-solving-edu-task-jobs.command.js +5 -0
  68. package/build/commands/tools/solving-edu-task/index.js +1 -0
  69. package/build/commands/tools/solving-edu-task/update-solving-edu-task-job-favorite.command.js +17 -0
  70. package/build/commands/tools/spell-corrector/find-spell-corrector-jobs.command.js +5 -0
  71. package/build/commands/tools/spell-corrector/index.js +1 -0
  72. package/build/commands/tools/spell-corrector/update-spell-corrector-job-favorite.command.js +17 -0
  73. package/build/commands/tools/stt/find-stt-jobs.command.js +5 -0
  74. package/build/commands/tools/stt/index.js +1 -0
  75. package/build/commands/tools/stt/update-stt-job-favorite.command.js +17 -0
  76. package/build/commands/tools/tts/find-tts-jobs.command.js +5 -0
  77. package/build/commands/tools/tts/index.js +1 -0
  78. package/build/commands/tools/tts/update-tts-job-favorite.command.js +17 -0
  79. package/build/commands/tools/video/find-video-jobs.command.js +5 -0
  80. package/build/commands/tools/video/index.js +1 -0
  81. package/build/commands/tools/video/update-video-job-favorite.command.js +17 -0
  82. package/build/commands/tools/video-editor/find-video-editor-jobs.command.js +5 -0
  83. package/build/commands/tools/video-editor/index.js +1 -0
  84. package/build/commands/tools/video-editor/update-video-editor-job-favorite.command.js +17 -0
  85. package/build/commands/tools/writer/find-writer-documents.command.js +5 -0
  86. package/build/commands/tools/writer/index.js +1 -0
  87. package/build/commands/tools/writer/update-writer-document-favorite.command.js +11 -0
  88. package/build/constants/tool/enums/index.js +1 -0
  89. package/build/constants/tool/enums/job-sort.enum.js +8 -0
  90. package/build/helpers/index.js +1 -0
  91. package/build/helpers/query-boolean.schema.js +13 -0
  92. package/build/models/tool-job.schema.js +1 -0
  93. package/build/models/tools/diagrams/diagrams-job.schema.js +1 -0
  94. package/build/models/tools/html-page-builder/html-page-builder-session.schema.js +1 -0
  95. package/build/models/tools/presentation/presentation.schema.js +1 -0
  96. package/build/models/tools/solving-edu-task/solving-edu-task-job.schema.js +1 -0
  97. package/build/models/tools/video/video-model.schema.js +1 -0
  98. package/build/models/tools/writer/writer-document.schema.js +1 -0
  99. package/commands/agents/agent-dialog/find-agent-dialogs.command.ts +1 -0
  100. package/commands/agents/agent-dialog/index.ts +1 -0
  101. package/commands/agents/agent-dialog/rename-agent-dialog.command.ts +19 -0
  102. package/commands/tools/diagrams/find-diagrams-jobs.command.ts +5 -0
  103. package/commands/tools/diagrams/index.ts +1 -0
  104. package/commands/tools/diagrams/update-diagrams-job-favorite.command.ts +19 -0
  105. package/commands/tools/html-page-builder/find-html-page-builder-sessions.command.ts +5 -0
  106. package/commands/tools/html-page-builder/index.ts +1 -0
  107. package/commands/tools/html-page-builder/update-html-page-builder-session-favorite.command.ts +13 -0
  108. package/commands/tools/image-editor/find-image-editor-jobs.command.ts +5 -0
  109. package/commands/tools/image-editor/index.ts +1 -0
  110. package/commands/tools/image-editor/update-image-editor-job-favorite.command.ts +19 -0
  111. package/commands/tools/image-generation/find-image-generation-jobs.command.ts +5 -0
  112. package/commands/tools/image-generation/index.ts +1 -0
  113. package/commands/tools/image-generation/update-image-generation-job-favorite.command.ts +19 -0
  114. package/commands/tools/interior-design/find-interior-design-jobs.command.ts +5 -0
  115. package/commands/tools/interior-design/index.ts +1 -0
  116. package/commands/tools/interior-design/update-interior-design-job-favorite.command.ts +19 -0
  117. package/commands/tools/marketplace-card/find-marketplace-card-jobs.command.ts +5 -0
  118. package/commands/tools/marketplace-card/index.ts +1 -0
  119. package/commands/tools/marketplace-card/update-marketplace-card-job-favorite.command.ts +19 -0
  120. package/commands/tools/music/find-music-jobs.command.ts +5 -0
  121. package/commands/tools/music/index.ts +1 -0
  122. package/commands/tools/music/update-music-job-favorite.command.ts +19 -0
  123. package/commands/tools/paraphrase/find-paraphrase-jobs.command.ts +5 -0
  124. package/commands/tools/paraphrase/index.ts +1 -0
  125. package/commands/tools/paraphrase/update-paraphrase-job-favorite.command.ts +19 -0
  126. package/commands/tools/presentation/find-presentations.command.ts +5 -0
  127. package/commands/tools/presentation/index.ts +1 -0
  128. package/commands/tools/presentation/update-presentation-favorite.command.ts +13 -0
  129. package/commands/tools/solving-edu-task/find-solving-edu-task-jobs.command.ts +5 -0
  130. package/commands/tools/solving-edu-task/index.ts +1 -0
  131. package/commands/tools/solving-edu-task/update-solving-edu-task-job-favorite.command.ts +19 -0
  132. package/commands/tools/spell-corrector/find-spell-corrector-jobs.command.ts +5 -0
  133. package/commands/tools/spell-corrector/index.ts +1 -0
  134. package/commands/tools/spell-corrector/update-spell-corrector-job-favorite.command.ts +19 -0
  135. package/commands/tools/stt/find-stt-jobs.command.ts +5 -0
  136. package/commands/tools/stt/index.ts +1 -0
  137. package/commands/tools/stt/update-stt-job-favorite.command.ts +19 -0
  138. package/commands/tools/tts/find-tts-jobs.command.ts +5 -0
  139. package/commands/tools/tts/index.ts +1 -0
  140. package/commands/tools/tts/update-tts-job-favorite.command.ts +19 -0
  141. package/commands/tools/video/find-video-jobs.command.ts +5 -0
  142. package/commands/tools/video/index.ts +1 -0
  143. package/commands/tools/video/update-video-job-favorite.command.ts +19 -0
  144. package/commands/tools/video-editor/find-video-editor-jobs.command.ts +5 -0
  145. package/commands/tools/video-editor/index.ts +1 -0
  146. package/commands/tools/video-editor/update-video-editor-job-favorite.command.ts +19 -0
  147. package/commands/tools/writer/find-writer-documents.command.ts +5 -0
  148. package/commands/tools/writer/index.ts +1 -0
  149. package/commands/tools/writer/update-writer-document-favorite.command.ts +13 -0
  150. package/constants/tool/enums/index.ts +1 -0
  151. package/constants/tool/enums/job-sort.enum.ts +4 -0
  152. package/helpers/index.ts +1 -0
  153. package/helpers/query-boolean.schema.ts +13 -0
  154. package/models/tool-job.schema.ts +1 -0
  155. package/models/tools/diagrams/diagrams-job.schema.ts +1 -0
  156. package/models/tools/html-page-builder/html-page-builder-session.schema.ts +1 -0
  157. package/models/tools/presentation/presentation.schema.ts +1 -0
  158. package/models/tools/solving-edu-task/solving-edu-task-job.schema.ts +1 -0
  159. package/models/tools/video/video-model.schema.ts +1 -0
  160. package/models/tools/writer/writer-document.schema.ts +1 -0
  161. package/package.json +1 -1
@@ -0,0 +1,13 @@
1
+ import { z } from 'zod';
2
+ import { HtmlPageBuilderSessionSchema } from '../../../models';
3
+
4
+ export namespace UpdateHtmlPageBuilderSessionFavoriteCommand {
5
+ export const RequestSchema = z.object({ isFavorite: z.boolean() });
6
+ export type Request = z.infer<typeof RequestSchema>;
7
+
8
+ export const RequestParamsSchema = z.object({ uuid: z.string().uuid() });
9
+ export type RequestParams = z.infer<typeof RequestParamsSchema>;
10
+
11
+ export const ResponseSchema = z.object({ data: HtmlPageBuilderSessionSchema });
12
+ export type Response = z.infer<typeof ResponseSchema>;
13
+ }
@@ -1,4 +1,6 @@
1
1
  import { z } from 'zod';
2
+ import { QueryBooleanSchema } from '../../../helpers';
3
+ import { JOB_SORT, TOOL_JOB_STATUS } from '../../../constants';
2
4
  import { ImageEditorJobSchema } from '../../../models';
3
5
 
4
6
  export namespace FindImageEditorJobsCommand {
@@ -6,6 +8,9 @@ export namespace FindImageEditorJobsCommand {
6
8
  limit: z.coerce.number().min(1).optional(),
7
9
  offset: z.coerce.number().min(0).default(0).optional(),
8
10
  title: z.string().optional(),
11
+ isFavorite: QueryBooleanSchema.optional(),
12
+ createdAtSortOrder: z.nativeEnum(JOB_SORT).optional().default(JOB_SORT.DESC),
13
+ status: z.nativeEnum(TOOL_JOB_STATUS).optional(),
9
14
  });
10
15
  export type RequestQuery = z.infer<typeof RequestQuerySchema>;
11
16
 
@@ -7,3 +7,4 @@ export * from './update-image-editor-job-title.command';
7
7
  export * from './find-image-editor-job-by-uuid.command';
8
8
  export * from './find-image-editor-jobs.command';
9
9
  export * from './get-image-editor-tool-config.command';
10
+ export * from './update-image-editor-job-favorite.command';
@@ -0,0 +1,19 @@
1
+ import { z } from 'zod';
2
+ import { ImageEditorJobSchema } from '../../../models';
3
+
4
+ export namespace UpdateImageEditorJobFavoriteCommand {
5
+ export const RequestSchema = z.object({
6
+ isFavorite: z.boolean(),
7
+ });
8
+ export type Request = z.infer<typeof RequestSchema>;
9
+
10
+ export const RequestParamsSchema = z.object({
11
+ uuid: z.string().uuid(),
12
+ });
13
+ export type RequestParams = z.infer<typeof RequestParamsSchema>;
14
+
15
+ export const ResponseSchema = z.object({
16
+ data: ImageEditorJobSchema,
17
+ });
18
+ export type Response = z.infer<typeof ResponseSchema>;
19
+ }
@@ -1,4 +1,6 @@
1
1
  import { z } from 'zod';
2
+ import { QueryBooleanSchema } from '../../../helpers';
3
+ import { JOB_SORT, TOOL_JOB_STATUS } from '../../../constants';
2
4
  import { ImageGenerationJobSchema } from '../../../models';
3
5
 
4
6
  export namespace FindImageGenerationJobsCommand {
@@ -6,6 +8,9 @@ export namespace FindImageGenerationJobsCommand {
6
8
  limit: z.coerce.number().min(1).optional(),
7
9
  offset: z.coerce.number().min(0).default(0).optional(),
8
10
  title: z.string().optional(),
11
+ isFavorite: QueryBooleanSchema.optional(),
12
+ createdAtSortOrder: z.nativeEnum(JOB_SORT).optional().default(JOB_SORT.DESC),
13
+ status: z.nativeEnum(TOOL_JOB_STATUS).optional()
9
14
  });
10
15
  export type RequestQuery = z.infer<typeof RequestQuerySchema>;
11
16
 
@@ -7,3 +7,4 @@ export * from './delete-image-generation-job-by-uuid.command';
7
7
  export * from './delete-all-image-generation-jobs.command';
8
8
  export * from './get-image-generation-config.command';
9
9
  export * from './retry-image-generation-job.command';
10
+ export * from './update-image-generation-job-favorite.command';
@@ -0,0 +1,19 @@
1
+ import { z } from 'zod';
2
+ import { ImageGenerationJobSchema } from '../../../models';
3
+
4
+ export namespace UpdateImageGenerationJobFavoriteCommand {
5
+ export const RequestSchema = z.object({
6
+ isFavorite: z.boolean(),
7
+ });
8
+ export type Request = z.infer<typeof RequestSchema>;
9
+
10
+ export const RequestParamsSchema = z.object({
11
+ uuid: z.string().uuid(),
12
+ });
13
+ export type RequestParams = z.infer<typeof RequestParamsSchema>;
14
+
15
+ export const ResponseSchema = z.object({
16
+ data: ImageGenerationJobSchema,
17
+ });
18
+ export type Response = z.infer<typeof ResponseSchema>;
19
+ }
@@ -1,4 +1,6 @@
1
1
  import { z } from 'zod';
2
+ import { QueryBooleanSchema } from '../../../helpers';
3
+ import { JOB_SORT, TOOL_JOB_STATUS } from '../../../constants';
2
4
  import { InteriorDesignJobSchema } from '../../../models';
3
5
 
4
6
  export namespace FindInteriorDesignJobsCommand {
@@ -6,6 +8,9 @@ export namespace FindInteriorDesignJobsCommand {
6
8
  limit: z.coerce.number().min(1).optional(),
7
9
  offset: z.coerce.number().min(0).default(0).optional(),
8
10
  title: z.string().optional(),
11
+ isFavorite: QueryBooleanSchema.optional(),
12
+ createdAtSortOrder: z.nativeEnum(JOB_SORT).optional().default(JOB_SORT.DESC),
13
+ status: z.nativeEnum(TOOL_JOB_STATUS).optional()
9
14
  });
10
15
  export type RequestQuery = z.infer<typeof RequestQuerySchema>;
11
16
 
@@ -7,3 +7,4 @@ export * from './update-interior-design-job-title.command';
7
7
  export * from './find-interior-design-job-by-uuid.command';
8
8
  export * from './find-interior-design-jobs.command';
9
9
  export * from './get-interior-design-tool-config.command';
10
+ export * from './update-interior-design-job-favorite.command';
@@ -0,0 +1,19 @@
1
+ import { z } from 'zod';
2
+ import { InteriorDesignJobSchema } from '../../../models';
3
+
4
+ export namespace UpdateInteriorDesignJobFavoriteCommand {
5
+ export const RequestSchema = z.object({
6
+ isFavorite: z.boolean(),
7
+ });
8
+ export type Request = z.infer<typeof RequestSchema>;
9
+
10
+ export const RequestParamsSchema = z.object({
11
+ uuid: z.string().uuid(),
12
+ });
13
+ export type RequestParams = z.infer<typeof RequestParamsSchema>;
14
+
15
+ export const ResponseSchema = z.object({
16
+ data: InteriorDesignJobSchema,
17
+ });
18
+ export type Response = z.infer<typeof ResponseSchema>;
19
+ }
@@ -1,4 +1,6 @@
1
1
  import { z } from 'zod';
2
+ import { QueryBooleanSchema } from '../../../helpers';
3
+ import { JOB_SORT, TOOL_JOB_STATUS } from '../../../constants';
2
4
  import { MarketplaceCardJobSchema } from '../../../models';
3
5
 
4
6
  export namespace FindMarketplaceCardJobsCommand {
@@ -6,6 +8,9 @@ export namespace FindMarketplaceCardJobsCommand {
6
8
  limit: z.coerce.number().min(1).optional(),
7
9
  offset: z.coerce.number().min(0).default(0).optional(),
8
10
  title: z.string().optional(),
11
+ isFavorite: QueryBooleanSchema.optional(),
12
+ createdAtSortOrder: z.nativeEnum(JOB_SORT).optional().default(JOB_SORT.DESC),
13
+ status: z.nativeEnum(TOOL_JOB_STATUS).optional()
9
14
  });
10
15
  export type RequestQuery = z.infer<typeof RequestQuerySchema>;
11
16
 
@@ -8,3 +8,4 @@ export * from './set-reaction-to-marketplace-card.command';
8
8
  export * from './delete-marketplace-card-by-uuid.command';
9
9
  export * from './delete-all-marketplace-card-jobs.command';
10
10
  export * from './update-marketplace-card-job-title.command';
11
+ export * from './update-marketplace-card-job-favorite.command';
@@ -0,0 +1,19 @@
1
+ import { z } from 'zod';
2
+ import { MarketplaceCardJobSchema } from '../../../models';
3
+
4
+ export namespace UpdateMarketplaceCardJobFavoriteCommand {
5
+ export const RequestSchema = z.object({
6
+ isFavorite: z.boolean(),
7
+ });
8
+ export type Request = z.infer<typeof RequestSchema>;
9
+
10
+ export const RequestParamsSchema = z.object({
11
+ uuid: z.string().uuid(),
12
+ });
13
+ export type RequestParams = z.infer<typeof RequestParamsSchema>;
14
+
15
+ export const ResponseSchema = z.object({
16
+ data: MarketplaceCardJobSchema,
17
+ });
18
+ export type Response = z.infer<typeof ResponseSchema>;
19
+ }
@@ -1,4 +1,6 @@
1
1
  import { z } from 'zod';
2
+ import { QueryBooleanSchema } from '../../../helpers';
3
+ import { JOB_SORT, TOOL_JOB_STATUS } from '../../../constants';
2
4
  import { MusicJobSchema } from '../../../models';
3
5
 
4
6
  export namespace FindMusicJobsCommand {
@@ -6,6 +8,9 @@ export namespace FindMusicJobsCommand {
6
8
  limit: z.coerce.number().min(1).optional(),
7
9
  offset: z.coerce.number().min(0).default(0).optional(),
8
10
  title: z.string().optional(),
11
+ isFavorite: QueryBooleanSchema.optional(),
12
+ createdAtSortOrder: z.nativeEnum(JOB_SORT).optional().default(JOB_SORT.DESC),
13
+ status: z.nativeEnum(TOOL_JOB_STATUS).optional()
9
14
  });
10
15
  export type RequestQuery = z.infer<typeof RequestQuerySchema>;
11
16
 
@@ -9,3 +9,4 @@ export * from './generate-music.command';
9
9
  export * from './update-music-job-title.command';
10
10
  export * from './convert-to-wav.command';
11
11
  export * from './generate-lyrics.command';
12
+ export * from './update-music-job-favorite.command';
@@ -0,0 +1,19 @@
1
+ import { z } from 'zod';
2
+ import { MusicJobSchema } from '../../../models';
3
+
4
+ export namespace UpdateMusicJobFavoriteCommand {
5
+ export const RequestSchema = z.object({
6
+ isFavorite: z.boolean(),
7
+ });
8
+ export type Request = z.infer<typeof RequestSchema>;
9
+
10
+ export const RequestParamsSchema = z.object({
11
+ uuid: z.string().uuid(),
12
+ });
13
+ export type RequestParams = z.infer<typeof RequestParamsSchema>;
14
+
15
+ export const ResponseSchema = z.object({
16
+ data: MusicJobSchema,
17
+ });
18
+ export type Response = z.infer<typeof ResponseSchema>;
19
+ }
@@ -1,4 +1,6 @@
1
1
  import { z } from 'zod';
2
+ import { QueryBooleanSchema } from '../../../helpers';
3
+ import { JOB_SORT, TOOL_JOB_STATUS } from '../../../constants';
2
4
  import { ParaphraseToolJobSchema } from '../../../models';
3
5
 
4
6
  export namespace FindParaphraseJobsCommand {
@@ -6,6 +8,9 @@ export namespace FindParaphraseJobsCommand {
6
8
  limit: z.coerce.number().min(1).optional(),
7
9
  offset: z.coerce.number().min(0).default(0).optional(),
8
10
  title: z.string().optional(),
11
+ isFavorite: QueryBooleanSchema.optional(),
12
+ createdAtSortOrder: z.nativeEnum(JOB_SORT).optional().default(JOB_SORT.DESC),
13
+ status: z.nativeEnum(TOOL_JOB_STATUS).optional()
9
14
  });
10
15
  export type RequestQuery = z.infer<typeof RequestQuerySchema>;
11
16
 
@@ -7,3 +7,4 @@ export * from './retry-paraphrase-job.command';
7
7
  export * from './find-paraphrase-job-by-uuid.command';
8
8
  export * from './find-paraphrase-jobs.command';
9
9
  export * from './get-paraphrase-tool-config.command';
10
+ export * from './update-paraphrase-job-favorite.command';
@@ -0,0 +1,19 @@
1
+ import { z } from 'zod';
2
+ import { ParaphraseToolJobSchema } from '../../../models';
3
+
4
+ export namespace UpdateParaphraseJobFavoriteCommand {
5
+ export const RequestSchema = z.object({
6
+ isFavorite: z.boolean(),
7
+ });
8
+ export type Request = z.infer<typeof RequestSchema>;
9
+
10
+ export const RequestParamsSchema = z.object({
11
+ uuid: z.string().uuid(),
12
+ });
13
+ export type RequestParams = z.infer<typeof RequestParamsSchema>;
14
+
15
+ export const ResponseSchema = z.object({
16
+ data: ParaphraseToolJobSchema,
17
+ });
18
+ export type Response = z.infer<typeof ResponseSchema>;
19
+ }
@@ -1,4 +1,6 @@
1
1
  import { z } from 'zod';
2
+ import { QueryBooleanSchema } from '../../../helpers';
3
+ import { JOB_SORT, TOOL_JOB_STATUS } from '../../../constants';
2
4
  import { PresentationSchema } from '../../../models/tools/presentation';
3
5
 
4
6
  export namespace FindPresentationsCommand {
@@ -6,6 +8,9 @@ export namespace FindPresentationsCommand {
6
8
  limit: z.coerce.number().min(1).optional(),
7
9
  offset: z.coerce.number().min(0).default(0).optional(),
8
10
  title: z.string().optional(),
11
+ isFavorite: QueryBooleanSchema.optional(),
12
+ createdAtSortOrder: z.nativeEnum(JOB_SORT).optional().default(JOB_SORT.DESC),
13
+ status: z.nativeEnum(TOOL_JOB_STATUS).optional(),
9
14
  });
10
15
  export type RequestQuery = z.infer<typeof RequestQuerySchema>;
11
16
 
@@ -22,3 +22,4 @@ export * from './presentation-paraphrase.command';
22
22
  export * from './presentation-generate-report.command';
23
23
  export * from './update-slide.command';
24
24
  export * from './set-reaction-to-presentation.command';
25
+ export * from './update-presentation-favorite.command';
@@ -0,0 +1,13 @@
1
+ import { z } from 'zod';
2
+ import { PresentationSchema } from '../../../models/tools/presentation';
3
+
4
+ export namespace UpdatePresentationFavoriteCommand {
5
+ export const RequestBodySchema = z.object({ isFavorite: z.boolean() });
6
+ export type RequestBody = z.infer<typeof RequestBodySchema>;
7
+
8
+ export const RequestParamsSchema = z.object({ uuid: z.string().uuid() });
9
+ export type RequestParams = z.infer<typeof RequestParamsSchema>;
10
+
11
+ export const ResponseSchema = z.object({ data: PresentationSchema });
12
+ export type Response = z.infer<typeof ResponseSchema>;
13
+ }
@@ -1,4 +1,6 @@
1
1
  import { z } from 'zod';
2
+ import { QueryBooleanSchema } from '../../../helpers';
3
+ import { JOB_SORT, TOOL_JOB_STATUS } from '../../../constants';
2
4
  import { SolvingEduTaskJobSchema } from '../../../models';
3
5
 
4
6
  export namespace FindSolvingEduTaskJobsCommand {
@@ -6,6 +8,9 @@ export namespace FindSolvingEduTaskJobsCommand {
6
8
  limit: z.coerce.number().min(1).optional(),
7
9
  offset: z.coerce.number().min(0).default(0).optional(),
8
10
  title: z.string().optional(),
11
+ isFavorite: QueryBooleanSchema.optional(),
12
+ createdAtSortOrder: z.nativeEnum(JOB_SORT).optional().default(JOB_SORT.DESC),
13
+ status: z.nativeEnum(TOOL_JOB_STATUS).optional()
9
14
  });
10
15
  export type RequestQuery = z.infer<typeof RequestQuerySchema>;
11
16
 
@@ -7,3 +7,4 @@ export * from './set-reaction-to-solving-edu-task-job.command';
7
7
  export * from './delete-solving-edu-task-job-by-uuid.command';
8
8
  export * from './delete-all-solving-edu-task-jobs.command';
9
9
  export * from './update-solving-edu-task-job-title.command';
10
+ export * from './update-solving-edu-task-job-favorite.command';
@@ -0,0 +1,19 @@
1
+ import { z } from 'zod';
2
+ import { SolvingEduTaskJobSchema } from '../../../models';
3
+
4
+ export namespace UpdateSolvingEduTaskJobFavoriteCommand {
5
+ export const RequestSchema = z.object({
6
+ isFavorite: z.boolean(),
7
+ });
8
+ export type Request = z.infer<typeof RequestSchema>;
9
+
10
+ export const RequestParamsSchema = z.object({
11
+ uuid: z.string().uuid(),
12
+ });
13
+ export type RequestParams = z.infer<typeof RequestParamsSchema>;
14
+
15
+ export const ResponseSchema = z.object({
16
+ data: SolvingEduTaskJobSchema,
17
+ });
18
+ export type Response = z.infer<typeof ResponseSchema>;
19
+ }
@@ -1,4 +1,6 @@
1
1
  import { z } from 'zod';
2
+ import { QueryBooleanSchema } from '../../../helpers';
3
+ import { JOB_SORT, TOOL_JOB_STATUS } from '../../../constants';
2
4
  import { SpellCorrectorToolJobSchema } from '../../../models';
3
5
 
4
6
  export namespace FindSpellCorrectorJobsCommand {
@@ -6,6 +8,9 @@ export namespace FindSpellCorrectorJobsCommand {
6
8
  limit: z.coerce.number().min(1).optional(),
7
9
  offset: z.coerce.number().min(0).default(0).optional(),
8
10
  title: z.string().optional(),
11
+ isFavorite: QueryBooleanSchema.optional(),
12
+ createdAtSortOrder: z.nativeEnum(JOB_SORT).optional().default(JOB_SORT.DESC),
13
+ status: z.nativeEnum(TOOL_JOB_STATUS).optional(),
9
14
  });
10
15
  export type RequestQuery = z.infer<typeof RequestQuerySchema>;
11
16
 
@@ -7,3 +7,4 @@ export * from './retry-spell-corrector-job.command';
7
7
  export * from './find-spell-corrector-job-by-uuid.command';
8
8
  export * from './find-spell-corrector-jobs.command';
9
9
  export * from './get-spell-corrector-tool-config.command';
10
+ export * from './update-spell-corrector-job-favorite.command';
@@ -0,0 +1,19 @@
1
+ import { z } from 'zod';
2
+ import { SpellCorrectorToolJobSchema } from '../../../models';
3
+
4
+ export namespace UpdateSpellCorrectorJobFavoriteCommand {
5
+ export const RequestSchema = z.object({
6
+ isFavorite: z.boolean(),
7
+ });
8
+ export type Request = z.infer<typeof RequestSchema>;
9
+
10
+ export const RequestParamsSchema = z.object({
11
+ uuid: z.string().uuid(),
12
+ });
13
+ export type RequestParams = z.infer<typeof RequestParamsSchema>;
14
+
15
+ export const ResponseSchema = z.object({
16
+ data: SpellCorrectorToolJobSchema,
17
+ });
18
+ export type Response = z.infer<typeof ResponseSchema>;
19
+ }
@@ -1,4 +1,6 @@
1
1
  import { z } from 'zod';
2
+ import { QueryBooleanSchema } from '../../../helpers';
3
+ import { JOB_SORT, TOOL_JOB_STATUS } from '../../../constants';
2
4
  import { STTJobSchema } from '../../../models';
3
5
 
4
6
  export namespace FindSTTJobsCommand {
@@ -6,6 +8,9 @@ export namespace FindSTTJobsCommand {
6
8
  limit: z.coerce.number().min(1).optional(),
7
9
  offset: z.coerce.number().min(0).default(0).optional(),
8
10
  title: z.string().optional(),
11
+ isFavorite: QueryBooleanSchema.optional(),
12
+ createdAtSortOrder: z.nativeEnum(JOB_SORT).optional().default(JOB_SORT.DESC),
13
+ status: z.nativeEnum(TOOL_JOB_STATUS).optional(),
9
14
  });
10
15
  export type RequestQuery = z.infer<typeof RequestQuerySchema>;
11
16
 
@@ -7,3 +7,4 @@ export * from './retry-stt-job.command';
7
7
  export * from './set-reaction-to-stt-job.command';
8
8
  export * from './stt.command';
9
9
  export * from './update-stt-job-title.command';
10
+ export * from './update-stt-job-favorite.command';
@@ -0,0 +1,19 @@
1
+ import { z } from 'zod';
2
+ import { STTJobSchema } from '../../../models';
3
+
4
+ export namespace UpdateSTTJobFavoriteCommand {
5
+ export const RequestSchema = z.object({
6
+ isFavorite: z.boolean(),
7
+ });
8
+ export type Request = z.infer<typeof RequestSchema>;
9
+
10
+ export const RequestParamsSchema = z.object({
11
+ uuid: z.string().uuid(),
12
+ });
13
+ export type RequestParams = z.infer<typeof RequestParamsSchema>;
14
+
15
+ export const ResponseSchema = z.object({
16
+ data: STTJobSchema,
17
+ });
18
+ export type Response = z.infer<typeof ResponseSchema>;
19
+ }
@@ -1,4 +1,6 @@
1
1
  import { z } from 'zod';
2
+ import { QueryBooleanSchema } from '../../../helpers';
3
+ import { JOB_SORT, TOOL_JOB_STATUS } from '../../../constants';
2
4
  import { TTSJobSchema } from '../../../models';
3
5
 
4
6
  export namespace FindTTSJobsCommand {
@@ -6,6 +8,9 @@ export namespace FindTTSJobsCommand {
6
8
  limit: z.coerce.number().min(1).optional(),
7
9
  offset: z.coerce.number().min(0).default(0).optional(),
8
10
  title: z.string().optional(),
11
+ isFavorite: QueryBooleanSchema.optional(),
12
+ createdAtSortOrder: z.nativeEnum(JOB_SORT).optional().default(JOB_SORT.DESC),
13
+ status: z.nativeEnum(TOOL_JOB_STATUS).optional(),
9
14
  });
10
15
  export type RequestQuery = z.infer<typeof RequestQuerySchema>;
11
16
 
@@ -7,3 +7,4 @@ export * from './retry-tts-job.command';
7
7
  export * from './set-reaction-to-tts-job.command';
8
8
  export * from './tts.command';
9
9
  export * from './update-tts-job-title.command';
10
+ export * from './update-tts-job-favorite.command';
@@ -0,0 +1,19 @@
1
+ import { z } from 'zod';
2
+ import { TTSJobSchema } from '../../../models';
3
+
4
+ export namespace UpdateTTSJobFavoriteCommand {
5
+ export const RequestSchema = z.object({
6
+ isFavorite: z.boolean(),
7
+ });
8
+ export type Request = z.infer<typeof RequestSchema>;
9
+
10
+ export const RequestParamsSchema = z.object({
11
+ uuid: z.string().uuid(),
12
+ });
13
+ export type RequestParams = z.infer<typeof RequestParamsSchema>;
14
+
15
+ export const ResponseSchema = z.object({
16
+ data: TTSJobSchema,
17
+ });
18
+ export type Response = z.infer<typeof ResponseSchema>;
19
+ }
@@ -1,4 +1,6 @@
1
1
  import { z } from 'zod';
2
+ import { QueryBooleanSchema } from '../../../helpers';
3
+ import { JOB_SORT, TOOL_JOB_STATUS } from '../../../constants';
2
4
  import { VideoJobSchema } from '../../../models';
3
5
 
4
6
  export namespace FindVideoJobsCommand {
@@ -6,6 +8,9 @@ export namespace FindVideoJobsCommand {
6
8
  limit: z.coerce.number().min(1).optional(),
7
9
  offset: z.coerce.number().min(0).default(0).optional(),
8
10
  title: z.string().optional(),
11
+ isFavorite: QueryBooleanSchema.optional(),
12
+ createdAtSortOrder: z.nativeEnum(JOB_SORT).optional().default(JOB_SORT.DESC),
13
+ status: z.nativeEnum(TOOL_JOB_STATUS).optional(),
9
14
  });
10
15
  export type RequestQuery = z.infer<typeof RequestQuerySchema>;
11
16
 
@@ -7,3 +7,4 @@ export * from './retry-video-job.command';
7
7
  export * from './set-reaction-to-video-job.command';
8
8
  export * from './video.command';
9
9
  export * from './update-video-job-title.command';
10
+ export * from './update-video-job-favorite.command';
@@ -0,0 +1,19 @@
1
+ import { z } from 'zod';
2
+ import { VideoJobSchema } from '../../../models';
3
+
4
+ export namespace UpdateVideoJobFavoriteCommand {
5
+ export const RequestSchema = z.object({
6
+ isFavorite: z.boolean(),
7
+ });
8
+ export type Request = z.infer<typeof RequestSchema>;
9
+
10
+ export const RequestParamsSchema = z.object({
11
+ uuid: z.string().uuid(),
12
+ });
13
+ export type RequestParams = z.infer<typeof RequestParamsSchema>;
14
+
15
+ export const ResponseSchema = z.object({
16
+ data: VideoJobSchema,
17
+ });
18
+ export type Response = z.infer<typeof ResponseSchema>;
19
+ }
@@ -1,4 +1,6 @@
1
1
  import { z } from 'zod';
2
+ import { QueryBooleanSchema } from '../../../helpers';
3
+ import { JOB_SORT, TOOL_JOB_STATUS } from '../../../constants';
2
4
  import { VideoEditorJobSchema } from '../../../models';
3
5
 
4
6
  export namespace FindVideoEditorJobsCommand {
@@ -6,6 +8,9 @@ export namespace FindVideoEditorJobsCommand {
6
8
  limit: z.coerce.number().min(1).optional(),
7
9
  offset: z.coerce.number().min(0).default(0).optional(),
8
10
  title: z.string().optional(),
11
+ isFavorite: QueryBooleanSchema.optional(),
12
+ createdAtSortOrder: z.nativeEnum(JOB_SORT).optional().default(JOB_SORT.DESC),
13
+ status: z.nativeEnum(TOOL_JOB_STATUS).optional(),
9
14
  });
10
15
  export type RequestQuery = z.infer<typeof RequestQuerySchema>;
11
16
 
@@ -7,3 +7,4 @@ export * from './get-video-editor-config.command';
7
7
  export * from './retry-video-editor-job.command';
8
8
  export * from './set-reaction-to-video-editor-job.command';
9
9
  export * from './update-video-editor-job-title.command';
10
+ export * from './update-video-editor-job-favorite.command';
@@ -0,0 +1,19 @@
1
+ import { z } from 'zod';
2
+ import { VideoEditorJobSchema } from '../../../models';
3
+
4
+ export namespace UpdateVideoEditorJobFavoriteCommand {
5
+ export const RequestSchema = z.object({
6
+ isFavorite: z.boolean(),
7
+ });
8
+ export type Request = z.infer<typeof RequestSchema>;
9
+
10
+ export const RequestParamsSchema = z.object({
11
+ uuid: z.string().uuid(),
12
+ });
13
+ export type RequestParams = z.infer<typeof RequestParamsSchema>;
14
+
15
+ export const ResponseSchema = z.object({
16
+ data: VideoEditorJobSchema,
17
+ });
18
+ export type Response = z.infer<typeof ResponseSchema>;
19
+ }
@@ -1,4 +1,6 @@
1
1
  import { z } from 'zod';
2
+ import { QueryBooleanSchema } from '../../../helpers';
3
+ import { JOB_SORT, TOOL_JOB_STATUS } from '../../../constants';
2
4
  import { WriterDocumentSchema } from '../../../models';
3
5
 
4
6
  export namespace FindWriterDocumentsCommand {
@@ -6,6 +8,9 @@ export namespace FindWriterDocumentsCommand {
6
8
  limit: z.coerce.number().min(1).optional(),
7
9
  offset: z.coerce.number().min(0).default(0).optional(),
8
10
  title: z.string().optional(),
11
+ isFavorite: QueryBooleanSchema.optional(),
12
+ createdAtSortOrder: z.nativeEnum(JOB_SORT).optional().default(JOB_SORT.DESC),
13
+ status: z.nativeEnum(TOOL_JOB_STATUS).optional(),
9
14
  });
10
15
  export type RequestQuery = z.infer<typeof RequestQuerySchema>;
11
16
 
@@ -21,3 +21,4 @@ export * from './get-writer-document-sources.command';
21
21
  export * from './upload-writer-source.command';
22
22
  export * from './confirm-source-citation-metadata.command';
23
23
  export * from './discard-writer-source.command';
24
+ export * from './update-writer-document-favorite.command';
@@ -0,0 +1,13 @@
1
+ import { z } from 'zod';
2
+ import { WriterDocumentSchema } from '../../../models';
3
+
4
+ export namespace UpdateWriterDocumentFavoriteCommand {
5
+ export const RequestSchema = z.object({ isFavorite: z.boolean() });
6
+ export type Request = z.infer<typeof RequestSchema>;
7
+
8
+ export const RequestParamsSchema = z.object({ uuid: z.string().uuid() });
9
+ export type RequestParams = z.infer<typeof RequestParamsSchema>;
10
+
11
+ export const ResponseSchema = z.object({ data: WriterDocumentSchema });
12
+ export type Response = z.infer<typeof ResponseSchema>;
13
+ }
@@ -4,3 +4,4 @@ export * from './tool-job-status.enum';
4
4
  export * from './tool-type.enum';
5
5
  export * from './tool-workspace-item-slot.enum';
6
6
  export * from './tool-workspace-status.enum';
7
+ export * from './job-sort.enum';
@@ -0,0 +1,4 @@
1
+ export enum JOB_SORT {
2
+ ASC = 'asc',
3
+ DESC = 'desc',
4
+ }
package/helpers/index.ts CHANGED
@@ -10,3 +10,4 @@ export * from './image-editor';
10
10
  export * from './image-generation';
11
11
  export * from './music';
12
12
  export * from './interior-design';
13
+ export * from './query-boolean.schema';