@purpleschool/gptbot-tools 0.0.77 → 0.0.78

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 (41) hide show
  1. package/build/image-editor/commands/image-editor-model/get-image-editor-model-by-uuid.command.js +13 -0
  2. package/build/image-editor/commands/image-editor-model/index.js +17 -0
  3. package/build/image-editor/commands/index.js +1 -0
  4. package/build/image-editor/routes/image-editor-model.amqp.routes.js +6 -0
  5. package/build/image-editor/routes/index.js +1 -0
  6. package/build/music/commands/index.js +1 -0
  7. package/build/music/commands/music-model/get-music-model-by-uuid.command.js +13 -0
  8. package/build/music/commands/music-model/index.js +17 -0
  9. package/build/music/routes/index.js +1 -0
  10. package/build/music/routes/music-model.amqp.routes.js +6 -0
  11. package/build/video/commands/index.js +1 -0
  12. package/build/video/commands/video-model/get-video-model-by-uuid.command.js +13 -0
  13. package/build/video/commands/video-model/index.js +17 -0
  14. package/build/video/routes/index.js +1 -0
  15. package/build/video/routes/video-model.amqp.routes.js +6 -0
  16. package/build/video-editor/commands/index.js +1 -0
  17. package/build/video-editor/commands/video-editor-model/get-video-editor-model.command.js +13 -0
  18. package/build/video-editor/commands/video-editor-model/index.js +17 -0
  19. package/build/video-editor/routes/index.js +1 -0
  20. package/build/video-editor/routes/video-editor-model.amqp.routes.js +6 -0
  21. package/image-editor/commands/image-editor-model/get-image-editor-model-by-uuid.command.ts +13 -0
  22. package/image-editor/commands/image-editor-model/index.ts +1 -0
  23. package/image-editor/commands/index.ts +1 -0
  24. package/image-editor/routes/image-editor-model.amqp.routes.ts +3 -0
  25. package/image-editor/routes/index.ts +1 -0
  26. package/music/commands/index.ts +1 -0
  27. package/music/commands/music-model/get-music-model-by-uuid.command.ts +13 -0
  28. package/music/commands/music-model/index.ts +1 -0
  29. package/music/routes/index.ts +1 -0
  30. package/music/routes/music-model.amqp.routes.ts +3 -0
  31. package/package.json +1 -1
  32. package/video/commands/index.ts +1 -0
  33. package/video/commands/video-model/get-video-model-by-uuid.command.ts +13 -0
  34. package/video/commands/video-model/index.ts +1 -0
  35. package/video/routes/index.ts +1 -0
  36. package/video/routes/video-model.amqp.routes.ts +3 -0
  37. package/video-editor/commands/index.ts +1 -0
  38. package/video-editor/commands/video-editor-model/get-video-editor-model.command.ts +13 -0
  39. package/video-editor/commands/video-editor-model/index.ts +1 -0
  40. package/video-editor/routes/index.ts +1 -0
  41. package/video-editor/routes/video-editor-model.amqp.routes.ts +3 -0
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GetImageEditorModelByUuidCommand = void 0;
4
+ const zod_1 = require("zod");
5
+ const models_1 = require("../../models");
6
+ const common_1 = require("../../../common");
7
+ var GetImageEditorModelByUuidCommand;
8
+ (function (GetImageEditorModelByUuidCommand) {
9
+ GetImageEditorModelByUuidCommand.RequestSchema = zod_1.z.object({
10
+ uuid: zod_1.z.string().uuid(),
11
+ });
12
+ GetImageEditorModelByUuidCommand.ResponseSchema = (0, common_1.ICommandResponseSchema)(models_1.ImageEditorModelSchema);
13
+ })(GetImageEditorModelByUuidCommand || (exports.GetImageEditorModelByUuidCommand = GetImageEditorModelByUuidCommand = {}));
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./get-image-editor-model-by-uuid.command"), exports);
@@ -20,3 +20,4 @@ __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("./image-editor-model"), exports);
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.IMAGE_EDITOR_MODEL_AMQP_ROUTES = void 0;
4
+ exports.IMAGE_EDITOR_MODEL_AMQP_ROUTES = {
5
+ GET_MODEL_BY_UUID: 'tools.image-editor.model.get-by-uuid.rpc',
6
+ };
@@ -16,3 +16,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./image-editor.amqp.routes"), exports);
18
18
  __exportStar(require("./image-editor.http.routes"), exports);
19
+ __exportStar(require("./image-editor-model.amqp.routes"), exports);
@@ -22,3 +22,4 @@ __exportStar(require("./generate-music.command"), exports);
22
22
  __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
