@purpleschool/gptbot-tools 0.0.76 → 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.
- package/build/image-editor/commands/image-editor-model/get-image-editor-model-by-uuid.command.js +13 -0
- package/build/image-editor/commands/image-editor-model/index.js +17 -0
- package/build/image-editor/commands/index.js +1 -0
- package/build/image-editor/routes/image-editor-model.amqp.routes.js +6 -0
- package/build/image-editor/routes/index.js +1 -0
- package/build/music/commands/index.js +1 -0
- package/build/music/commands/music-model/get-music-model-by-uuid.command.js +13 -0
- package/build/music/commands/music-model/index.js +17 -0
- package/build/music/routes/index.js +1 -0
- package/build/music/routes/music-model.amqp.routes.js +6 -0
- package/build/tools/models/tool.schema.js +3 -0
- package/build/video/commands/index.js +1 -0
- package/build/video/commands/video-model/get-video-model-by-uuid.command.js +13 -0
- package/build/video/commands/video-model/index.js +17 -0
- package/build/video/routes/index.js +1 -0
- package/build/video/routes/video-model.amqp.routes.js +6 -0
- package/build/video-editor/commands/index.js +1 -0
- package/build/video-editor/commands/video-editor-model/get-video-editor-model.command.js +13 -0
- package/build/video-editor/commands/video-editor-model/index.js +17 -0
- package/build/video-editor/routes/index.js +1 -0
- package/build/video-editor/routes/video-editor-model.amqp.routes.js +6 -0
- package/image-editor/commands/image-editor-model/get-image-editor-model-by-uuid.command.ts +13 -0
- package/image-editor/commands/image-editor-model/index.ts +1 -0
- package/image-editor/commands/index.ts +1 -0
- package/image-editor/routes/image-editor-model.amqp.routes.ts +3 -0
- package/image-editor/routes/index.ts +1 -0
- package/music/commands/index.ts +1 -0
- package/music/commands/music-model/get-music-model-by-uuid.command.ts +13 -0
- package/music/commands/music-model/index.ts +1 -0
- package/music/routes/index.ts +1 -0
- package/music/routes/music-model.amqp.routes.ts +3 -0
- package/package.json +1 -1
- package/tools/models/tool.schema.ts +3 -0
- package/video/commands/index.ts +1 -0
- package/video/commands/video-model/get-video-model-by-uuid.command.ts +13 -0
- package/video/commands/video-model/index.ts +1 -0
- package/video/routes/index.ts +1 -0
- package/video/routes/video-model.amqp.routes.ts +3 -0
- package/video-editor/commands/index.ts +1 -0
- package/video-editor/commands/video-editor-model/get-video-editor-model.command.ts +13 -0
- package/video-editor/commands/video-editor-model/index.ts +1 -0
- package/video-editor/routes/index.ts +1 -0
- package/video-editor/routes/video-editor-model.amqp.routes.ts +3 -0
package/build/image-editor/commands/image-editor-model/get-image-editor-model-by-uuid.command.js
ADDED
|
@@ -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);
|
|
@@ -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);
|
|
@@ -8,6 +8,9 @@ exports.ToolSchema = zod_1.z.object({
|
|
|
8
8
|
title: zod_1.z.string(),
|
|
9
9
|
description: zod_1.z.string(),
|
|
10
10
|
icon: zod_1.z.string(),
|
|
11
|
+
alias: zod_1.z.string(),
|
|
12
|
+
bgColor: zod_1.z.string(),
|
|
13
|
+
iconColor: zod_1.z.string(),
|
|
11
14
|
order: zod_1.z.number(),
|
|
12
15
|
contentType: zod_1.z.nativeEnum(enums_1.TOOL_CONTENT_TYPE),
|
|
13
16
|
createdAt: zod_1.z.date(),
|
|
@@ -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);
|
|
@@ -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,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';
|
package/music/commands/index.ts
CHANGED
|
@@ -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';
|
package/music/routes/index.ts
CHANGED
package/package.json
CHANGED
|
@@ -6,6 +6,9 @@ export const ToolSchema = z.object({
|
|
|
6
6
|
title: z.string(),
|
|
7
7
|
description: z.string(),
|
|
8
8
|
icon: z.string(),
|
|
9
|
+
alias: z.string(),
|
|
10
|
+
bgColor: z.string(),
|
|
11
|
+
iconColor: z.string(),
|
|
9
12
|
order: z.number(),
|
|
10
13
|
contentType: z.nativeEnum(TOOL_CONTENT_TYPE),
|
|
11
14
|
createdAt: z.date(),
|
package/video/commands/index.ts
CHANGED
|
@@ -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';
|
package/video/routes/index.ts
CHANGED
|
@@ -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';
|