@purpleschool/gptbot-tools 0.0.116 → 0.0.117

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 (39) hide show
  1. package/build/image-editor/commands/index.js +1 -0
  2. package/build/image-editor/commands/update-published-status-image-editor-jobs.command.js +20 -0
  3. package/build/image-editor/models/image-editor-job.schema.js +1 -0
  4. package/build/image-editor/routes/image-editor.amqp.routes.js +1 -0
  5. package/build/image-generation/commands/index.js +1 -0
  6. package/build/image-generation/commands/update-published-status-image-generation-jobs.command.js +20 -0
  7. package/build/image-generation/models/image-generation-job.schema.js +1 -0
  8. package/build/image-generation/routes/image-generation.amqp.routes.js +1 -0
  9. package/build/music/commands/index.js +1 -0
  10. package/build/music/commands/update-published-status-music-jobs.command.js +20 -0
  11. package/build/music/models/music-job.schema.js +1 -0
  12. package/build/music/routes/music.amqp.routes.js +1 -0
  13. package/build/video/commands/index.js +1 -0
  14. package/build/video/commands/update-published-status-video-jobs.command.js +20 -0
  15. package/build/video/routes/video.amqp.routes.js +1 -0
  16. package/build/video-editor/commands/index.js +1 -0
  17. package/build/video-editor/commands/update-published-status-video-editor-jobs.command.js +20 -0
  18. package/build/video-editor/models/video-editor-job.schema.js +1 -0
  19. package/build/video-editor/routes/video-editor.amqp.routes.js +1 -0
  20. package/image-editor/commands/index.ts +1 -0
  21. package/image-editor/commands/update-published-status-image-editor-jobs.command.ts +20 -0
  22. package/image-editor/models/image-editor-job.schema.ts +1 -0
  23. package/image-editor/routes/image-editor.amqp.routes.ts +1 -0
  24. package/image-generation/commands/index.ts +1 -0
  25. package/image-generation/commands/update-published-status-image-generation-jobs.command.ts +20 -0
  26. package/image-generation/models/image-generation-job.schema.ts +1 -0
  27. package/image-generation/routes/image-generation.amqp.routes.ts +1 -0
  28. package/music/commands/index.ts +1 -0
  29. package/music/commands/update-published-status-music-jobs.command.ts +20 -0
  30. package/music/models/music-job.schema.ts +1 -0
  31. package/music/routes/music.amqp.routes.ts +1 -0
  32. package/package.json +1 -1
  33. package/video/commands/index.ts +1 -0
  34. package/video/commands/update-published-status-video-jobs.command.ts +20 -0
  35. package/video/routes/video.amqp.routes.ts +1 -0
  36. package/video-editor/commands/index.ts +1 -0
  37. package/video-editor/commands/update-published-status-video-editor-jobs.command.ts +20 -0
  38. package/video-editor/models/video-editor-job.schema.ts +1 -0
  39. package/video-editor/routes/video-editor.amqp.routes.ts +1 -0
@@ -20,4 +20,5 @@ __exportStar(require("./retry-image-editor-job.command"), exports);
20
20
  __exportStar(require("./set-reaction-to-image-editor-job.command"), exports);
21
21
  __exportStar(require("./image-editor.command"), exports);
22
22
  __exportStar(require("./update-image-editor-job-title.command"), exports);
