@purpleschool/gptbot-tools 0.2.31-stage-2 → 0.2.33-stage

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 (199) hide show
  1. package/build/diagrams/commands/index.js +1 -0
  2. package/build/diagrams/commands/update-diagrams-job-favorite.command.js +16 -0
  3. package/build/diagrams/models/diagrams-job.schema.js +1 -0
  4. package/build/diagrams/queries/find-diagrams-jobs.query.js +4 -0
  5. package/build/diagrams/routes/diagrams.amqp.routes.js +1 -0
  6. package/build/html-page-builder/commands/index.js +1 -0
  7. package/build/html-page-builder/commands/update-html-page-builder-session-favorite.command.js +16 -0
  8. package/build/html-page-builder/commands/update-html-page-builder-session-title.command.js +2 -1
  9. package/build/html-page-builder/models/html-page-builder-session.schema.js +1 -0
  10. package/build/html-page-builder/queries/find-html-page-builder-sessions.query.js +4 -0
  11. package/build/html-page-builder/routes/html-page-builder.amqp.routes.js +1 -0
  12. package/build/image-editor/commands/index.js +1 -0
  13. package/build/image-editor/commands/update-image-editor-job-favorite.command.js +16 -0
  14. package/build/image-editor/models/image-editor-job.schema.js +1 -0
  15. package/build/image-editor/queries/find-image-editor-jobs.query.js +4 -0
  16. package/build/image-editor/queries/find-image-jobs.query.js +4 -0
  17. package/build/image-editor/routes/image-editor.amqp.routes.js +1 -0
  18. package/build/image-generation/commands/index.js +1 -0
  19. package/build/image-generation/commands/update-image-generation-job-favorite.command.js +16 -0
  20. package/build/image-generation/models/image-generation-job.schema.js +2 -0
  21. package/build/image-generation/models/image-generation-model.schema.js +1 -0
  22. package/build/image-generation/queries/find-image-generation-jobs.query.js +4 -0
  23. package/build/image-generation/routes/image-generation.amqp.routes.js +1 -0
  24. package/build/interior-design/commands/index.js +1 -0
  25. package/build/interior-design/commands/update-interior-design-job-favorite.command.js +16 -0
  26. package/build/interior-design/models/interior-design-job.schema.js +1 -0
  27. package/build/interior-design/queries/find-interior-design-jobs.query.js +4 -0
  28. package/build/interior-design/routes/interior-design.amqp.routes.js +1 -0
  29. package/build/marketplace-card/commands/index.js +1 -0
  30. package/build/marketplace-card/commands/update-marketplace-card-job-favorite.command.js +16 -0
  31. package/build/marketplace-card/models/marketplace-card-job.schema.js +1 -0
  32. package/build/marketplace-card/queries/find-marketplace-card-jobs.query.js +4 -0
  33. package/build/marketplace-card/routes/marketplace-card.amqp.routes.js +1 -0
  34. package/build/music/commands/index.js +1 -0
  35. package/build/music/commands/update-music-job-favorite.command.js +16 -0
  36. package/build/music/models/index.js +0 -2
  37. package/build/music/models/music-job.schema.js +1 -0
  38. package/build/music/queries/find-music-jobs.query.js +4 -0
  39. package/build/music/queries/index.js +0 -1
  40. package/build/music/routes/music.amqp.routes.js +1 -1
  41. package/build/paraphrase/commands/index.js +1 -0
  42. package/build/paraphrase/commands/update-paraphrase-job-favorite.command.js +16 -0
  43. package/build/paraphrase/queries/find-paraphrase-jobs.query.js +4 -0
  44. package/build/paraphrase/routes/paraphrase.amqp.routes.js +1 -0
  45. package/build/presentation/commands/index.js +1 -0
  46. package/build/presentation/commands/update-presentation-favorite.command.js +16 -0
  47. package/build/presentation/models/presentation.schema.js +1 -0
  48. package/build/presentation/queries/find-presentations.query.js +4 -0
  49. package/build/presentation/routes/presentation.routes.js +1 -0
  50. package/build/solving-edu-task/commands/index.js +1 -0
  51. package/build/solving-edu-task/commands/update-solving-edu-task-job-favorite.command.js +16 -0
  52. package/build/solving-edu-task/models/solving-edu-task-job.schema.js +1 -0
  53. package/build/solving-edu-task/queries/find-solving-edu-task-jobs.query.js +4 -0
  54. package/build/solving-edu-task/routes/solving-edu-task.amqp.routes.js +1 -0
  55. package/build/spell-corrector/commands/index.js +1 -0
  56. package/build/spell-corrector/commands/update-spell-corrector-job-favorite.command.js +16 -0
  57. package/build/spell-corrector/queries/find-spell-corrector-jobs.query.js +4 -0
  58. package/build/spell-corrector/routes/spell-corrector.amqp.routes.js +1 -0
  59. package/build/stt/commands/index.js +1 -0
  60. package/build/stt/commands/update-stt-job-favorite.command.js +16 -0
  61. package/build/stt/models/index.js +0 -2
  62. package/build/stt/models/stt-job.schema.js +1 -0
  63. package/build/stt/queries/find-stt-jobs.query.js +4 -0
  64. package/build/stt/queries/index.js +0 -1
  65. package/build/stt/routes/stt.amqp.routes.js +1 -1
  66. package/build/tools/enums/index.js +1 -0
  67. package/build/tools/enums/job-sort.enum.js +8 -0
  68. package/build/tts/commands/index.js +1 -0
  69. package/build/tts/commands/update-tts-job-favorite.command.js +16 -0
  70. package/build/tts/models/index.js +0 -2
  71. package/build/tts/models/tts-job.schema.js +1 -0
  72. package/build/tts/queries/find-tts-jobs.query.js +4 -0
  73. package/build/tts/queries/index.js +0 -1
  74. package/build/tts/routes/tts.amqp.routes.js +1 -1
  75. package/build/video/commands/index.js +1 -0
  76. package/build/video/commands/update-video-job-favorite.command.js +16 -0
  77. package/build/video/models/video-job.schema.js +1 -0
  78. package/build/video/models/video-model.schema.js +1 -0
  79. package/build/video/queries/find-video-jobs.query.js +4 -0
  80. package/build/video/routes/video.amqp.routes.js +1 -0
  81. package/build/video-editor/commands/index.js +1 -0
  82. package/build/video-editor/commands/update-video-editor-job-favorite.command.js +16 -0
  83. package/build/video-editor/models/video-editor-job.schema.js +1 -0
  84. package/build/video-editor/queries/find-video-editor-jobs.query.js +4 -0
  85. package/build/video-editor/routes/video-editor.amqp.routes.js +1 -0
  86. package/build/writer/commands/index.js +1 -0
  87. package/build/writer/commands/update-writer-document-favorite.command.js +16 -0
  88. package/build/writer/models/writer-document.schema.js +1 -0
  89. package/build/writer/queries/find-writer-documents.query.js +4 -0
  90. package/build/writer/routes/writer.routes.js +1 -0
  91. package/diagrams/commands/index.ts +1 -0
  92. package/diagrams/commands/update-diagrams-job-favorite.command.ts +16 -0
  93. package/diagrams/models/diagrams-job.schema.ts +1 -0
  94. package/diagrams/queries/find-diagrams-jobs.query.ts +4 -0
  95. package/diagrams/routes/diagrams.amqp.routes.ts +1 -0
  96. package/html-page-builder/commands/index.ts +1 -0
  97. package/html-page-builder/commands/update-html-page-builder-session-favorite.command.ts +16 -0
  98. package/html-page-builder/commands/update-html-page-builder-session-title.command.ts +7 -6
  99. package/html-page-builder/models/html-page-builder-session.schema.ts +1 -0
  100. package/html-page-builder/queries/find-html-page-builder-sessions.query.ts +4 -0
  101. package/html-page-builder/routes/html-page-builder.amqp.routes.ts +1 -0
  102. package/image-editor/commands/index.ts +1 -0
  103. package/image-editor/commands/update-image-editor-job-favorite.command.ts +16 -0
  104. package/image-editor/models/image-editor-job.schema.ts +1 -0
  105. package/image-editor/queries/find-image-editor-jobs.query.ts +4 -0
  106. package/image-editor/queries/find-image-jobs.query.ts +4 -0
  107. package/image-editor/routes/image-editor.amqp.routes.ts +1 -0
  108. package/image-generation/commands/index.ts +1 -0
  109. package/image-generation/commands/update-image-generation-job-favorite.command.ts +16 -0
  110. package/image-generation/models/image-generation-job.schema.ts +2 -0
  111. package/image-generation/models/image-generation-model.schema.ts +1 -0
  112. package/image-generation/queries/find-image-generation-jobs.query.ts +4 -0
  113. package/image-generation/routes/image-generation.amqp.routes.ts +1 -0
  114. package/interior-design/commands/index.ts +1 -0
  115. package/interior-design/commands/update-interior-design-job-favorite.command.ts +16 -0
  116. package/interior-design/models/interior-design-job.schema.ts +1 -0
  117. package/interior-design/queries/find-interior-design-jobs.query.ts +4 -0
  118. package/interior-design/routes/interior-design.amqp.routes.ts +1 -0
  119. package/marketplace-card/commands/index.ts +1 -0
  120. package/marketplace-card/commands/update-marketplace-card-job-favorite.command.ts +16 -0
  121. package/marketplace-card/models/marketplace-card-job.schema.ts +1 -0
  122. package/marketplace-card/queries/find-marketplace-card-jobs.query.ts +4 -0
  123. package/marketplace-card/routes/marketplace-card.amqp.routes.ts +1 -0
  124. package/music/commands/index.ts +1 -0
  125. package/music/commands/update-music-job-favorite.command.ts +16 -0
  126. package/music/models/index.ts +0 -2
  127. package/music/models/music-job.schema.ts +1 -0
  128. package/music/queries/find-music-jobs.query.ts +4 -0
  129. package/music/queries/index.ts +0 -1
  130. package/music/routes/music.amqp.routes.ts +1 -1
  131. package/package.json +1 -1
  132. package/paraphrase/commands/index.ts +1 -0
  133. package/paraphrase/commands/update-paraphrase-job-favorite.command.ts +16 -0
  134. package/paraphrase/queries/find-paraphrase-jobs.query.ts +4 -0
  135. package/paraphrase/routes/paraphrase.amqp.routes.ts +1 -0
  136. package/presentation/commands/index.ts +1 -0
  137. package/presentation/commands/update-presentation-favorite.command.ts +16 -0
  138. package/presentation/models/presentation.schema.ts +1 -0
  139. package/presentation/queries/find-presentations.query.ts +4 -0
  140. package/presentation/routes/presentation.routes.ts +1 -0
  141. package/solving-edu-task/commands/index.ts +1 -0
  142. package/solving-edu-task/commands/update-solving-edu-task-job-favorite.command.ts +16 -0
  143. package/solving-edu-task/models/solving-edu-task-job.schema.ts +1 -0
  144. package/solving-edu-task/queries/find-solving-edu-task-jobs.query.ts +4 -0
  145. package/solving-edu-task/routes/solving-edu-task.amqp.routes.ts +1 -0
  146. package/spell-corrector/commands/index.ts +1 -0
  147. package/spell-corrector/commands/update-spell-corrector-job-favorite.command.ts +16 -0
  148. package/spell-corrector/queries/find-spell-corrector-jobs.query.ts +4 -0
  149. package/spell-corrector/routes/spell-corrector.amqp.routes.ts +1 -0
  150. package/stt/commands/index.ts +1 -0
  151. package/stt/commands/update-stt-job-favorite.command.ts +16 -0
  152. package/stt/models/index.ts +0 -2
  153. package/stt/models/stt-job.schema.ts +1 -0
  154. package/stt/queries/find-stt-jobs.query.ts +4 -0
  155. package/stt/queries/index.ts +0 -1
  156. package/stt/routes/stt.amqp.routes.ts +1 -1
  157. package/tools/enums/index.ts +1 -0
  158. package/tools/enums/job-sort.enum.ts +4 -0
  159. package/tts/commands/index.ts +1 -0
  160. package/tts/commands/update-tts-job-favorite.command.ts +16 -0
  161. package/tts/models/index.ts +0 -2
  162. package/tts/models/tts-job.schema.ts +1 -0
  163. package/tts/queries/find-tts-jobs.query.ts +4 -0
  164. package/tts/queries/index.ts +0 -1
  165. package/tts/routes/tts.amqp.routes.ts +1 -1
  166. package/video/commands/index.ts +1 -0
  167. package/video/commands/update-video-job-favorite.command.ts +16 -0
  168. package/video/models/video-job.schema.ts +1 -0
  169. package/video/models/video-model.schema.ts +1 -0
  170. package/video/queries/find-video-jobs.query.ts +4 -0
  171. package/video/routes/video.amqp.routes.ts +1 -0
  172. package/video-editor/commands/index.ts +1 -0
  173. package/video-editor/commands/update-video-editor-job-favorite.command.ts +16 -0
  174. package/video-editor/models/video-editor-job.schema.ts +1 -0
  175. package/video-editor/queries/find-video-editor-jobs.query.ts +4 -0
  176. package/video-editor/routes/video-editor.amqp.routes.ts +1 -0
  177. package/writer/commands/index.ts +1 -0
  178. package/writer/commands/update-writer-document-favorite.command.ts +16 -0
  179. package/writer/models/writer-document.schema.ts +1 -0
  180. package/writer/queries/find-writer-documents.query.ts +4 -0
  181. package/writer/routes/writer.routes.ts +1 -0
  182. package/build/music/models/music-config-with-vendors.schema.js +0 -10
  183. package/build/music/models/music-model-with-vendor.schema.js +0 -8
  184. package/build/music/queries/get-music-config-with-vendors.query.js +0 -10
  185. package/build/stt/models/stt-config-with-vendors.schema.js +0 -10
  186. package/build/stt/models/stt-model-with-vendor.schema.js +0 -8
  187. package/build/stt/queries/get-stt-config-with-vendors.query.js +0 -10
  188. package/build/tts/models/tts-config-with-vendors.schema.js +0 -10
  189. package/build/tts/models/tts-model-with-vendor.schema.js +0 -8
  190. package/build/tts/queries/get-tts-config-with-vendors.query.js +0 -10
  191. package/music/models/music-config-with-vendors.schema.ts +0 -10
  192. package/music/models/music-model-with-vendor.schema.ts +0 -8
  193. package/music/queries/get-music-config-with-vendors.query.ts +0 -11
  194. package/stt/models/stt-config-with-vendors.schema.ts +0 -10
  195. package/stt/models/stt-model-with-vendor.schema.ts +0 -8
  196. package/stt/queries/get-stt-config-with-vendors.query.ts +0 -11
  197. package/tts/models/tts-config-with-vendors.schema.ts +0 -10
  198. package/tts/models/tts-model-with-vendor.schema.ts +0 -8
  199. package/tts/queries/get-tts-config-with-vendors.query.ts +0 -11