+ __exportStar(require("./music-model"), exports);
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GetMusicModelByUuidCommand = void 0;
4
+ const zod_1 = require("zod");
5
+ const models_1 = require("../../models");
6
+ const common_1 = require("../../../common");
7
+ var GetMusicModelByUuidCommand;
8
+ (function (GetMusicModelByUuidCommand) {
9
+ GetMusicModelByUuidCommand.RequestSchema = zod_1.z.object({
10
+ uuid: zod_1.z.string().uuid(),
11
+ });
12
+ GetMusicModelByUuidCommand.ResponseSchema = (0, common_1.ICommandResponseSchema)(models_1.MusicModelSchema);
13
+ })(GetMusicModelByUuidCommand || (exports.GetMusicModelByUuidCommand = GetMusicModelByUuidCommand = {}));
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./get-music-model-by-uuid.command"), exports);
@@ -16,3 +16,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./music.amqp.routes"), exports);
18
18
  __exportStar(require("./music.http.routes"), exports);
19
+ __exportStar(require("./music-model.amqp.routes"), exports);
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.MUSIC_MODEL_AMQP_ROUTES = void 0;
4
+ exports.MUSIC_MODEL_AMQP_ROUTES = {
5
+ GET_MODEL_BY_UUID: 'tools.music.model.get-by-uuid.rpc',
6
+ };
@@ -20,3 +20,4 @@ __exportStar(require("./retry-video-job.command"), exports);
20
20
  __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
+ __exportStar(require("./video-model"), exports);
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GetVideoModelByUuidCommand = void 0;
4
+ const zod_1 = require("zod");
5
+ const models_1 = require("../../models");
6
+ const common_1 = require("../../../common");
7
+ var GetVideoModelByUuidCommand;
8
+ (function (GetVideoModelByUuidCommand) {
9
+ GetVideoModelByUuidCommand.RequestSchema = zod_1.z.object({
10
+ uuid: zod_1.z.string().uuid(),
11
+ });
12
+ GetVideoModelByUuidCommand.ResponseSchema = (0, common_1.ICommandResponseSchema)(models_1.VideoModelSchema);
13
+ })(GetVideoModelByUuidCommand || (exports.GetVideoModelByUuidCommand = GetVideoModelByUuidCommand = {}));
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./get-video-model-by-uuid.command"), exports);
@@ -16,3 +16,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./video.amqp.routes"), exports);
18
18
  __exportStar(require("./video.http.routes"), exports);
19
+ __exportStar(require("./video-model.amqp.routes"), exports);
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.VIDEO_MODEL_AMQP_ROUTES = void 0;
4
+ exports.VIDEO_MODEL_AMQP_ROUTES = {
5
+ GET_MODEL_BY_UUID: 'tools.video.model.get-by-uuid.rpc',
6
+ };
@@ -20,3 +20,4 @@ __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
22
  __exportStar(require("./edit-video.command"), exports);
23
+ __exportStar(require("./video-editor-model"), exports);
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GetVideoEditorModelByUuidCommand = void 0;
4
+ const zod_1 = require("zod");
5
+ const common_1 = require("../../../common");
6
+ const models_1 = require("../../models");
7
+ var GetVideoEditorModelByUuidCommand;
8
+ (function (GetVideoEditorModelByUuidCommand) {
9
+ GetVideoEditorModelByUuidCommand.RequestSchema = zod_1.z.object({
10
+ uuid: zod_1.z.string().uuid(),
11
+ });
12
+ GetVideoEditorModelByUuidCommand.ResponseSchema = (0, common_1.ICommandResponseSchema)(models_1.VideoEditorModelSchema);
13
+ })(GetVideoEditorModelByUuidCommand || (exports.GetVideoEditorModelByUuidCommand = GetVideoEditorModelByUuidCommand = {}));
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./get-video-editor-model.command"), exports);
@@ -16,3 +16,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./video-editor.amqp.routes"), exports);
18
18
  __exportStar(require("./video-editor.http.routes"), exports);
19
+ __exportStar(require("./video-editor-model.amqp.routes"), exports);
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.VIDEO_EDITOR_MODEL_AMQP_ROUTES = void 0;
4
+ exports.VIDEO_EDITOR_MODEL_AMQP_ROUTES = {
5
+ GET_MODEL_BY_UUID: 'tools.video-editor.model.get-by-uuid.rpc',
6
+ };
@@ -0,0 +1,13 @@
1
+ import { z } from 'zod';
2
+ import { ImageEditorModelSchema } from '../../models';
3
+ import { ICommandResponseSchema } from '../../../common';
4
+
5
+ export namespace GetImageEditorModelByUuidCommand {
6
+ export const RequestSchema = z.object({
7
+ uuid: z.string().uuid(),
8
+ });
9
+ export type Request = z.infer<typeof RequestSchema>;
10
+
11
+ export const ResponseSchema = ICommandResponseSchema(ImageEditorModelSchema);
12
+ export type Response = z.infer<typeof ResponseSchema>;
13
+ }
@@ -0,0 +1 @@
1
+ export * from './get-image-editor-model-by-uuid.command';
@@ -4,3 +4,4 @@ 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 './image-editor-model';
@@ -0,0 +1,3 @@
1
+ export const IMAGE_EDITOR_MODEL_AMQP_ROUTES = {
2
+ GET_MODEL_BY_UUID: 'tools.image-editor.model.get-by-uuid.rpc',
3
+ } as const;
@@ -1,2 +1,3 @@
1
1
  export * from './image-editor.amqp.routes';