23
+ __exportStar(require("./update-published-status-image-editor-jobs.command"), exports);
23
24
  __exportStar(require("./image-editor-model"), exports);
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UpdatePublishedStatusImageEditorJobsCommand = void 0;
4
+ const zod_1 = require("zod");
5
+ const command_response_schema_1 = require("../../common/models/command-response.schema");
6
+ const models_1 = require("../models");
7
+ var UpdatePublishedStatusImageEditorJobsCommand;
8
+ (function (UpdatePublishedStatusImageEditorJobsCommand) {
9
+ UpdatePublishedStatusImageEditorJobsCommand.RequestSchema = zod_1.z.object({
10
+ criteria: zod_1.z.object({
11
+ uuid: zod_1.z.string().uuid(),
12
+ userId: zod_1.z.string().uuid().nullable().optional(),
13
+ unregisteredUserId: zod_1.z.string().uuid().nullable().optional(),
14
+ }),
15
+ data: zod_1.z.object({
16
+ isPublished: zod_1.z.boolean(),
17
+ }),
18
+ });
19
+ UpdatePublishedStatusImageEditorJobsCommand.ResponseSchema = (0, command_response_schema_1.ICommandResponseSchema)(models_1.ImageEditorJobSchema);
20
+ })(UpdatePublishedStatusImageEditorJobsCommand || (exports.UpdatePublishedStatusImageEditorJobsCommand = UpdatePublishedStatusImageEditorJobsCommand = {}));
@@ -25,6 +25,7 @@ exports.ImageEditorJobSchema = zod_1.z.object({
25
25
  attempts: zod_1.z.array(zod_1.z.any()),
26
26
  userId: zod_1.z.string().nullable().optional(),
27
27
  unregisteredUserId: zod_1.z.string().nullable().optional(),
28
+ isPublished: zod_1.z.boolean(),
28
29
  isDeleted: zod_1.z.boolean(),
29
30
  createdAt: zod_1.z.date(),
30
31
  completedAt: zod_1.z.date().nullable().optional(),
@@ -8,6 +8,7 @@ exports.IMAGE_EDITOR_AMQP_ROUTES = {
8
8
  LIST_JOBS: 'tools.image.jobs.list.rpc',
9
9
  SET_REACTION: 'tools.image.jobs.set-reaction.rpc',
10
10
  UPDATE_TITLE: 'tools.image.jobs.update-title.rpc',
11
+ UPDATE_JOB: 'tools.image.jobs.update.rpc',
11
12
  SOFT_DELETE: 'tools.image.jobs.soft-delete.rpc',
12
13
  SOFT_DELETE_ALL: 'tools.image.jobs.soft-delete-all.rpc',
13
14
  RETRY: 'tools.image.jobs.retry.rpc',
@@ -21,5 +21,6 @@ __exportStar(require("./soft-delete-image-generation-job-by-uuid.command"), expo
21
21
  __exportStar(require("./soft-delete-image-generation-jobs-by-criteria.command"), exports);
22
22
  __exportStar(require("./set-reaction-to-image-generation-job.command"), exports);
23
23
  __exportStar(require("./update-image-generation-job-title.command"), exports);
24
+ __exportStar(require("./update-published-status-image-generation-jobs.command"), exports);
24
25
  __exportStar(require("./image-generation-model"), exports);
25
26
  __exportStar(require("./retry-image-generation-job.command"), exports);
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UpdatePublishedStatusImageGenerationJobsCommand = void 0;
4
+ const zod_1 = require("zod");
5
+ const command_response_schema_1 = require("../../common/models/command-response.schema");
6
+ const models_1 = require("../models");
7
+ var UpdatePublishedStatusImageGenerationJobsCommand;
8
+ (function (UpdatePublishedStatusImageGenerationJobsCommand) {
9
+ UpdatePublishedStatusImageGenerationJobsCommand.RequestSchema = zod_1.z.object({
10
+ criteria: zod_1.z.object({
11
+ uuid: zod_1.z.string().uuid(),
12
+ userId: zod_1.z.string().uuid().nullable().optional(),
13
+ unregisteredUserId: zod_1.z.string().uuid().nullable().optional(),
14
+ }),
15
+ data: zod_1.z.object({
16
+ isPublished: zod_1.z.boolean(),
17
+ }),
18
+ });
19
+ UpdatePublishedStatusImageGenerationJobsCommand.ResponseSchema = (0, command_response_schema_1.ICommandResponseSchema)(models_1.ImageGenerationJobSchema);
20
+ })(UpdatePublishedStatusImageGenerationJobsCommand || (exports.UpdatePublishedStatusImageGenerationJobsCommand = UpdatePublishedStatusImageGenerationJobsCommand = {}));
@@ -28,6 +28,7 @@ exports.ImageGenerationJobSchema = zod_1.z.object({
28
28
  attempts: zod_1.z.array(zod_1.z.any()),
29
29
  userId: zod_1.z.string().nullable().optional(),
30
30
  unregisteredUserId: zod_1.z.string().nullable().optional(),
31
+ isPublished: zod_1.z.boolean(),
31
32
  isDeleted: zod_1.z.boolean(),
32
33
  internalError: zod_1.z.string().nullable(),
33
34
  createdAt: zod_1.z.date(),
@@ -9,6 +9,7 @@ exports.IMAGE_GENERATION_AMQP_ROUTES = {
9
9
  LIST_JOBS: 'tools.image-generation.jobs.list.rpc',
10
10
  SET_REACTION: 'tools.image-generation.jobs.set-reaction.rpc',
11
11
  UPDATE_TITLE: 'tools.image-generation.jobs.update-title.rpc',
12
+ UPDATE_JOB: 'tools.image-generation.jobs.update.rpc',
12
13
  SOFT_DELETE: 'tools.image-generation.jobs.soft-delete.rpc',
13
14
  SOFT_DELETE_ALL: 'tools.image-generation.jobs.soft-delete-all.rpc',
14
15
  GET_MODEL_BY_UUID: 'tools.image-generation.model.get-by-uuid.rpc',
@@ -23,3 +23,4 @@ __exportStar(require("./update-music-job-title.command"), exports);
23
23
  __exportStar(require("./convert-to-wav.command"), exports);
24
24
  __exportStar(require("./generate-lyrics.command"), exports);
25
25
  __exportStar(require("./music-model"), exports);
26
+ __exportStar(require("./update-published-status-music-jobs.command"), exports);
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UpdatePublishedStatusMusicJobsCommand = void 0;
4
+ const zod_1 = require("zod");
5
+ const command_response_schema_1 = require("../../common/models/command-response.schema");
6
+ const models_1 = require("../models");
7
+ var UpdatePublishedStatusMusicJobsCommand;
8
+ (function (UpdatePublishedStatusMusicJobsCommand) {
9
+ UpdatePublishedStatusMusicJobsCommand.RequestSchema = zod_1.z.object({
10
+ criteria: zod_1.z.object({
11
+ uuid: zod_1.z.string().uuid(),
12
+ userId: zod_1.z.string().uuid().nullable().optional(),
13
+ unregisteredUserId: zod_1.z.string().uuid().nullable().optional(),
14
+ }),
15
+ data: zod_1.z.object({
16
+ isPublished: zod_1.z.boolean(),
17
+ }),
18
+ });
19
+ UpdatePublishedStatusMusicJobsCommand.ResponseSchema = (0, command_response_schema_1.ICommandResponseSchema)(models_1.MusicJobSchema);
20
+ })(UpdatePublishedStatusMusicJobsCommand || (exports.UpdatePublishedStatusMusicJobsCommand = UpdatePublishedStatusMusicJobsCommand = {}));
@@ -46,6 +46,7 @@ exports.MusicJobSchema = zod_1.z.object({
46
46
  attempts: zod_1.z.array(zod_1.z.any()),
47
47
  userId: zod_1.z.string().nullable().optional(),
48
48
  unregisteredUserId: zod_1.z.string().nullable().optional(),
49
+ isPublished: zod_1.z.boolean(),
49
50
  isDeleted: zod_1.z.boolean(),
50
51
  createdAt: zod_1.z.date(),
51
52
  completedAt: zod_1.z.date().nullable().optional(),
@@ -10,6 +10,7 @@ exports.MUSIC_AMQP_ROUTES = {
10
10
  LIST_JOBS: 'tools.music.jobs.list.rpc',
11
11
  SET_REACTION: 'tools.music.jobs.set-reaction.rpc',
12
12
  UPDATE_TITLE: 'tools.music.jobs.update-title.rpc',
13
+ UPDATE_JOB: 'tools.music.jobs.update.rpc',
13
14
  SOFT_DELETE: 'tools.music.jobs.soft-delete.rpc',
14
15
  SOFT_DELETE_ALL: 'tools.music.jobs.soft-delete-all.rpc',
15
16
  RETRY: 'tools.music.jobs.retry.rpc',
@@ -21,3 +21,4 @@ __exportStar(require("./set-reaction-to-video-job.command"), exports);
21
21
  __exportStar(require("./video.command"), exports);
22
22
  __exportStar(require("./update-video-job-title.command"), exports);
23
23
  __exportStar(require("./video-model"), exports);
24
+ __exportStar(require("./update-published-status-video-jobs.command"), exports);
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UpdatePublishedStatusVideoJobsCommand = void 0;
4
+ const zod_1 = require("zod");
5
+ const command_response_schema_1 = require("../../common/models/command-response.schema");
6
+ const models_1 = require("../models");
7
+ var UpdatePublishedStatusVideoJobsCommand;
8
+ (function (UpdatePublishedStatusVideoJobsCommand) {
9
+ UpdatePublishedStatusVideoJobsCommand.RequestSchema = zod_1.z.object({
10
+ criteria: zod_1.z.object({
11
+ uuid: zod_1.z.string().uuid(),
12
+ userId: zod_1.z.string().uuid().nullable().optional(),
13
+ unregisteredUserId: zod_1.z.string().uuid().nullable().optional(),
14
+ }),
15
+ data: zod_1.z.object({
16
+ isPublished: zod_1.z.boolean(),
17
+ }),
18
+ });
19
+ UpdatePublishedStatusVideoJobsCommand.ResponseSchema = (0, command_response_schema_1.ICommandResponseSchema)(models_1.VideoJobSchema);
20
+ })(UpdatePublishedStatusVideoJobsCommand || (exports.UpdatePublishedStatusVideoJobsCommand = UpdatePublishedStatusVideoJobsCommand = {}));
@@ -11,4 +11,5 @@ exports.VIDEO_AMQP_ROUTES = {
11
11
  SOFT_DELETE: 'tools.video.jobs.soft-delete.rpc',
12
12
  SOFT_DELETE_ALL: 'tools.video.jobs.soft-delete-all.rpc',
13
13
  RETRY: 'tools.video.jobs.retry.rpc',
14
+ UPDATE_JOB: 'tools.video.jobs.update.rpc',
14
15
  };
@@ -19,5 +19,6 @@ __exportStar(require("./delete-video-editor-job-by-uuid.command"), exports);
19
19
  __exportStar(require("./retry-video-editor-job.command"), exports);
20
20
  __exportStar(require("./set-reaction-to-video-editor-job.command"), exports);
21
21
  __exportStar(require("./update-video-editor-job-title.command"), exports);
22
+ __exportStar(require("./update-published-status-video-editor-jobs.command"), exports);
22
23
  __exportStar(require("./edit-video.command"), exports);
23
24
  __exportStar(require("./video-editor-model"), exports);
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UpdatePublishedStatusVideoEditorJobsCommand = void 0;
4
+ const zod_1 = require("zod");
5
+ const command_response_schema_1 = require("../../common/models/command-response.schema");
6
+ const video_editor_job_schema_1 = require("../models/video-editor-job.schema");
7
+ var UpdatePublishedStatusVideoEditorJobsCommand;
8
+ (function (UpdatePublishedStatusVideoEditorJobsCommand) {
9
+ UpdatePublishedStatusVideoEditorJobsCommand.RequestSchema = zod_1.z.object({
10
+ criteria: zod_1.z.object({
11
+ uuid: zod_1.z.string().uuid(),
12
+ userId: zod_1.z.string().uuid().nullable().optional(),
13
+ unregisteredUserId: zod_1.z.string().uuid().nullable().optional(),
14
+ }),
15
+ data: zod_1.z.object({
16
+ isPublished: zod_1.z.boolean(),
17
+ }),
18
+ });
19
+ UpdatePublishedStatusVideoEditorJobsCommand.ResponseSchema = (0, command_response_schema_1.ICommandResponseSchema)(video_editor_job_schema_1.VideoEditorJobSchema);
20
+ })(UpdatePublishedStatusVideoEditorJobsCommand || (exports.UpdatePublishedStatusVideoEditorJobsCommand = UpdatePublishedStatusVideoEditorJobsCommand = {}));
@@ -23,6 +23,7 @@ exports.VideoEditorJobSchema = zod_1.z.object({
23
23
  attempts: zod_1.z.array(zod_1.z.any()),
24
24
  userId: zod_1.z.string().nullable().optional(),
25
25
  unregisteredUserId: zod_1.z.string().nullable().optional(),
26
+ isPublished: zod_1.z.boolean(),
26
27
  isDeleted: zod_1.z.boolean(),
27
28
  createdAt: zod_1.z.date(),
28
29
  completedAt: zod_1.z.date().nullable().optional(),
@@ -8,6 +8,7 @@ exports.VIDEO_EDITOR_AMQP_ROUTES = {
8
8
  LIST_JOBS: 'tools.video-editor.jobs.list.rpc',
9
9
  SET_REACTION: 'tools.video-editor.jobs.set-reaction.rpc',
10
10
  UPDATE_TITLE: 'tools.video-editor.jobs.update-title.rpc',
11
+ UPDATE_JOB: 'tools.video-editor.jobs.update.rpc',
11
12
  SOFT_DELETE: 'tools.video-editor.jobs.soft-delete.rpc',
12
13
  SOFT_DELETE_ALL: 'tools.video-editor.jobs.soft-delete-all.rpc',
13
14
  RETRY: 'tools.video-editor.jobs.retry.rpc',
@@ -4,4 +4,5 @@ export * from './retry-image-editor-job.command';
4
4
  export * from './set-reaction-to-image-editor-job.command';
5
5
  export * from './image-editor.command';
6
6
  export * from './update-image-editor-job-title.command';
7
+ export * from './update-published-status-image-editor-jobs.command';
7
8
  export * from './image-editor-model';
@@ -0,0 +1,20 @@
1
+ import { z } from 'zod';
2
+ import { ICommandResponseSchema } from '../../common/models/command-response.schema';
3
+ import { ImageEditorJobSchema } from '../models';
4
+
5
+ export namespace UpdatePublishedStatusImageEditorJobsCommand {
6
+ export const RequestSchema = z.object({
7
+ criteria: z.object({
8
+ uuid: z.string().uuid(),
9
+ userId: z.string().uuid().nullable().optional(),
10
+ unregisteredUserId: z.string().uuid().nullable().optional(),
11
+ }),
12
+ data: z.object({
13
+ isPublished: z.boolean(),
14
+ }),
15
+ });
16
+ export type Request = z.infer<typeof RequestSchema>;
17
+
18
+ export const ResponseSchema = ICommandResponseSchema(ImageEditorJobSchema);
19
+ export type Response = z.infer<typeof ResponseSchema>;
20
+ }
@@ -26,6 +26,7 @@ export const ImageEditorJobSchema = z.object({
26
26
  attempts: z.array(z.any()),
27
27
  userId: z.string().nullable().optional(),
28
28
  unregisteredUserId: z.string().nullable().optional(),
29
+ isPublished: z.boolean(),
29
30
  isDeleted: z.boolean(),
30
31
  createdAt: z.date(),
31
32
  completedAt: z.date().nullable().optional(),
@@ -5,6 +5,7 @@ export const IMAGE_EDITOR_AMQP_ROUTES = {
5
5
  LIST_JOBS: 'tools.image.jobs.list.rpc',
6
6
  SET_REACTION: 'tools.image.jobs.set-reaction.rpc',
7
7
  UPDATE_TITLE: 'tools.image.jobs.update-title.rpc',
8
+ UPDATE_JOB: 'tools.image.jobs.update.rpc',
8
9
  SOFT_DELETE: 'tools.image.jobs.soft-delete.rpc',
9
10
  SOFT_DELETE_ALL: 'tools.image.jobs.soft-delete-all.rpc',
10
11
  RETRY: 'tools.image.jobs.retry.rpc',
@@ -5,5 +5,6 @@ export * from './soft-delete-image-generation-job-by-uuid.command';
5
5
  export * from './soft-delete-image-generation-jobs-by-criteria.command';
6
6
  export * from './set-reaction-to-image-generation-job.command';
7
7
  export * from './update-image-generation-job-title.command';
8
+ export * from './update-published-status-image-generation-jobs.command';
8
9
  export * from './image-generation-model';
9
10
  export * from './retry-image-generation-job.command';
@@ -0,0 +1,20 @@
1
+ import { z } from 'zod';
2
+ import { ICommandResponseSchema } from '../../common/models/command-response.schema';
3
+ import { ImageGenerationJobSchema } from '../models';
4
+
5
+ export namespace UpdatePublishedStatusImageGenerationJobsCommand {
6
+ export const RequestSchema = z.object({
7
+ criteria: z.object({
8
+ uuid: z.string().uuid(),
9
+ userId: z.string().uuid().nullable().optional(),
10
+ unregisteredUserId: z.string().uuid().nullable().optional(),
11
+ }),
12
+ data: z.object({
13
+ isPublished: z.boolean(),
14
+ }),
15
+ });
16
+ export type Request = z.infer<typeof RequestSchema>;
17
+
18
+ export const ResponseSchema = ICommandResponseSchema(ImageGenerationJobSchema);
19
+ export type Response = z.infer<typeof ResponseSchema>;
20
+ }
@@ -28,6 +28,7 @@ export const ImageGenerationJobSchema = z.object({
28
28
  attempts: z.array(z.any()),
29
29
  userId: z.string().nullable().optional(),
30
30
  unregisteredUserId: z.string().nullable().optional(),
31
+ isPublished: z.boolean(),
31
32
  isDeleted: z.boolean(),
32
33
  internalError: z.string().nullable(),
33
34
  createdAt: z.date(),
@@ -6,6 +6,7 @@ export const IMAGE_GENERATION_AMQP_ROUTES = {
6
6
  LIST_JOBS: 'tools.image-generation.jobs.list.rpc',
7
7
  SET_REACTION: 'tools.image-generation.jobs.set-reaction.rpc',
8
8
  UPDATE_TITLE: 'tools.image-generation.jobs.update-title.rpc',
9
+ UPDATE_JOB: 'tools.image-generation.jobs.update.rpc',
9
10
  SOFT_DELETE: 'tools.image-generation.jobs.soft-delete.rpc',
10
11
  SOFT_DELETE_ALL: 'tools.image-generation.jobs.soft-delete-all.rpc',
11
12
  GET_MODEL_BY_UUID: 'tools.image-generation.model.get-by-uuid.rpc',
@@ -7,3 +7,4 @@ export * from './update-music-job-title.command';
7
7
  export * from './convert-to-wav.command';
8
8
  export * from './generate-lyrics.command';
9
9
  export * from './music-model';
10
+ export * from './update-published-status-music-jobs.command';
@@ -0,0 +1,20 @@
1
+ import { z } from 'zod';
2
+ import { ICommandResponseSchema } from '../../common/models/command-response.schema';
3
+ import { MusicJobSchema } from '../models';
4
+
5
+ export namespace UpdatePublishedStatusMusicJobsCommand {
6
+ export const RequestSchema = z.object({
7
+ criteria: z.object({
8
+ uuid: z.string().uuid(),
9
+ userId: z.string().uuid().nullable().optional(),
10
+ unregisteredUserId: z.string().uuid().nullable().optional(),
11
+ }),
12
+ data: z.object({
13
+ isPublished: z.boolean(),
14
+ }),
15
+ });
16
+ export type Request = z.infer<typeof RequestSchema>;
17
+
18
+ export const ResponseSchema = ICommandResponseSchema(MusicJobSchema);
19
+ export type Response = z.infer<typeof ResponseSchema>;
20
+ }
@@ -47,6 +47,7 @@ export const MusicJobSchema = z.object({
47
47
  attempts: z.array(z.any()),
48
48
  userId: z.string().nullable().optional(),
49
49
  unregisteredUserId: z.string().nullable().optional(),
50
+ isPublished: z.boolean(),
50
51
  isDeleted: z.boolean(),
51
52
  createdAt: z.date(),
52
53
  completedAt: z.date().nullable().optional(),
@@ -7,6 +7,7 @@ export const MUSIC_AMQP_ROUTES = {
7
7
  LIST_JOBS: 'tools.music.jobs.list.rpc',
8
8
  SET_REACTION: 'tools.music.jobs.set-reaction.rpc',
9
9
  UPDATE_TITLE: 'tools.music.jobs.update-title.rpc',
10
+ UPDATE_JOB: 'tools.music.jobs.update.rpc',
10
11
  SOFT_DELETE: 'tools.music.jobs.soft-delete.rpc',
11
12
  SOFT_DELETE_ALL: 'tools.music.jobs.soft-delete-all.rpc',
12
13
  RETRY: 'tools.music.jobs.retry.rpc',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@purpleschool/gptbot-tools",
3
- "version": "0.0.116",
3
+ "version": "0.0.117",
4
4
  "main": "build/index.js",
5
5
  "types": "build/index.d.ts",
6
6
  "scripts": {
@@ -5,3 +5,4 @@ export * from './set-reaction-to-video-job.command';
5
5
  export * from './video.command';
6
6
  export * from './update-video-job-title.command';
7
7
  export * from './video-model';
8
+ export * from './update-published-status-video-jobs.command';
@@ -0,0 +1,20 @@
1
+ import { z } from 'zod';
2
+ import { ICommandResponseSchema } from '../../common/models/command-response.schema';
3
+ import { VideoJobSchema } from '../models';
4
+
5
+ export namespace UpdatePublishedStatusVideoJobsCommand {
6
+ export const RequestSchema = z.object({
7
+ criteria: z.object({
8
+ uuid: z.string().uuid(),
9
+ userId: z.string().uuid().nullable().optional(),
10
+ unregisteredUserId: z.string().uuid().nullable().optional(),
11
+ }),
12
+ data: z.object({
13
+ isPublished: z.boolean(),
14
+ }),
15
+ });
16
+ export type Request = z.infer<typeof RequestSchema>;
17
+
18
+ export const ResponseSchema = ICommandResponseSchema(VideoJobSchema);
19
+ export type Response = z.infer<typeof ResponseSchema>;
20
+ }
@@ -8,4 +8,5 @@ export const VIDEO_AMQP_ROUTES = {
8
8
  SOFT_DELETE: 'tools.video.jobs.soft-delete.rpc',
9
9
  SOFT_DELETE_ALL: 'tools.video.jobs.soft-delete-all.rpc',
10
10
  RETRY: 'tools.video.jobs.retry.rpc',
11
+ UPDATE_JOB: 'tools.video.jobs.update.rpc',
11
12
  } as const;
@@ -3,5 +3,6 @@ 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-published-status-video-editor-jobs.command';
6
7
  export * from './edit-video.command';
7
8
  export * from './video-editor-model';
@@ -0,0 +1,20 @@
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 UpdatePublishedStatusVideoEditorJobsCommand {
6
+ export const RequestSchema = z.object({
7
+ criteria: z.object({
8
+ uuid: z.string().uuid(),
9
+ userId: z.string().uuid().nullable().optional(),
10
+ unregisteredUserId: z.string().uuid().nullable().optional(),
11
+ }),
12
+ data: z.object({
13
+ isPublished: z.boolean(),
14
+ }),
15
+ });
16
+ export type Request = z.infer<typeof RequestSchema>;
17
+
18
+ export const ResponseSchema = ICommandResponseSchema(VideoEditorJobSchema);
19
+ export type Response = z.infer<typeof ResponseSchema>;
20
+ }
@@ -21,6 +21,7 @@ export const VideoEditorJobSchema = z.object({
21
21
  attempts: z.array(z.any()),
22
22
  userId: z.string().nullable().optional(),
23
23
  unregisteredUserId: z.string().nullable().optional(),
24
+ isPublished: z.boolean(),
24
25
  isDeleted: z.boolean(),
25
26
  createdAt: z.date(),
26
27
  completedAt: z.date().nullable().optional(),
@@ -5,6 +5,7 @@ export const VIDEO_EDITOR_AMQP_ROUTES = {
5
5
  LIST_JOBS: 'tools.video-editor.jobs.list.rpc',
6
6
  SET_REACTION: 'tools.video-editor.jobs.set-reaction.rpc',
7
7
  UPDATE_TITLE: 'tools.video-editor.jobs.update-title.rpc',
8
+ UPDATE_JOB: 'tools.video-editor.jobs.update.rpc',
8
9
  SOFT_DELETE: 'tools.video-editor.jobs.soft-delete.rpc',
9
10
  SOFT_DELETE_ALL: 'tools.video-editor.jobs.soft-delete-all.rpc',
10
11
  RETRY: 'tools.video-editor.jobs.retry.rpc',