@@ -1,6 +1,7 @@
1
1
  import { z } from 'zod';
2
2
  import { ICommandResponseSchema } from '../../common/models/command-response.schema';
3
3
  import { SpellCorrectorJobSchema } from '../models';
4
+ import { JOB_SORT, JOB_STATUS } from '../../tools';
4
5
 
5
6
  export namespace FindSpellCorrectorJobsQuery {
6
7
  export const RequestSchema = z
@@ -8,6 +9,9 @@ export namespace FindSpellCorrectorJobsQuery {
8
9
  userId: z.string().uuid().optional(),
9
10
  unregisteredUserId: z.string().uuid().optional(),
10
11
  title: z.string().optional(),
12
+ isFavorite: z.coerce.boolean().optional(),
13
+ createdAtSortOrder: z.nativeEnum(JOB_SORT).optional().default(JOB_SORT.DESC),
14
+ status: z.nativeEnum(JOB_STATUS).optional(),
11
15
  limit: z.coerce.number().min(1).optional(),
12
16
  offset: z.coerce.number().min(0).default(0).optional(),
13
17
  })
@@ -6,6 +6,7 @@ export const SPELL_CORRECTOR_AMQP_ROUTES = {
6
6
  LIST_JOBS: 'tools.spell_corrector.jobs.list.rpc',
7
7
  SET_REACTION: 'tools.spell_corrector.jobs.set-reaction.rpc',
8
8
  UPDATE_TITLE: 'tools.spell_corrector.jobs.update-title.rpc',
9
+ UPDATE_FAVORITE: 'tools.spell_corrector.jobs.update-favorite.rpc',
9
10
  SOFT_DELETE: 'tools.spell_corrector.jobs.soft-delete.rpc',
10
11
  SOFT_DELETE_ALL: 'tools.spell_corrector.jobs.soft-delete-all.rpc',
11
12
  RETRY: 'tools.spell_corrector.jobs.retry.rpc',
@@ -5,3 +5,4 @@ export * from './set-reaction-to-stt-job.command';
5
5
  export * from './stt.command';
6
6
  export * from './get-stt-price.command';
7
7
  export * from './update-stt-job-title.command';
8
+ export * from './update-stt-job-favorite.command';
@@ -0,0 +1,16 @@
1
+ import { z } from 'zod';
2
+ import { ICommandResponseSchema } from '../../common/models/command-response.schema';
3
+ import { STTJobSchema } from '../models/stt-job.schema';
4
+
5
+ export namespace UpdateSTTJobFavoriteCommand {
6
+ export const RequestSchema = z.object({
7
+ uuid: z.string().uuid(),
8
+ userId: z.string().uuid().nullable().optional(),
9
+ unregisteredUserId: z.string().uuid().nullable().optional(),
10
+ isFavorite: z.boolean(),
11
+ });
12
+ export type Request = z.infer<typeof RequestSchema>;
13
+
14
+ export const ResponseSchema = ICommandResponseSchema(STTJobSchema);
15
+ export type Response = z.infer<typeof ResponseSchema>;
16
+ }
@@ -1,6 +1,4 @@
1
1
  export * from './stt-config.schema';
2
- export * from './stt-config-with-vendors.schema';
3
2
  export * from './stt-job.schema';
4
3
  export * from './stt-model.schema';
5
- export * from './stt-model-with-vendor.schema';
6
4
  export * from './stt-response.schema';
@@ -21,6 +21,7 @@ export const STTJobSchema = z.object({
21
21
  price: z.number(),
22
22
  tokenReservationId: z.string().nullable().optional(),
23
23
  isDeleted: z.boolean(),
24
+ isFavorite: z.boolean(),
24
25
  createdAt: z.date(),
25
26
  completedAt: z.date().nullable(),
26
27
  updatedAt: z.date(),
@@ -2,6 +2,7 @@ import { z } from 'zod';
2
2
  import { JOB_SCOPE } from '../../common';
3
3
  import { ICommandResponseSchema } from '../../common/models/command-response.schema';
4
4
  import { STTJobSchema } from '../models/stt-job.schema';
5
+ import { JOB_SORT, JOB_STATUS } from '../../tools';
5
6
 
6
7
  export namespace FindSTTJobsQuery {
7
8
  export const RequestSchema = z
@@ -10,6 +11,9 @@ export namespace FindSTTJobsQuery {
10
11
  unregisteredUserId: z.string().uuid().optional(),
11
12
  scope: z.nativeEnum(JOB_SCOPE).optional().default(JOB_SCOPE.TOOL),
12
13
  title: z.string().optional(),
14
+ isFavorite: z.coerce.boolean().optional(),
15
+ createdAtSortOrder: z.nativeEnum(JOB_SORT).optional().default(JOB_SORT.DESC),
16
+ status: z.nativeEnum(JOB_STATUS).optional(),
13
17
  limit: z.coerce.number().min(1).optional(),
14
18
  offset: z.coerce.number().min(0).optional(),
15
19
  })
@@ -1,4 +1,3 @@
1
1
  export * from './find-stt-job-by-uuid.query';
2
2
  export * from './find-stt-jobs.query';
3
3
  export * from './get-stt-config.query';
4
- export * from './get-stt-config-with-vendors.query';
@@ -2,12 +2,12 @@ export const STT_AMQP_ROUTES = {
2
2
  EXECUTE: 'tools.stt.execute.rpc',
3
3
  GET_PRICE: 'tools.stt.get-price.rpc',
4
4
  CONFIG: 'tools.stt.config.rpc',
5
- CONFIG_WITH_VENDORS: 'tools.stt.config-with-vendors.rpc',
6
5
  GET_JOB: 'tools.stt.jobs.get.rpc',
7
6
  LIST_JOBS: 'tools.stt.jobs.list.rpc',
8
7
  SET_REACTION: 'tools.stt.jobs.set_reaction.rpc',
9
8
  SOFT_DELETE: 'tools.stt.jobs.soft-delete.rpc',
10
9
  SOFT_DELETE_ALL: 'tools.stt.jobs.soft-delete-all.rpc',
11
10
  UPDATE_TITLE: 'tools.stt.jobs.update-title.rpc',
11
+ UPDATE_FAVORITE: 'tools.stt.jobs.update-favorite.rpc',
12
12
  RETRY: 'tools.stt.jobs.retry.rpc',
13
13
  } as const;
@@ -2,3 +2,4 @@ export * from './job-status.enum';
2
2
  export * from './tool-type.enum';
3
3
  export * from './tool-content-type.enum';
4
4
  export * from './tool-group.enum';
5
+ export * from './job-sort.enum'
@@ -0,0 +1,4 @@
1
+ export enum JOB_SORT {
2
+ DESC = 'desc',
3
+ ASC = "asc"
4
+ }
@@ -5,3 +5,4 @@ export * from './set-reaction-to-tts-job.command';
5
5
  export * from './tts.command';
6
6
  export * from './get-tts-price.command';
7
7
  export * from './update-tts-job-title.command';
8
+ export * from './update-tts-job-favorite.command';
@@ -0,0 +1,16 @@
1
+ import { z } from 'zod';
2
+ import { ICommandResponseSchema } from '../../common/models/command-response.schema';
3
+ import { TTSJobSchema } from '../models/tts-job.schema';
4
+
5
+ export namespace UpdateTTSJobFavoriteCommand {
6
+ export const RequestSchema = z.object({
7
+ uuid: z.string().uuid(),
8
+ userId: z.string().uuid().nullable().optional(),
9
+ unregisteredUserId: z.string().uuid().nullable().optional(),
10
+ isFavorite: z.boolean(),
11
+ });
12
+ export type Request = z.infer<typeof RequestSchema>;
13
+
14
+ export const ResponseSchema = ICommandResponseSchema(TTSJobSchema);
15
+ export type Response = z.infer<typeof ResponseSchema>;
16
+ }
@@ -1,5 +1,3 @@
1
1
  export * from './tts-config.schema';
2
- export * from './tts-config-with-vendors.schema';
3
2
  export * from './tts-job.schema';
4
3
  export * from './tts-model.schema';
5
- export * from './tts-model-with-vendor.schema';
@@ -27,6 +27,7 @@ export const TTSJobSchema = z.object({
27
27
  unregisteredUserId: z.string().nullable(),
28
28
  tokenReservationId: z.string().nullable().optional(),
29
29
  isDeleted: z.boolean(),
30
+ isFavorite: z.boolean(),
30
31
  params: TTSJobParamsSchema,
31
32
  createdAt: z.date(),
32
33
  updatedAt: z.date(),
@@ -2,6 +2,7 @@ import { z } from 'zod';
2
2
  import { JOB_SCOPE } from '../../common';
3
3
  import { ICommandResponseSchema } from '../../common/models/command-response.schema';
4
4
  import { TTSJobSchema } from '../models/tts-job.schema';
5
+ import { JOB_SORT, JOB_STATUS } from '../../tools';
5
6
 
6
7
  export namespace FindTTSJobsQuery {
7
8
  export const RequestSchema = z
@@ -10,6 +11,9 @@ export namespace FindTTSJobsQuery {
10
11
  unregisteredUserId: z.string().uuid().optional(),
11
12
  scope: z.nativeEnum(JOB_SCOPE).optional().default(JOB_SCOPE.TOOL),
12
13
  title: z.string().optional(),
14
+ isFavorite: z.coerce.boolean().optional(),
15
+ createdAtSortOrder: z.nativeEnum(JOB_SORT).optional().default(JOB_SORT.DESC),
16
+ status: z.nativeEnum(JOB_STATUS).optional(),
13
17
  limit: z.coerce.number().min(1).optional(),
14
18
  offset: z.coerce.number().min(0).default(0).optional(),
15
19
  })
@@ -1,4 +1,3 @@
1
1
  export * from './find-tts-job-by-id.query';
2
2
  export * from './find-tts-jobs.query';
3
3
  export * from './get-tts-config.query';
4
- export * from './get-tts-config-with-vendors.query';
@@ -2,11 +2,11 @@ export const TTS_AMQP_ROUTES = {
2
2
  EXECUTE: 'tools.tts.execute.rpc',
3
3
  GET_PRICE: 'tools.tts.get-price.rpc',
4
4
  CONFIG: 'tools.tts.config.rpc',
5
- CONFIG_WITH_VENDORS: 'tools.tts.config-with-vendors.rpc',
6
5
  GET_JOB: 'tools.tts.jobs.get.rpc',
7
6
  LIST_JOBS: 'tools.tts.jobs.list.rpc',
8
7
  SET_REACTION: 'tools.tts.jobs.set-reaction.rpc',
9
8
  UPDATE_TITLE: 'tools.tts.jobs.update-title.rpc',
9
+ UPDATE_FAVORITE: 'tools.tts.jobs.update-favorite.rpc',
10
10
  SOFT_DELETE: 'tools.tts.jobs.soft-delete.rpc',
11
11
  SOFT_DELETE_ALL: 'tools.tts.jobs.soft-delete-all.rpc',
12
12
  RETRY: 'tools.tts.jobs.retry.rpc',
@@ -5,6 +5,7 @@ export * from './set-reaction-to-video-job.command';
5
5
  export * from './video.command';
6
6
  export * from './get-video-price.command';
7
7
  export * from './update-video-job-title.command';
8
+ export * from './update-video-job-favorite.command';
8
9
  export * from './video-model';
9
10
  export * from './update-published-status-video-jobs.command';
10
11
  export * from './moderate-video-before-post.command';
@@ -0,0 +1,16 @@
1
+ import { z } from 'zod';
2
+ import { ICommandResponseSchema } from '../../common/models/command-response.schema';
3
+ import { VideoJobSchema } from '../models/video-job.schema';
4
+
5
+ export namespace UpdateVideoJobFavoriteCommand {
6
+ export const RequestSchema = z.object({
7
+ uuid: z.string().uuid(),
8
+ userId: z.string().uuid().nullable().optional(),
9
+ unregisteredUserId: z.string().uuid().nullable().optional(),
10
+ isFavorite: z.boolean(),
11
+ });
12
+ export type Request = z.infer<typeof RequestSchema>;
13
+
14
+ export const ResponseSchema = ICommandResponseSchema(VideoJobSchema);
15
+ export type Response = z.infer<typeof ResponseSchema>;
16
+ }
@@ -43,6 +43,7 @@ export const VideoJobSchema = z.object({
43
43
  tokenReservationId: z.string().nullable().optional(),
44
44
  workspaceId: z.string().uuid().nullable().optional(),
45
45
  isDeleted: z.boolean(),
46
+ isFavorite: z.boolean(),
46
47
  createdAt: z.date(),
47
48
  completedAt: z.date().nullable().optional(),
48
49
  updatedAt: z.date(),
@@ -87,6 +87,7 @@ export const VideoModelSchema = z.object({
87
87
  aiModel: z.string(),
88
88
  pricePerSecond: z.number(),
89
89
  order: z.number(),
90
+ isNew: z.boolean(),
90
91
  status: z.nativeEnum(TOOL_MODEL_STATUS),
91
92
  icons: IconVariantsSchema,
92
93
  strategy: z.nativeEnum(VIDEO_GENERATION_STRATEGY),
@@ -2,6 +2,7 @@ import { z } from 'zod';
2
2
  import { JOB_SCOPE } from '../../common';
3
3
  import { ICommandResponseSchema } from '../../common/models/command-response.schema';
4
4
  import { VideoJobSchema } from '../models/video-job.schema';
5
+ import { JOB_SORT, JOB_STATUS } from '../../tools';
5
6
 
6
7
  export namespace FindVideoJobsQuery {
7
8
  export const RequestSchema = z
@@ -11,6 +12,9 @@ export namespace FindVideoJobsQuery {
11
12
  scope: z.nativeEnum(JOB_SCOPE).optional().default(JOB_SCOPE.TOOL),
12
13
  workspaceId: z.string().uuid().nullable().optional(),
13
14
  title: z.string().optional(),
15
+ isFavorite: z.coerce.boolean().optional(),
16
+ createdAtSortOrder: z.nativeEnum(JOB_SORT).optional().default(JOB_SORT.DESC),
17
+ status: z.nativeEnum(JOB_STATUS).optional(),
14
18
  limit: z.coerce.number().min(1).optional(),
15
19
  offset: z.coerce.number().min(0).default(0).optional(),
16
20
  })
@@ -6,6 +6,7 @@ export const VIDEO_AMQP_ROUTES = {
6
6
  LIST_JOBS: 'tools.video.jobs.list.rpc',
7
7
  SET_REACTION: 'tools.video.jobs.set-reaction.rpc',
8
8
  UPDATE_TITLE: 'tools.video.jobs.update-title.rpc',
9
+ UPDATE_FAVORITE: 'tools.video.jobs.update-favorite.rpc',
9
10
  SOFT_DELETE: 'tools.video.jobs.soft-delete.rpc',
10
11
  SOFT_DELETE_ALL: 'tools.video.jobs.soft-delete-all.rpc',
11
12
  RETRY: 'tools.video.jobs.retry.rpc',
@@ -3,6 +3,7 @@ export * from './delete-video-editor-job-by-uuid.command';
3
3
  export * from './retry-video-editor-job.command';
4
4
  export * from './set-reaction-to-video-editor-job.command';
5
5
  export * from './update-video-editor-job-title.command';
6
+ export * from './update-video-editor-job-favorite.command';
6
7
  export * from './update-published-status-video-editor-jobs.command';
7
8
  export * from './edit-video.command';
8
9
  export * from './get-video-editor-price.command';
@@ -0,0 +1,16 @@
1
+ import { z } from 'zod';
2
+ import { ICommandResponseSchema } from '../../common/models/command-response.schema';
3
+ import { VideoEditorJobSchema } from '../models/video-editor-job.schema';
4
+
5
+ export namespace UpdateVideoEditorJobFavoriteCommand {
6
+ export const RequestSchema = z.object({
7
+ uuid: z.string().uuid(),
8
+ userId: z.string().uuid().nullable().optional(),
9
+ unregisteredUserId: z.string().uuid().nullable().optional(),
10
+ isFavorite: z.boolean(),
11
+ });
12
+ export type Request = z.infer<typeof RequestSchema>;
13
+
14
+ export const ResponseSchema = ICommandResponseSchema(VideoEditorJobSchema);
15
+ export type Response = z.infer<typeof ResponseSchema>;
16
+ }
@@ -34,6 +34,7 @@ export const VideoEditorJobSchema = z.object({
34
34
  isPublished: z.boolean(),
35
35
  postId: z.string().nullable(),
36
36
  isDeleted: z.boolean(),
37
+ isFavorite: z.boolean(),
37
38
  createdAt: z.date(),
38
39
  completedAt: z.date().nullable().optional(),
39
40
  updatedAt: z.date(),
@@ -2,6 +2,7 @@ import { z } from 'zod';
2
2
  import { JOB_SCOPE } from '../../common';
3
3
  import { ICommandResponseSchema } from '../../common/models/command-response.schema';
4
4
  import { VideoEditorJobSchema } from '../models/video-editor-job.schema';
5
+ import { JOB_SORT, JOB_STATUS } from '../../tools';
5
6
 
6
7
  export namespace FindVideoEditorJobsQuery {
7
8
  export const RequestSchema = z
@@ -10,6 +11,9 @@ export namespace FindVideoEditorJobsQuery {
10
11
  unregisteredUserId: z.string().uuid().optional(),
11
12
  scope: z.nativeEnum(JOB_SCOPE).optional().default(JOB_SCOPE.TOOL),
12
13
  title: z.string().optional(),
14
+ isFavorite: z.coerce.boolean().optional(),
15
+ createdAtSortOrder: z.nativeEnum(JOB_SORT).optional().default(JOB_SORT.DESC),
16
+ status: z.nativeEnum(JOB_STATUS).optional(),
13
17
  limit: z.coerce.number().min(1).optional(),
14
18
  offset: z.coerce.number().min(0).default(0).optional(),
15
19
  })
@@ -6,6 +6,7 @@ export const VIDEO_EDITOR_AMQP_ROUTES = {
6
6
  LIST_JOBS: 'tools.video-editor.jobs.list.rpc',
7
7
  SET_REACTION: 'tools.video-editor.jobs.set-reaction.rpc',
8
8
  UPDATE_TITLE: 'tools.video-editor.jobs.update-title.rpc',
9
+ UPDATE_FAVORITE: 'tools.video-editor.jobs.update-favorite.rpc',
9
10
  UPDATE_JOB: 'tools.video-editor.jobs.update.rpc',
10
11
  SOFT_DELETE: 'tools.video-editor.jobs.soft-delete.rpc',
11
12
  SOFT_DELETE_ALL: 'tools.video-editor.jobs.soft-delete-all.rpc',
@@ -15,6 +15,7 @@ export * from './writer-fix-errors.command';
15
15
  export * from './writer-generate-text.command';
16
16
  export * from './update-writer-document-contents.command';
17
17
  export * from './set-reaction-writer-document.command';
18
+ export * from './update-writer-document-favorite.command';
18
19
  export * from './collect-sources.command';
19
20
  export * from './upload-writer-source.command';
20
21
  export * from './confirm-source-citation-metadata.command';
@@ -0,0 +1,16 @@
1
+ import { z } from 'zod';
2
+ import { ICommandResponseSchema } from '../../common/models/command-response.schema';
3
+ import { WriterDocumentSchema } from '../models';
4
+
5
+ export namespace UpdateWriterDocumentFavoriteCommand {
6
+ export const RequestSchema = z.object({
7
+ uuid: z.string().uuid(),
8
+ userId: z.string().uuid().nullable().optional(),
9
+ unregisteredUserId: z.string().uuid().nullable().optional(),
10
+ isFavorite: z.boolean(),
11
+ });
12
+ export type Request = z.infer<typeof RequestSchema>;
13
+
14
+ export const ResponseSchema = ICommandResponseSchema(WriterDocumentSchema);
15
+ export type Response = z.infer<typeof ResponseSchema>;
16
+ }
@@ -25,6 +25,7 @@ export const WriterDocumentSchema = z.object({
25
25
  skipSources: z.boolean(),
26
26
  pages: z.number(),
27
27
  isDeleted: z.boolean(),
28
+ isFavorite: z.boolean(),
28
29
  tokenReservationId: z.string().nullable().optional(),
29
30
  createdAt: z.date(),
30
31
  updatedAt: z.date(),
@@ -1,12 +1,16 @@
1
1
  import { z } from 'zod';
2
2
  import { ICommandResponseSchema } from '../../common/models/command-response.schema';
3
3
  import { WriterDocumentSchema } from '../models';
4
+ import { JOB_SORT, JOB_STATUS } from '../../tools';
4
5
 
5
6
  export namespace FindWriterDocumentsQuery {
6
7
  export const RequestSchema = z.object({
7
8
  userId: z.string().uuid().optional(),
8
9
  unregisteredUserId: z.string().uuid().optional(),
9
10
  topic: z.string().optional(),
11
+ isFavorite: z.coerce.boolean().optional(),
12
+ createdAtSortOrder: z.nativeEnum(JOB_SORT).optional().default(JOB_SORT.DESC),
13
+ status: z.nativeEnum(JOB_STATUS).optional(),
10
14
  limit: z.coerce.number().min(1).optional(),
11
15
  offset: z.coerce.number().min(0).optional(),
12
16
  });
@@ -24,4 +24,5 @@ export const WRITER_AMQP_ROUTES = {
24
24
  GENERATE_TEXT: 'tools.writer.actions.generate-text.rpc',
25
25
  EXPORT_DOCX: 'tools.writer.export-docx.rpc',
26
26
  SET_REACTION: 'tools.writer.set-reaction.rpc',
27
+ UPDATE_FAVORITE: 'tools.writer.update-favorite.rpc',
27
28
  } as const;
@@ -1,10 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.MusicConfigWithVendorsSchema = void 0;
4
- const zod_1 = require("zod");
5
- const ai_vendor_1 = require("../../ai-vendor");
6
- const music_model_with_vendor_schema_1 = require("./music-model-with-vendor.schema");
7
- exports.MusicConfigWithVendorsSchema = zod_1.z.object({
8
- vendors: zod_1.z.array(ai_vendor_1.AiVendorSchema),
9
- models: zod_1.z.array(music_model_with_vendor_schema_1.MusicModelWithVendorSchema),
10
- });
@@ -1,8 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.MusicModelWithVendorSchema = void 0;
4
- const zod_1 = require("zod");
5
- const music_model_schema_1 = require("./music-model.schema");
6
- exports.MusicModelWithVendorSchema = music_model_schema_1.MusicModelSchema.extend({
7
- vendorId: zod_1.z.string().uuid(),
8
- });
@@ -1,10 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.GetMusicConfigWithVendorsQuery = void 0;
4
- const common_1 = require("../../common");
5
- const models_1 = require("../models");
6
- var GetMusicConfigWithVendorsQuery;
7
- (function (GetMusicConfigWithVendorsQuery) {
8
- GetMusicConfigWithVendorsQuery.RequestSchema = common_1.LocaleRequestSchema;
9
- GetMusicConfigWithVendorsQuery.ResponseSchema = (0, common_1.ICommandResponseSchema)(models_1.MusicConfigWithVendorsSchema);
10
- })(GetMusicConfigWithVendorsQuery || (exports.GetMusicConfigWithVendorsQuery = GetMusicConfigWithVendorsQuery = {}));
@@ -1,10 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.STTConfigWithVendorsSchema = void 0;
4
- const zod_1 = require("zod");
5
- const ai_vendor_1 = require("../../ai-vendor");
6
- const stt_model_with_vendor_schema_1 = require("./stt-model-with-vendor.schema");
7
- exports.STTConfigWithVendorsSchema = zod_1.z.object({
8
- vendors: zod_1.z.array(ai_vendor_1.AiVendorSchema),
9
- models: zod_1.z.array(stt_model_with_vendor_schema_1.STTModelWithVendorSchema),
10
- });
@@ -1,8 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.STTModelWithVendorSchema = void 0;
4
- const zod_1 = require("zod");
5
- const stt_model_schema_1 = require("./stt-model.schema");
6
- exports.STTModelWithVendorSchema = stt_model_schema_1.STTModelSchema.extend({
7
- vendorId: zod_1.z.string().uuid(),
8
- });
@@ -1,10 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.GetSTTConfigWithVendorsQuery = void 0;
4
- const common_1 = require("../../common");
5
- const models_1 = require("../models");
6
- var GetSTTConfigWithVendorsQuery;
7
- (function (GetSTTConfigWithVendorsQuery) {
8
- GetSTTConfigWithVendorsQuery.RequestSchema = common_1.LocaleRequestSchema;
9
- GetSTTConfigWithVendorsQuery.ResponseSchema = (0, common_1.ICommandResponseSchema)(models_1.STTConfigWithVendorsSchema);
10
- })(GetSTTConfigWithVendorsQuery || (exports.GetSTTConfigWithVendorsQuery = GetSTTConfigWithVendorsQuery = {}));
@@ -1,10 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.TTSConfigWithVendorsSchema = void 0;
4
- const zod_1 = require("zod");
5
- const ai_vendor_1 = require("../../ai-vendor");
6
- const tts_model_with_vendor_schema_1 = require("./tts-model-with-vendor.schema");
7
- exports.TTSConfigWithVendorsSchema = zod_1.z.object({
8
- vendors: zod_1.z.array(ai_vendor_1.AiVendorSchema),
9
- models: zod_1.z.array(tts_model_with_vendor_schema_1.TTSModelWithVendorSchema),
10
- });
@@ -1,8 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.TTSModelWithVendorSchema = void 0;
4
- const zod_1 = require("zod");
5
- const tts_model_schema_1 = require("./tts-model.schema");
6
- exports.TTSModelWithVendorSchema = tts_model_schema_1.TTSModelSchema.extend({
7
- vendorId: zod_1.z.string().uuid(),
8
- });
@@ -1,10 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.GetTTSConfigWithVendorsQuery = void 0;
4
- const common_1 = require("../../common");
5
- const models_1 = require("../models");
6
- var GetTTSConfigWithVendorsQuery;
7
- (function (GetTTSConfigWithVendorsQuery) {
8
- GetTTSConfigWithVendorsQuery.RequestSchema = common_1.LocaleRequestSchema;
9
- GetTTSConfigWithVendorsQuery.ResponseSchema = (0, common_1.ICommandResponseSchema)(models_1.TTSConfigWithVendorsSchema);
10
- })(GetTTSConfigWithVendorsQuery || (exports.GetTTSConfigWithVendorsQuery = GetTTSConfigWithVendorsQuery = {}));
@@ -1,10 +0,0 @@
1
- import { z } from 'zod';
2
- import { AiVendorSchema } from '../../ai-vendor';
3
- import { MusicModelWithVendorSchema } from './music-model-with-vendor.schema';
4
-
5
- export const MusicConfigWithVendorsSchema = z.object({
6
- vendors: z.array(AiVendorSchema),
7
- models: z.array(MusicModelWithVendorSchema),
8
- });
9
-
10
- export type MusicConfigWithVendors = z.infer<typeof MusicConfigWithVendorsSchema>;
@@ -1,8 +0,0 @@
1
- import { z } from 'zod';
2
- import { MusicModelSchema } from './music-model.schema';
3
-
4
- export const MusicModelWithVendorSchema = MusicModelSchema.extend({
5
- vendorId: z.string().uuid(),
6
- });
7
-
8
- export type MusicModelWithVendor = z.infer<typeof MusicModelWithVendorSchema>;
@@ -1,11 +0,0 @@
1
- import { z } from 'zod';
2
- import { ICommandResponseSchema, LocaleRequestSchema } from '../../common';
3
- import { MusicConfigWithVendorsSchema } from '../models';
4
-
5
- export namespace GetMusicConfigWithVendorsQuery {
6
- export const RequestSchema = LocaleRequestSchema;
7
- export type Request = z.infer<typeof RequestSchema>;
8
-
9
- export const ResponseSchema = ICommandResponseSchema(MusicConfigWithVendorsSchema);
10
- export type Response = z.infer<typeof ResponseSchema>;
11
- }
@@ -1,10 +0,0 @@
1
- import { z } from 'zod';
2
- import { AiVendorSchema } from '../../ai-vendor';
3
- import { STTModelWithVendorSchema } from './stt-model-with-vendor.schema';
4
-
5
- export const STTConfigWithVendorsSchema = z.object({
6
- vendors: z.array(AiVendorSchema),
7
- models: z.array(STTModelWithVendorSchema),
8
- });
9
-
10
- export type STTConfigWithVendors = z.infer<typeof STTConfigWithVendorsSchema>;
@@ -1,8 +0,0 @@
1
- import { z } from 'zod';
2
- import { STTModelSchema } from './stt-model.schema';
3
-
4
- export const STTModelWithVendorSchema = STTModelSchema.extend({
5
- vendorId: z.string().uuid(),
6
- });
7
-
8
- export type STTModelWithVendor = z.infer<typeof STTModelWithVendorSchema>;
@@ -1,11 +0,0 @@
1
- import { z } from 'zod';
2
- import { ICommandResponseSchema, LocaleRequestSchema } from '../../common';
3
- import { STTConfigWithVendorsSchema } from '../models';
4
-
5
- export namespace GetSTTConfigWithVendorsQuery {
6
- export const RequestSchema = LocaleRequestSchema;
7
- export type Request = z.infer<typeof RequestSchema>;
8
-
9
- export const ResponseSchema = ICommandResponseSchema(STTConfigWithVendorsSchema);
10
- export type Response = z.infer<typeof ResponseSchema>;
11
- }
@@ -1,10 +0,0 @@
1
- import { z } from 'zod';
2
- import { AiVendorSchema } from '../../ai-vendor';
3
- import { TTSModelWithVendorSchema } from './tts-model-with-vendor.schema';
4
-
5
- export const TTSConfigWithVendorsSchema = z.object({
6
- vendors: z.array(AiVendorSchema),
7
- models: z.array(TTSModelWithVendorSchema),
8
- });
9
-
10
- export type TTSConfigWithVendors = z.infer<typeof TTSConfigWithVendorsSchema>;
@@ -1,8 +0,0 @@
1
- import { z } from 'zod';
2
- import { TTSModelSchema } from './tts-model.schema';
3
-
4
- export const TTSModelWithVendorSchema = TTSModelSchema.extend({
5
- vendorId: z.string().uuid(),
6
- });
7
-
8
- export type TTSModelWithVendor = z.infer<typeof TTSModelWithVendorSchema>;
@@ -1,11 +0,0 @@
1
- import { z } from 'zod';
2
- import { ICommandResponseSchema, LocaleRequestSchema } from '../../common';
3
- import { TTSConfigWithVendorsSchema } from '../models';
4
-
5
- export namespace GetTTSConfigWithVendorsQuery {
6
- export const RequestSchema = LocaleRequestSchema;
7
- export type Request = z.infer<typeof RequestSchema>;
8
-
9
- export const ResponseSchema = ICommandResponseSchema(TTSConfigWithVendorsSchema);
10
- export type Response = z.infer<typeof ResponseSchema>;
11
- }