2
2
  export * from './image-editor.http.routes';
3
+ export * from './image-editor-model.amqp.routes';
@@ -6,3 +6,4 @@ export * from './generate-music.command';
6
6
  export * from './update-music-job-title.command';
7
7
  export * from './convert-to-wav.command';
8
8
  export * from './generate-lyrics.command';
9
+ export * from './music-model';
@@ -0,0 +1,13 @@
1
+ import { z } from 'zod';
2
+ import { MusicModelSchema } from '../../models';
3
+ import { ICommandResponseSchema } from '../../../common';
4
+
5
+ export namespace GetMusicModelByUuidCommand {
6
+ export const RequestSchema = z.object({
7
+ uuid: z.string().uuid(),
8
+ });
9
+ export type Request = z.infer<typeof RequestSchema>;
10
+
11
+ export const ResponseSchema = ICommandResponseSchema(MusicModelSchema);
12
+ export type Response = z.infer<typeof ResponseSchema>;
13
+ }
@@ -0,0 +1 @@
1
+ export * from './get-music-model-by-uuid.command';
@@ -1,2 +1,3 @@
1
1
  export * from './music.amqp.routes';
2
2
  export * from './music.http.routes';
3
+ export * from './music-model.amqp.routes';
@@ -0,0 +1,3 @@
1
+ export const MUSIC_MODEL_AMQP_ROUTES = {
2
+ GET_MODEL_BY_UUID: 'tools.music.model.get-by-uuid.rpc',
3
+ } as const;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@purpleschool/gptbot-tools",
3
- "version": "0.0.77",
3
+ "version": "0.0.78",
4
4
  "main": "build/index.js",
5
5
  "types": "build/index.d.ts",
6
6
  "scripts": {
@@ -4,3 +4,4 @@ export * from './retry-video-job.command';
4
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
+ export * from './video-model';
@@ -0,0 +1,13 @@
1
+ import { z } from 'zod';
2
+ import { VideoModelSchema } from '../../models';
3
+ import { ICommandResponseSchema } from '../../../common';
4
+
5
+ export namespace GetVideoModelByUuidCommand {
6
+ export const RequestSchema = z.object({
7
+ uuid: z.string().uuid(),
8
+ });
9
+ export type Request = z.infer<typeof RequestSchema>;
10
+
11
+ export const ResponseSchema = ICommandResponseSchema(VideoModelSchema);
12
+ export type Response = z.infer<typeof ResponseSchema>;
13
+ }
@@ -0,0 +1 @@
1
+ export * from './get-video-model-by-uuid.command';
@@ -1,2 +1,3 @@
1
1
  export * from './video.amqp.routes';
2
2
  export * from './video.http.routes';
3
+ export * from './video-model.amqp.routes';
@@ -0,0 +1,3 @@
1
+ export const VIDEO_MODEL_AMQP_ROUTES = {
2
+ GET_MODEL_BY_UUID: 'tools.video.model.get-by-uuid.rpc',
3
+ } as const;
@@ -4,3 +4,4 @@ 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
6
  export * from './edit-video.command';
7
+ export * from './video-editor-model';
@@ -0,0 +1,13 @@
1
+ import { z } from 'zod';
2
+ import { ICommandResponseSchema } from '../../../common';
3
+ import { VideoEditorModelSchema } from '../../models';
4
+
5
+ export namespace GetVideoEditorModelByUuidCommand {
6
+ export const RequestSchema = z.object({
7
+ uuid: z.string().uuid(),
8
+ });
9
+ export type Request = z.infer<typeof RequestSchema>;
10
+
11
+ export const ResponseSchema = ICommandResponseSchema(VideoEditorModelSchema);
12
+ export type Response = z.infer<typeof ResponseSchema>;
13
+ }
@@ -0,0 +1 @@
1
+ export * from './get-video-editor-model.command';
@@ -1,2 +1,3 @@
1
1
  export * from './video-editor.amqp.routes';
2
2
  export * from './video-editor.http.routes';
3
+ export * from './video-editor-model.amqp.routes';
@@ -0,0 +1,3 @@
1
+ export const VIDEO_EDITOR_MODEL_AMQP_ROUTES = {
2
+ GET_MODEL_BY_UUID: 'tools.video-editor.model.get-by-uuid.rpc',
3
+ } as const;