@purpleschool/gptbot-tools 0.2.31-stage → 0.2.32-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 (165) 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 +1 -0
  21. package/build/image-generation/queries/find-image-generation-jobs.query.js +4 -0
  22. package/build/image-generation/routes/image-generation.amqp.routes.js +1 -0
  23. package/build/interior-design/commands/index.js +1 -0
  24. package/build/interior-design/commands/update-interior-design-job-favorite.command.js +16 -0
  25. package/build/interior-design/models/interior-design-job.schema.js +1 -0
  26. package/build/interior-design/queries/find-interior-design-jobs.query.js +4 -0
  27. package/build/interior-design/routes/interior-design.amqp.routes.js +1 -0
  28. package/build/marketplace-card/commands/index.js +1 -0
  29. package/build/marketplace-card/commands/update-marketplace-card-job-favorite.command.js +16 -0
  30. package/build/marketplace-card/models/marketplace-card-job.schema.js +1 -0
  31. package/build/marketplace-card/queries/find-marketplace-card-jobs.query.js +4 -0
  32. package/build/marketplace-card/routes/marketplace-card.amqp.routes.js +1 -0
  33. package/build/music/commands/index.js +1 -0
  34. package/build/music/commands/update-music-job-favorite.command.js +16 -0
  35. package/build/music/models/music-job.schema.js +1 -0
  36. package/build/music/queries/find-music-jobs.query.js +4 -0
  37. package/build/music/routes/music.amqp.routes.js +1 -0
  38. package/build/paraphrase/commands/index.js +1 -0
  39. package/build/paraphrase/commands/update-paraphrase-job-favorite.command.js +16 -0
  40. package/build/paraphrase/queries/find-paraphrase-jobs.query.js +4 -0
  41. package/build/paraphrase/routes/paraphrase.amqp.routes.js +1 -0
  42. package/build/presentation/commands/index.js +1 -0
  43. package/build/presentation/commands/update-presentation-favorite.command.js +16 -0
  44. package/build/presentation/models/presentation.schema.js +1 -0
  45. package/build/presentation/queries/find-presentations.query.js +4 -0
  46. package/build/presentation/routes/presentation.routes.js +1 -0
  47. package/build/solving-edu-task/commands/index.js +1 -0
  48. package/build/solving-edu-task/commands/update-solving-edu-task-job-favorite.command.js +16 -0
  49. package/build/solving-edu-task/models/solving-edu-task-job.schema.js +1 -0
  50. package/build/solving-edu-task/queries/find-solving-edu-task-jobs.query.js +4 -0
  51. package/build/solving-edu-task/routes/solving-edu-task.amqp.routes.js +1 -0
  52. package/build/spell-corrector/commands/index.js +1 -0
  53. package/build/spell-corrector/commands/update-spell-corrector-job-favorite.command.js +16 -0
  54. package/build/spell-corrector/queries/find-spell-corrector-jobs.query.js +4 -0
  55. package/build/spell-corrector/routes/spell-corrector.amqp.routes.js +1 -0
  56. package/build/stt/commands/index.js +1 -0
  57. package/build/stt/commands/update-stt-job-favorite.command.js +16 -0
  58. package/build/stt/models/stt-job.schema.js +1 -0
  59. package/build/stt/queries/find-stt-jobs.query.js +4 -0
  60. package/build/stt/routes/stt.amqp.routes.js +1 -0
  61. package/build/tools/enums/index.js +1 -0
  62. package/build/tools/enums/job-sort.enum.js +8 -0
  63. package/build/tts/commands/index.js +1 -0
  64. package/build/tts/commands/update-tts-job-favorite.command.js +16 -0
  65. package/build/tts/models/tts-job.schema.js +1 -0
  66. package/build/tts/queries/find-tts-jobs.query.js +4 -0
  67. package/build/tts/routes/tts.amqp.routes.js +1 -0
  68. package/build/video/commands/index.js +1 -0
  69. package/build/video/commands/update-video-job-favorite.command.js +16 -0
  70. package/build/video/models/video-job.schema.js +1 -0
  71. package/build/video/queries/find-video-jobs.query.js +4 -0
  72. package/build/video/routes/video.amqp.routes.js +1 -0
  73. package/build/video-editor/commands/index.js +1 -0
  74. package/build/video-editor/commands/update-video-editor-job-favorite.command.js +16 -0
  75. package/build/video-editor/models/video-editor-job.schema.js +1 -0
  76. package/build/video-editor/queries/find-video-editor-jobs.query.js +4 -0
  77. package/build/video-editor/routes/video-editor.amqp.routes.js +1 -0
  78. package/build/writer/commands/index.js +1 -0
  79. package/build/writer/commands/update-writer-document-favorite.command.js +16 -0
  80. package/build/writer/models/writer-document.schema.js +1 -0
  81. package/build/writer/queries/find-writer-documents.query.js +4 -0
  82. package/build/writer/routes/writer.routes.js +1 -0
  83. package/diagrams/commands/index.ts +1 -0
  84. package/diagrams/commands/update-diagrams-job-favorite.command.ts +16 -0
  85. package/diagrams/models/diagrams-job.schema.ts +1 -0
  86. package/diagrams/queries/find-diagrams-jobs.query.ts +4 -0
  87. package/diagrams/routes/diagrams.amqp.routes.ts +1 -0
  88. package/html-page-builder/commands/index.ts +1 -0
  89. package/html-page-builder/commands/update-html-page-builder-session-favorite.command.ts +16 -0
  90. package/html-page-builder/commands/update-html-page-builder-session-title.command.ts +7 -6
  91. package/html-page-builder/models/html-page-builder-session.schema.ts +1 -0
  92. package/html-page-builder/queries/find-html-page-builder-sessions.query.ts +4 -0
  93. package/html-page-builder/routes/html-page-builder.amqp.routes.ts +1 -0
  94. package/image-editor/commands/index.ts +1 -0
  95. package/image-editor/commands/update-image-editor-job-favorite.command.ts +16 -0
  96. package/image-editor/models/image-editor-job.schema.ts +1 -0
  97. package/image-editor/queries/find-image-editor-jobs.query.ts +4 -0
  98. package/image-editor/queries/find-image-jobs.query.ts +4 -0
  99. package/image-editor/routes/image-editor.amqp.routes.ts +1 -0
  100. package/image-generation/commands/index.ts +1 -0
  101. package/image-generation/commands/update-image-generation-job-favorite.command.ts +16 -0
  102. package/image-generation/models/image-generation-job.schema.ts +1 -0
  103. package/image-generation/queries/find-image-generation-jobs.query.ts +4 -0
  104. package/image-generation/routes/image-generation.amqp.routes.ts +1 -0
  105. package/interior-design/commands/index.ts +1 -0
  106. package/interior-design/commands/update-interior-design-job-favorite.command.ts +16 -0
  107. package/interior-design/models/interior-design-job.schema.ts +1 -0
  108. package/interior-design/queries/find-interior-design-jobs.query.ts +4 -0
  109. package/interior-design/routes/interior-design.amqp.routes.ts +1 -0
  110. package/marketplace-card/commands/index.ts +1 -0
  111. package/marketplace-card/commands/update-marketplace-card-job-favorite.command.ts +16 -0
  112. package/marketplace-card/models/marketplace-card-job.schema.ts +1 -0
  113. package/marketplace-card/queries/find-marketplace-card-jobs.query.ts +4 -0
  114. package/marketplace-card/routes/marketplace-card.amqp.routes.ts +1 -0
  115. package/music/commands/index.ts +1 -0
  116. package/music/commands/update-music-job-favorite.command.ts +16 -0
  117. package/music/models/music-job.schema.ts +1 -0
  118. package/music/queries/find-music-jobs.query.ts +4 -0
  119. package/music/routes/music.amqp.routes.ts +1 -0
  120. package/package.json +1 -1
  121. package/paraphrase/commands/index.ts +1 -0
  122. package/paraphrase/commands/update-paraphrase-job-favorite.command.ts +16 -0
  123. package/paraphrase/queries/find-paraphrase-jobs.query.ts +4 -0
  124. package/paraphrase/routes/paraphrase.amqp.routes.ts +1 -0
  125. package/presentation/commands/index.ts +1 -0
  126. package/presentation/commands/update-presentation-favorite.command.ts +16 -0
  127. package/presentation/models/presentation.schema.ts +1 -0
  128. package/presentation/queries/find-presentations.query.ts +4 -0
  129. package/presentation/routes/presentation.routes.ts +1 -0
  130. package/solving-edu-task/commands/index.ts +1 -0
  131. package/solving-edu-task/commands/update-solving-edu-task-job-favorite.command.ts +16 -0
  132. package/solving-edu-task/models/solving-edu-task-job.schema.ts +1 -0
  133. package/solving-edu-task/queries/find-solving-edu-task-jobs.query.ts +4 -0
  134. package/solving-edu-task/routes/solving-edu-task.amqp.routes.ts +1 -0
  135. package/spell-corrector/commands/index.ts +1 -0
  136. package/spell-corrector/commands/update-spell-corrector-job-favorite.command.ts +16 -0
  137. package/spell-corrector/queries/find-spell-corrector-jobs.query.ts +4 -0
  138. package/spell-corrector/routes/spell-corrector.amqp.routes.ts +1 -0
  139. package/stt/commands/index.ts +1 -0
  140. package/stt/commands/update-stt-job-favorite.command.ts +16 -0
  141. package/stt/models/stt-job.schema.ts +1 -0
  142. package/stt/queries/find-stt-jobs.query.ts +4 -0
  143. package/stt/routes/stt.amqp.routes.ts +1 -0
  144. package/tools/enums/index.ts +1 -0
  145. package/tools/enums/job-sort.enum.ts +4 -0
  146. package/tts/commands/index.ts +1 -0
  147. package/tts/commands/update-tts-job-favorite.command.ts +16 -0
  148. package/tts/models/tts-job.schema.ts +1 -0
  149. package/tts/queries/find-tts-jobs.query.ts +4 -0
  150. package/tts/routes/tts.amqp.routes.ts +1 -0
  151. package/video/commands/index.ts +1 -0
  152. package/video/commands/update-video-job-favorite.command.ts +16 -0
  153. package/video/models/video-job.schema.ts +1 -0
  154. package/video/queries/find-video-jobs.query.ts +4 -0
  155. package/video/routes/video.amqp.routes.ts +1 -0
  156. package/video-editor/commands/index.ts +1 -0
  157. package/video-editor/commands/update-video-editor-job-favorite.command.ts +16 -0
  158. package/video-editor/models/video-editor-job.schema.ts +1 -0
  159. package/video-editor/queries/find-video-editor-jobs.query.ts +4 -0
  160. package/video-editor/routes/video-editor.amqp.routes.ts +1 -0
  161. package/writer/commands/index.ts +1 -0
  162. package/writer/commands/update-writer-document-favorite.command.ts +16 -0
  163. package/writer/models/writer-document.schema.ts +1 -0
  164. package/writer/queries/find-writer-documents.query.ts +4 -0
  165. package/writer/routes/writer.routes.ts +1 -0
@@ -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
  })
@@ -6,6 +6,7 @@ export const TTS_AMQP_ROUTES = {
6
6
  LIST_JOBS: 'tools.tts.jobs.list.rpc',
7
7
  SET_REACTION: 'tools.tts.jobs.set-reaction.rpc',
8
8
  UPDATE_TITLE: 'tools.tts.jobs.update-title.rpc',
9
+ UPDATE_FAVORITE: 'tools.tts.jobs.update-favorite.rpc',
9
10
  SOFT_DELETE: 'tools.tts.jobs.soft-delete.rpc',
10
11
  SOFT_DELETE_ALL: 'tools.tts.jobs.soft-delete-all.rpc',
11
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(),
@@ -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;