@purpleschool/gptbot 0.13.20 → 0.13.22
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/api/controllers/http/agents/agent-dialog.ts +1 -0
- package/api/controllers/http/diagrams.ts +1 -0
- package/api/controllers/http/html-page-builder.ts +1 -0
- package/api/controllers/http/image-editor.ts +1 -0
- package/api/controllers/http/image-generation.ts +1 -0
- package/api/controllers/http/interior-design.ts +1 -0
- package/api/controllers/http/marketplace-card.ts +1 -0
- package/api/controllers/http/music.ts +1 -0
- package/api/controllers/http/paraphrase.ts +1 -0
- package/api/controllers/http/presentation.ts +1 -0
- package/api/controllers/http/solving-edu-task.ts +1 -0
- package/api/controllers/http/spell-corrector.ts +1 -0
- package/api/controllers/http/stt.ts +1 -0
- package/api/controllers/http/tts.ts +1 -0
- package/api/controllers/http/video-editor.ts +1 -0
- package/api/controllers/http/video.ts +1 -0
- package/api/controllers/http/writer.ts +1 -0
- package/api/routes.ts +82 -0
- package/build/api/controllers/http/agents/agent-dialog.js +1 -0
- package/build/api/controllers/http/diagrams.js +1 -0
- package/build/api/controllers/http/html-page-builder.js +1 -0
- package/build/api/controllers/http/image-editor.js +1 -0
- package/build/api/controllers/http/image-generation.js +1 -0
- package/build/api/controllers/http/interior-design.js +1 -0
- package/build/api/controllers/http/marketplace-card.js +1 -0
- package/build/api/controllers/http/music.js +1 -0
- package/build/api/controllers/http/paraphrase.js +1 -0
- package/build/api/controllers/http/presentation.js +1 -0
- package/build/api/controllers/http/solving-edu-task.js +1 -0
- package/build/api/controllers/http/spell-corrector.js +1 -0
- package/build/api/controllers/http/stt.js +1 -0
- package/build/api/controllers/http/tts.js +1 -0
- package/build/api/controllers/http/video-editor.js +1 -0
- package/build/api/controllers/http/video.js +1 -0
- package/build/api/controllers/http/writer.js +1 -0
- package/build/api/routes.js +49 -0
- package/build/commands/agents/agent-dialog/find-agent-dialogs.command.js +1 -0
- package/build/commands/agents/agent-dialog/index.js +1 -0
- package/build/commands/agents/agent-dialog/rename-agent-dialog.command.js +17 -0
- package/build/commands/tools/diagrams/find-diagrams-jobs.command.js +5 -0
- package/build/commands/tools/diagrams/index.js +1 -0
- package/build/commands/tools/diagrams/update-diagrams-job-favorite.command.js +17 -0
- package/build/commands/tools/html-page-builder/find-html-page-builder-sessions.command.js +5 -0
- package/build/commands/tools/html-page-builder/index.js +1 -0
- package/build/commands/tools/html-page-builder/update-html-page-builder-session-favorite.command.js +11 -0
- package/build/commands/tools/image-editor/find-image-editor-jobs.command.js +5 -0
- package/build/commands/tools/image-editor/index.js +1 -0
- package/build/commands/tools/image-editor/update-image-editor-job-favorite.command.js +17 -0
- package/build/commands/tools/image-generation/find-image-generation-jobs.command.js +5 -0
- package/build/commands/tools/image-generation/index.js +1 -0
- package/build/commands/tools/image-generation/update-image-generation-job-favorite.command.js +17 -0
- package/build/commands/tools/interior-design/find-interior-design-jobs.command.js +5 -0
- package/build/commands/tools/interior-design/index.js +1 -0
- package/build/commands/tools/interior-design/update-interior-design-job-favorite.command.js +17 -0
- package/build/commands/tools/marketplace-card/find-marketplace-card-jobs.command.js +5 -0
- package/build/commands/tools/marketplace-card/index.js +1 -0
- package/build/commands/tools/marketplace-card/update-marketplace-card-job-favorite.command.js +17 -0
- package/build/commands/tools/music/find-music-jobs.command.js +5 -0
- package/build/commands/tools/music/index.js +1 -0
- package/build/commands/tools/music/update-music-job-favorite.command.js +17 -0
- package/build/commands/tools/paraphrase/find-paraphrase-jobs.command.js +5 -0
- package/build/commands/tools/paraphrase/index.js +1 -0
- package/build/commands/tools/paraphrase/update-paraphrase-job-favorite.command.js +17 -0
- package/build/commands/tools/presentation/find-presentations.command.js +5 -0
- package/build/commands/tools/presentation/index.js +1 -0
- package/build/commands/tools/presentation/update-presentation-favorite.command.js +11 -0
- package/build/commands/tools/solving-edu-task/find-solving-edu-task-jobs.command.js +5 -0
- package/build/commands/tools/solving-edu-task/index.js +1 -0
- package/build/commands/tools/solving-edu-task/update-solving-edu-task-job-favorite.command.js +17 -0
- package/build/commands/tools/spell-corrector/find-spell-corrector-jobs.command.js +5 -0
- package/build/commands/tools/spell-corrector/index.js +1 -0
- package/build/commands/tools/spell-corrector/update-spell-corrector-job-favorite.command.js +17 -0
- package/build/commands/tools/stt/find-stt-jobs.command.js +5 -0
- package/build/commands/tools/stt/index.js +1 -0
- package/build/commands/tools/stt/update-stt-job-favorite.command.js +17 -0
- package/build/commands/tools/tts/find-tts-jobs.command.js +5 -0
- package/build/commands/tools/tts/index.js +1 -0
- package/build/commands/tools/tts/update-tts-job-favorite.command.js +17 -0
- package/build/commands/tools/video/find-video-jobs.command.js +5 -0
- package/build/commands/tools/video/index.js +1 -0
- package/build/commands/tools/video/update-video-job-favorite.command.js +17 -0
- package/build/commands/tools/video-editor/find-video-editor-jobs.command.js +5 -0
- package/build/commands/tools/video-editor/index.js +1 -0
- package/build/commands/tools/video-editor/update-video-editor-job-favorite.command.js +17 -0
- package/build/commands/tools/writer/find-writer-documents.command.js +5 -0
- package/build/commands/tools/writer/index.js +1 -0
- package/build/commands/tools/writer/update-writer-document-favorite.command.js +11 -0
- package/build/constants/tool/enums/index.js +1 -0
- package/build/constants/tool/enums/job-sort.enum.js +8 -0
- package/build/helpers/index.js +1 -0
- package/build/helpers/query-boolean.schema.js +13 -0
- package/build/models/tool-job.schema.js +1 -0
- package/build/models/tools/diagrams/diagrams-job.schema.js +1 -0
- package/build/models/tools/html-page-builder/html-page-builder-session.schema.js +1 -0
- package/build/models/tools/presentation/presentation.schema.js +1 -0
- package/build/models/tools/solving-edu-task/solving-edu-task-job.schema.js +1 -0
- package/build/models/tools/video/video-model.schema.js +1 -0
- package/build/models/tools/writer/writer-document.schema.js +1 -0
- package/commands/agents/agent-dialog/find-agent-dialogs.command.ts +1 -0
- package/commands/agents/agent-dialog/index.ts +1 -0
- package/commands/agents/agent-dialog/rename-agent-dialog.command.ts +19 -0
- package/commands/tools/diagrams/find-diagrams-jobs.command.ts +5 -0
- package/commands/tools/diagrams/index.ts +1 -0
- package/commands/tools/diagrams/update-diagrams-job-favorite.command.ts +19 -0
- package/commands/tools/html-page-builder/find-html-page-builder-sessions.command.ts +5 -0
- package/commands/tools/html-page-builder/index.ts +1 -0
- package/commands/tools/html-page-builder/update-html-page-builder-session-favorite.command.ts +13 -0
- package/commands/tools/image-editor/find-image-editor-jobs.command.ts +5 -0
- package/commands/tools/image-editor/index.ts +1 -0
- package/commands/tools/image-editor/update-image-editor-job-favorite.command.ts +19 -0
- package/commands/tools/image-generation/find-image-generation-jobs.command.ts +5 -0
- package/commands/tools/image-generation/index.ts +1 -0
- package/commands/tools/image-generation/update-image-generation-job-favorite.command.ts +19 -0
- package/commands/tools/interior-design/find-interior-design-jobs.command.ts +5 -0
- package/commands/tools/interior-design/index.ts +1 -0
- package/commands/tools/interior-design/update-interior-design-job-favorite.command.ts +19 -0
- package/commands/tools/marketplace-card/find-marketplace-card-jobs.command.ts +5 -0
- package/commands/tools/marketplace-card/index.ts +1 -0
- package/commands/tools/marketplace-card/update-marketplace-card-job-favorite.command.ts +19 -0
- package/commands/tools/music/find-music-jobs.command.ts +5 -0
- package/commands/tools/music/index.ts +1 -0
- package/commands/tools/music/update-music-job-favorite.command.ts +19 -0
- package/commands/tools/paraphrase/find-paraphrase-jobs.command.ts +5 -0
- package/commands/tools/paraphrase/index.ts +1 -0
- package/commands/tools/paraphrase/update-paraphrase-job-favorite.command.ts +19 -0
- package/commands/tools/presentation/find-presentations.command.ts +5 -0
- package/commands/tools/presentation/index.ts +1 -0
- package/commands/tools/presentation/update-presentation-favorite.command.ts +13 -0
- package/commands/tools/solving-edu-task/find-solving-edu-task-jobs.command.ts +5 -0
- package/commands/tools/solving-edu-task/index.ts +1 -0
- package/commands/tools/solving-edu-task/update-solving-edu-task-job-favorite.command.ts +19 -0
- package/commands/tools/spell-corrector/find-spell-corrector-jobs.command.ts +5 -0
- package/commands/tools/spell-corrector/index.ts +1 -0
- package/commands/tools/spell-corrector/update-spell-corrector-job-favorite.command.ts +19 -0
- package/commands/tools/stt/find-stt-jobs.command.ts +5 -0
- package/commands/tools/stt/index.ts +1 -0
- package/commands/tools/stt/update-stt-job-favorite.command.ts +19 -0
- package/commands/tools/tts/find-tts-jobs.command.ts +5 -0
- package/commands/tools/tts/index.ts +1 -0
- package/commands/tools/tts/update-tts-job-favorite.command.ts +19 -0
- package/commands/tools/video/find-video-jobs.command.ts +5 -0
- package/commands/tools/video/index.ts +1 -0
- package/commands/tools/video/update-video-job-favorite.command.ts +19 -0
- package/commands/tools/video-editor/find-video-editor-jobs.command.ts +5 -0
- package/commands/tools/video-editor/index.ts +1 -0
- package/commands/tools/video-editor/update-video-editor-job-favorite.command.ts +19 -0
- package/commands/tools/writer/find-writer-documents.command.ts +5 -0
- package/commands/tools/writer/index.ts +1 -0
- package/commands/tools/writer/update-writer-document-favorite.command.ts +13 -0
- package/constants/tool/enums/index.ts +1 -0
- package/constants/tool/enums/job-sort.enum.ts +4 -0
- package/helpers/index.ts +1 -0
- package/helpers/query-boolean.schema.ts +13 -0
- package/models/tool-job.schema.ts +1 -0
- package/models/tools/diagrams/diagrams-job.schema.ts +1 -0
- package/models/tools/html-page-builder/html-page-builder-session.schema.ts +1 -0
- package/models/tools/presentation/presentation.schema.ts +1 -0
- package/models/tools/solving-edu-task/solving-edu-task-job.schema.ts +1 -0
- package/models/tools/video/video-model.schema.ts +1 -0
- package/models/tools/writer/writer-document.schema.ts +1 -0
- package/package.json +1 -1
|
@@ -25,3 +25,4 @@ __exportStar(require("./generate-music.command"), exports);
|
|
|
25
25
|
__exportStar(require("./update-music-job-title.command"), exports);
|
|
26
26
|
__exportStar(require("./convert-to-wav.command"), exports);
|
|
27
27
|
__exportStar(require("./generate-lyrics.command"), exports);
|
|
28
|
+
__exportStar(require("./update-music-job-favorite.command"), exports);
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UpdateMusicJobFavoriteCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const models_1 = require("../../../models");
|
|
6
|
+
var UpdateMusicJobFavoriteCommand;
|
|
7
|
+
(function (UpdateMusicJobFavoriteCommand) {
|
|
8
|
+
UpdateMusicJobFavoriteCommand.RequestSchema = zod_1.z.object({
|
|
9
|
+
isFavorite: zod_1.z.boolean(),
|
|
10
|
+
});
|
|
11
|
+
UpdateMusicJobFavoriteCommand.RequestParamsSchema = zod_1.z.object({
|
|
12
|
+
uuid: zod_1.z.string().uuid(),
|
|
13
|
+
});
|
|
14
|
+
UpdateMusicJobFavoriteCommand.ResponseSchema = zod_1.z.object({
|
|
15
|
+
data: models_1.MusicJobSchema,
|
|
16
|
+
});
|
|
17
|
+
})(UpdateMusicJobFavoriteCommand || (exports.UpdateMusicJobFavoriteCommand = UpdateMusicJobFavoriteCommand = {}));
|
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.FindParaphraseJobsCommand = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
|
+
const helpers_1 = require("../../../helpers");
|
|
6
|
+
const constants_1 = require("../../../constants");
|
|
5
7
|
const models_1 = require("../../../models");
|
|
6
8
|
var FindParaphraseJobsCommand;
|
|
7
9
|
(function (FindParaphraseJobsCommand) {
|
|
@@ -9,6 +11,9 @@ var FindParaphraseJobsCommand;
|
|
|
9
11
|
limit: zod_1.z.coerce.number().min(1).optional(),
|
|
10
12
|
offset: zod_1.z.coerce.number().min(0).default(0).optional(),
|
|
11
13
|
title: zod_1.z.string().optional(),
|
|
14
|
+
isFavorite: helpers_1.QueryBooleanSchema.optional(),
|
|
15
|
+
createdAtSortOrder: zod_1.z.nativeEnum(constants_1.JOB_SORT).optional().default(constants_1.JOB_SORT.DESC),
|
|
16
|
+
status: zod_1.z.nativeEnum(constants_1.TOOL_JOB_STATUS).optional()
|
|
12
17
|
});
|
|
13
18
|
FindParaphraseJobsCommand.ResponseSchema = zod_1.z.object({
|
|
14
19
|
data: zod_1.z.array(models_1.ParaphraseToolJobSchema),
|
|
@@ -23,3 +23,4 @@ __exportStar(require("./retry-paraphrase-job.command"), exports);
|
|
|
23
23
|
__exportStar(require("./find-paraphrase-job-by-uuid.command"), exports);
|
|
24
24
|
__exportStar(require("./find-paraphrase-jobs.command"), exports);
|
|
25
25
|
__exportStar(require("./get-paraphrase-tool-config.command"), exports);
|
|
26
|
+
__exportStar(require("./update-paraphrase-job-favorite.command"), exports);
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UpdateParaphraseJobFavoriteCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const models_1 = require("../../../models");
|
|
6
|
+
var UpdateParaphraseJobFavoriteCommand;
|
|
7
|
+
(function (UpdateParaphraseJobFavoriteCommand) {
|
|
8
|
+
UpdateParaphraseJobFavoriteCommand.RequestSchema = zod_1.z.object({
|
|
9
|
+
isFavorite: zod_1.z.boolean(),
|
|
10
|
+
});
|
|
11
|
+
UpdateParaphraseJobFavoriteCommand.RequestParamsSchema = zod_1.z.object({
|
|
12
|
+
uuid: zod_1.z.string().uuid(),
|
|
13
|
+
});
|
|
14
|
+
UpdateParaphraseJobFavoriteCommand.ResponseSchema = zod_1.z.object({
|
|
15
|
+
data: models_1.ParaphraseToolJobSchema,
|
|
16
|
+
});
|
|
17
|
+
})(UpdateParaphraseJobFavoriteCommand || (exports.UpdateParaphraseJobFavoriteCommand = UpdateParaphraseJobFavoriteCommand = {}));
|
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.FindPresentationsCommand = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
|
+
const helpers_1 = require("../../../helpers");
|
|
6
|
+
const constants_1 = require("../../../constants");
|
|
5
7
|
const presentation_1 = require("../../../models/tools/presentation");
|
|
6
8
|
var FindPresentationsCommand;
|
|
7
9
|
(function (FindPresentationsCommand) {
|
|
@@ -9,6 +11,9 @@ var FindPresentationsCommand;
|
|
|
9
11
|
limit: zod_1.z.coerce.number().min(1).optional(),
|
|
10
12
|
offset: zod_1.z.coerce.number().min(0).default(0).optional(),
|
|
11
13
|
title: zod_1.z.string().optional(),
|
|
14
|
+
isFavorite: helpers_1.QueryBooleanSchema.optional(),
|
|
15
|
+
createdAtSortOrder: zod_1.z.nativeEnum(constants_1.JOB_SORT).optional().default(constants_1.JOB_SORT.DESC),
|
|
16
|
+
status: zod_1.z.nativeEnum(constants_1.TOOL_JOB_STATUS).optional(),
|
|
12
17
|
});
|
|
13
18
|
FindPresentationsCommand.ResponseSchema = zod_1.z.object({
|
|
14
19
|
data: zod_1.z.array(presentation_1.PresentationSchema),
|
|
@@ -38,3 +38,4 @@ __exportStar(require("./presentation-paraphrase.command"), exports);
|
|
|
38
38
|
__exportStar(require("./presentation-generate-report.command"), exports);
|
|
39
39
|
__exportStar(require("./update-slide.command"), exports);
|
|
40
40
|
__exportStar(require("./set-reaction-to-presentation.command"), exports);
|
|
41
|
+
__exportStar(require("./update-presentation-favorite.command"), exports);
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UpdatePresentationFavoriteCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const presentation_1 = require("../../../models/tools/presentation");
|
|
6
|
+
var UpdatePresentationFavoriteCommand;
|
|
7
|
+
(function (UpdatePresentationFavoriteCommand) {
|
|
8
|
+
UpdatePresentationFavoriteCommand.RequestBodySchema = zod_1.z.object({ isFavorite: zod_1.z.boolean() });
|
|
9
|
+
UpdatePresentationFavoriteCommand.RequestParamsSchema = zod_1.z.object({ uuid: zod_1.z.string().uuid() });
|
|
10
|
+
UpdatePresentationFavoriteCommand.ResponseSchema = zod_1.z.object({ data: presentation_1.PresentationSchema });
|
|
11
|
+
})(UpdatePresentationFavoriteCommand || (exports.UpdatePresentationFavoriteCommand = UpdatePresentationFavoriteCommand = {}));
|
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.FindSolvingEduTaskJobsCommand = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
|
+
const helpers_1 = require("../../../helpers");
|
|
6
|
+
const constants_1 = require("../../../constants");
|
|
5
7
|
const models_1 = require("../../../models");
|
|
6
8
|
var FindSolvingEduTaskJobsCommand;
|
|
7
9
|
(function (FindSolvingEduTaskJobsCommand) {
|
|
@@ -9,6 +11,9 @@ var FindSolvingEduTaskJobsCommand;
|
|
|
9
11
|
limit: zod_1.z.coerce.number().min(1).optional(),
|
|
10
12
|
offset: zod_1.z.coerce.number().min(0).default(0).optional(),
|
|
11
13
|
title: zod_1.z.string().optional(),
|
|
14
|
+
isFavorite: helpers_1.QueryBooleanSchema.optional(),
|
|
15
|
+
createdAtSortOrder: zod_1.z.nativeEnum(constants_1.JOB_SORT).optional().default(constants_1.JOB_SORT.DESC),
|
|
16
|
+
status: zod_1.z.nativeEnum(constants_1.TOOL_JOB_STATUS).optional()
|
|
12
17
|
});
|
|
13
18
|
FindSolvingEduTaskJobsCommand.ResponseSchema = zod_1.z.object({
|
|
14
19
|
data: zod_1.z.array(models_1.SolvingEduTaskJobSchema),
|
|
@@ -23,3 +23,4 @@ __exportStar(require("./set-reaction-to-solving-edu-task-job.command"), exports)
|
|
|
23
23
|
__exportStar(require("./delete-solving-edu-task-job-by-uuid.command"), exports);
|
|
24
24
|
__exportStar(require("./delete-all-solving-edu-task-jobs.command"), exports);
|
|
25
25
|
__exportStar(require("./update-solving-edu-task-job-title.command"), exports);
|
|
26
|
+
__exportStar(require("./update-solving-edu-task-job-favorite.command"), exports);
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UpdateSolvingEduTaskJobFavoriteCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const models_1 = require("../../../models");
|
|
6
|
+
var UpdateSolvingEduTaskJobFavoriteCommand;
|
|
7
|
+
(function (UpdateSolvingEduTaskJobFavoriteCommand) {
|
|
8
|
+
UpdateSolvingEduTaskJobFavoriteCommand.RequestSchema = zod_1.z.object({
|
|
9
|
+
isFavorite: zod_1.z.boolean(),
|
|
10
|
+
});
|
|
11
|
+
UpdateSolvingEduTaskJobFavoriteCommand.RequestParamsSchema = zod_1.z.object({
|
|
12
|
+
uuid: zod_1.z.string().uuid(),
|
|
13
|
+
});
|
|
14
|
+
UpdateSolvingEduTaskJobFavoriteCommand.ResponseSchema = zod_1.z.object({
|
|
15
|
+
data: models_1.SolvingEduTaskJobSchema,
|
|
16
|
+
});
|
|
17
|
+
})(UpdateSolvingEduTaskJobFavoriteCommand || (exports.UpdateSolvingEduTaskJobFavoriteCommand = UpdateSolvingEduTaskJobFavoriteCommand = {}));
|
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.FindSpellCorrectorJobsCommand = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
|
+
const helpers_1 = require("../../../helpers");
|
|
6
|
+
const constants_1 = require("../../../constants");
|
|
5
7
|
const models_1 = require("../../../models");
|
|
6
8
|
var FindSpellCorrectorJobsCommand;
|
|
7
9
|
(function (FindSpellCorrectorJobsCommand) {
|
|
@@ -9,6 +11,9 @@ var FindSpellCorrectorJobsCommand;
|
|
|
9
11
|
limit: zod_1.z.coerce.number().min(1).optional(),
|
|
10
12
|
offset: zod_1.z.coerce.number().min(0).default(0).optional(),
|
|
11
13
|
title: zod_1.z.string().optional(),
|
|
14
|
+
isFavorite: helpers_1.QueryBooleanSchema.optional(),
|
|
15
|
+
createdAtSortOrder: zod_1.z.nativeEnum(constants_1.JOB_SORT).optional().default(constants_1.JOB_SORT.DESC),
|
|
16
|
+
status: zod_1.z.nativeEnum(constants_1.TOOL_JOB_STATUS).optional(),
|
|
12
17
|
});
|
|
13
18
|
FindSpellCorrectorJobsCommand.ResponseSchema = zod_1.z.object({
|
|
14
19
|
data: zod_1.z.array(models_1.SpellCorrectorToolJobSchema),
|
|
@@ -23,3 +23,4 @@ __exportStar(require("./retry-spell-corrector-job.command"), exports);
|
|
|
23
23
|
__exportStar(require("./find-spell-corrector-job-by-uuid.command"), exports);
|
|
24
24
|
__exportStar(require("./find-spell-corrector-jobs.command"), exports);
|
|
25
25
|
__exportStar(require("./get-spell-corrector-tool-config.command"), exports);
|
|
26
|
+
__exportStar(require("./update-spell-corrector-job-favorite.command"), exports);
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UpdateSpellCorrectorJobFavoriteCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const models_1 = require("../../../models");
|
|
6
|
+
var UpdateSpellCorrectorJobFavoriteCommand;
|
|
7
|
+
(function (UpdateSpellCorrectorJobFavoriteCommand) {
|
|
8
|
+
UpdateSpellCorrectorJobFavoriteCommand.RequestSchema = zod_1.z.object({
|
|
9
|
+
isFavorite: zod_1.z.boolean(),
|
|
10
|
+
});
|
|
11
|
+
UpdateSpellCorrectorJobFavoriteCommand.RequestParamsSchema = zod_1.z.object({
|
|
12
|
+
uuid: zod_1.z.string().uuid(),
|
|
13
|
+
});
|
|
14
|
+
UpdateSpellCorrectorJobFavoriteCommand.ResponseSchema = zod_1.z.object({
|
|
15
|
+
data: models_1.SpellCorrectorToolJobSchema,
|
|
16
|
+
});
|
|
17
|
+
})(UpdateSpellCorrectorJobFavoriteCommand || (exports.UpdateSpellCorrectorJobFavoriteCommand = UpdateSpellCorrectorJobFavoriteCommand = {}));
|
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.FindSTTJobsCommand = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
|
+
const helpers_1 = require("../../../helpers");
|
|
6
|
+
const constants_1 = require("../../../constants");
|
|
5
7
|
const models_1 = require("../../../models");
|
|
6
8
|
var FindSTTJobsCommand;
|
|
7
9
|
(function (FindSTTJobsCommand) {
|
|
@@ -9,6 +11,9 @@ var FindSTTJobsCommand;
|
|
|
9
11
|
limit: zod_1.z.coerce.number().min(1).optional(),
|
|
10
12
|
offset: zod_1.z.coerce.number().min(0).default(0).optional(),
|
|
11
13
|
title: zod_1.z.string().optional(),
|
|
14
|
+
isFavorite: helpers_1.QueryBooleanSchema.optional(),
|
|
15
|
+
createdAtSortOrder: zod_1.z.nativeEnum(constants_1.JOB_SORT).optional().default(constants_1.JOB_SORT.DESC),
|
|
16
|
+
status: zod_1.z.nativeEnum(constants_1.TOOL_JOB_STATUS).optional(),
|
|
12
17
|
});
|
|
13
18
|
FindSTTJobsCommand.ResponseSchema = zod_1.z.object({
|
|
14
19
|
data: zod_1.z.array(models_1.STTJobSchema),
|
|
@@ -23,3 +23,4 @@ __exportStar(require("./retry-stt-job.command"), exports);
|
|
|
23
23
|
__exportStar(require("./set-reaction-to-stt-job.command"), exports);
|
|
24
24
|
__exportStar(require("./stt.command"), exports);
|
|
25
25
|
__exportStar(require("./update-stt-job-title.command"), exports);
|
|
26
|
+
__exportStar(require("./update-stt-job-favorite.command"), exports);
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UpdateSTTJobFavoriteCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const models_1 = require("../../../models");
|
|
6
|
+
var UpdateSTTJobFavoriteCommand;
|
|
7
|
+
(function (UpdateSTTJobFavoriteCommand) {
|
|
8
|
+
UpdateSTTJobFavoriteCommand.RequestSchema = zod_1.z.object({
|
|
9
|
+
isFavorite: zod_1.z.boolean(),
|
|
10
|
+
});
|
|
11
|
+
UpdateSTTJobFavoriteCommand.RequestParamsSchema = zod_1.z.object({
|
|
12
|
+
uuid: zod_1.z.string().uuid(),
|
|
13
|
+
});
|
|
14
|
+
UpdateSTTJobFavoriteCommand.ResponseSchema = zod_1.z.object({
|
|
15
|
+
data: models_1.STTJobSchema,
|
|
16
|
+
});
|
|
17
|
+
})(UpdateSTTJobFavoriteCommand || (exports.UpdateSTTJobFavoriteCommand = UpdateSTTJobFavoriteCommand = {}));
|
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.FindTTSJobsCommand = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
|
+
const helpers_1 = require("../../../helpers");
|
|
6
|
+
const constants_1 = require("../../../constants");
|
|
5
7
|
const models_1 = require("../../../models");
|
|
6
8
|
var FindTTSJobsCommand;
|
|
7
9
|
(function (FindTTSJobsCommand) {
|
|
@@ -9,6 +11,9 @@ var FindTTSJobsCommand;
|
|
|
9
11
|
limit: zod_1.z.coerce.number().min(1).optional(),
|
|
10
12
|
offset: zod_1.z.coerce.number().min(0).default(0).optional(),
|
|
11
13
|
title: zod_1.z.string().optional(),
|
|
14
|
+
isFavorite: helpers_1.QueryBooleanSchema.optional(),
|
|
15
|
+
createdAtSortOrder: zod_1.z.nativeEnum(constants_1.JOB_SORT).optional().default(constants_1.JOB_SORT.DESC),
|
|
16
|
+
status: zod_1.z.nativeEnum(constants_1.TOOL_JOB_STATUS).optional(),
|
|
12
17
|
});
|
|
13
18
|
FindTTSJobsCommand.ResponseSchema = zod_1.z.object({
|
|
14
19
|
data: zod_1.z.array(models_1.TTSJobSchema),
|
|
@@ -23,3 +23,4 @@ __exportStar(require("./retry-tts-job.command"), exports);
|
|
|
23
23
|
__exportStar(require("./set-reaction-to-tts-job.command"), exports);
|
|
24
24
|
__exportStar(require("./tts.command"), exports);
|
|
25
25
|
__exportStar(require("./update-tts-job-title.command"), exports);
|
|
26
|
+
__exportStar(require("./update-tts-job-favorite.command"), exports);
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UpdateTTSJobFavoriteCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const models_1 = require("../../../models");
|
|
6
|
+
var UpdateTTSJobFavoriteCommand;
|
|
7
|
+
(function (UpdateTTSJobFavoriteCommand) {
|
|
8
|
+
UpdateTTSJobFavoriteCommand.RequestSchema = zod_1.z.object({
|
|
9
|
+
isFavorite: zod_1.z.boolean(),
|
|
10
|
+
});
|
|
11
|
+
UpdateTTSJobFavoriteCommand.RequestParamsSchema = zod_1.z.object({
|
|
12
|
+
uuid: zod_1.z.string().uuid(),
|
|
13
|
+
});
|
|
14
|
+
UpdateTTSJobFavoriteCommand.ResponseSchema = zod_1.z.object({
|
|
15
|
+
data: models_1.TTSJobSchema,
|
|
16
|
+
});
|
|
17
|
+
})(UpdateTTSJobFavoriteCommand || (exports.UpdateTTSJobFavoriteCommand = UpdateTTSJobFavoriteCommand = {}));
|
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.FindVideoJobsCommand = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
|
+
const helpers_1 = require("../../../helpers");
|
|
6
|
+
const constants_1 = require("../../../constants");
|
|
5
7
|
const models_1 = require("../../../models");
|
|
6
8
|
var FindVideoJobsCommand;
|
|
7
9
|
(function (FindVideoJobsCommand) {
|
|
@@ -9,6 +11,9 @@ var FindVideoJobsCommand;
|
|
|
9
11
|
limit: zod_1.z.coerce.number().min(1).optional(),
|
|
10
12
|
offset: zod_1.z.coerce.number().min(0).default(0).optional(),
|
|
11
13
|
title: zod_1.z.string().optional(),
|
|
14
|
+
isFavorite: helpers_1.QueryBooleanSchema.optional(),
|
|
15
|
+
createdAtSortOrder: zod_1.z.nativeEnum(constants_1.JOB_SORT).optional().default(constants_1.JOB_SORT.DESC),
|
|
16
|
+
status: zod_1.z.nativeEnum(constants_1.TOOL_JOB_STATUS).optional(),
|
|
12
17
|
});
|
|
13
18
|
FindVideoJobsCommand.ResponseSchema = zod_1.z.object({
|
|
14
19
|
data: zod_1.z.array(models_1.VideoJobSchema),
|
|
@@ -23,3 +23,4 @@ __exportStar(require("./retry-video-job.command"), exports);
|
|
|
23
23
|
__exportStar(require("./set-reaction-to-video-job.command"), exports);
|
|
24
24
|
__exportStar(require("./video.command"), exports);
|
|
25
25
|
__exportStar(require("./update-video-job-title.command"), exports);
|
|
26
|
+
__exportStar(require("./update-video-job-favorite.command"), exports);
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UpdateVideoJobFavoriteCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const models_1 = require("../../../models");
|
|
6
|
+
var UpdateVideoJobFavoriteCommand;
|
|
7
|
+
(function (UpdateVideoJobFavoriteCommand) {
|
|
8
|
+
UpdateVideoJobFavoriteCommand.RequestSchema = zod_1.z.object({
|
|
9
|
+
isFavorite: zod_1.z.boolean(),
|
|
10
|
+
});
|
|
11
|
+
UpdateVideoJobFavoriteCommand.RequestParamsSchema = zod_1.z.object({
|
|
12
|
+
uuid: zod_1.z.string().uuid(),
|
|
13
|
+
});
|
|
14
|
+
UpdateVideoJobFavoriteCommand.ResponseSchema = zod_1.z.object({
|
|
15
|
+
data: models_1.VideoJobSchema,
|
|
16
|
+
});
|
|
17
|
+
})(UpdateVideoJobFavoriteCommand || (exports.UpdateVideoJobFavoriteCommand = UpdateVideoJobFavoriteCommand = {}));
|
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.FindVideoEditorJobsCommand = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
|
+
const helpers_1 = require("../../../helpers");
|
|
6
|
+
const constants_1 = require("../../../constants");
|
|
5
7
|
const models_1 = require("../../../models");
|
|
6
8
|
var FindVideoEditorJobsCommand;
|
|
7
9
|
(function (FindVideoEditorJobsCommand) {
|
|
@@ -9,6 +11,9 @@ var FindVideoEditorJobsCommand;
|
|
|
9
11
|
limit: zod_1.z.coerce.number().min(1).optional(),
|
|
10
12
|
offset: zod_1.z.coerce.number().min(0).default(0).optional(),
|
|
11
13
|
title: zod_1.z.string().optional(),
|
|
14
|
+
isFavorite: helpers_1.QueryBooleanSchema.optional(),
|
|
15
|
+
createdAtSortOrder: zod_1.z.nativeEnum(constants_1.JOB_SORT).optional().default(constants_1.JOB_SORT.DESC),
|
|
16
|
+
status: zod_1.z.nativeEnum(constants_1.TOOL_JOB_STATUS).optional(),
|
|
12
17
|
});
|
|
13
18
|
FindVideoEditorJobsCommand.ResponseSchema = zod_1.z.object({
|
|
14
19
|
data: zod_1.z.array(models_1.VideoEditorJobSchema),
|
|
@@ -23,3 +23,4 @@ __exportStar(require("./get-video-editor-config.command"), exports);
|
|
|
23
23
|
__exportStar(require("./retry-video-editor-job.command"), exports);
|
|
24
24
|
__exportStar(require("./set-reaction-to-video-editor-job.command"), exports);
|
|
25
25
|
__exportStar(require("./update-video-editor-job-title.command"), exports);
|
|
26
|
+
__exportStar(require("./update-video-editor-job-favorite.command"), exports);
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UpdateVideoEditorJobFavoriteCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const models_1 = require("../../../models");
|
|
6
|
+
var UpdateVideoEditorJobFavoriteCommand;
|
|
7
|
+
(function (UpdateVideoEditorJobFavoriteCommand) {
|
|
8
|
+
UpdateVideoEditorJobFavoriteCommand.RequestSchema = zod_1.z.object({
|
|
9
|
+
isFavorite: zod_1.z.boolean(),
|
|
10
|
+
});
|
|
11
|
+
UpdateVideoEditorJobFavoriteCommand.RequestParamsSchema = zod_1.z.object({
|
|
12
|
+
uuid: zod_1.z.string().uuid(),
|
|
13
|
+
});
|
|
14
|
+
UpdateVideoEditorJobFavoriteCommand.ResponseSchema = zod_1.z.object({
|
|
15
|
+
data: models_1.VideoEditorJobSchema,
|
|
16
|
+
});
|
|
17
|
+
})(UpdateVideoEditorJobFavoriteCommand || (exports.UpdateVideoEditorJobFavoriteCommand = UpdateVideoEditorJobFavoriteCommand = {}));
|
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.FindWriterDocumentsCommand = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
|
+
const helpers_1 = require("../../../helpers");
|
|
6
|
+
const constants_1 = require("../../../constants");
|
|
5
7
|
const models_1 = require("../../../models");
|
|
6
8
|
var FindWriterDocumentsCommand;
|
|
7
9
|
(function (FindWriterDocumentsCommand) {
|
|
@@ -9,6 +11,9 @@ var FindWriterDocumentsCommand;
|
|
|
9
11
|
limit: zod_1.z.coerce.number().min(1).optional(),
|
|
10
12
|
offset: zod_1.z.coerce.number().min(0).default(0).optional(),
|
|
11
13
|
title: zod_1.z.string().optional(),
|
|
14
|
+
isFavorite: helpers_1.QueryBooleanSchema.optional(),
|
|
15
|
+
createdAtSortOrder: zod_1.z.nativeEnum(constants_1.JOB_SORT).optional().default(constants_1.JOB_SORT.DESC),
|
|
16
|
+
status: zod_1.z.nativeEnum(constants_1.TOOL_JOB_STATUS).optional(),
|
|
12
17
|
});
|
|
13
18
|
FindWriterDocumentsCommand.ResponseSchema = zod_1.z.object({
|
|
14
19
|
data: zod_1.z.array(models_1.WriterDocumentSchema),
|
|
@@ -37,3 +37,4 @@ __exportStar(require("./get-writer-document-sources.command"), exports);
|
|
|
37
37
|
__exportStar(require("./upload-writer-source.command"), exports);
|
|
38
38
|
__exportStar(require("./confirm-source-citation-metadata.command"), exports);
|
|
39
39
|
__exportStar(require("./discard-writer-source.command"), exports);
|
|
40
|
+
__exportStar(require("./update-writer-document-favorite.command"), exports);
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UpdateWriterDocumentFavoriteCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const models_1 = require("../../../models");
|
|
6
|
+
var UpdateWriterDocumentFavoriteCommand;
|
|
7
|
+
(function (UpdateWriterDocumentFavoriteCommand) {
|
|
8
|
+
UpdateWriterDocumentFavoriteCommand.RequestSchema = zod_1.z.object({ isFavorite: zod_1.z.boolean() });
|
|
9
|
+
UpdateWriterDocumentFavoriteCommand.RequestParamsSchema = zod_1.z.object({ uuid: zod_1.z.string().uuid() });
|
|
10
|
+
UpdateWriterDocumentFavoriteCommand.ResponseSchema = zod_1.z.object({ data: models_1.WriterDocumentSchema });
|
|
11
|
+
})(UpdateWriterDocumentFavoriteCommand || (exports.UpdateWriterDocumentFavoriteCommand = UpdateWriterDocumentFavoriteCommand = {}));
|
|
@@ -20,3 +20,4 @@ __exportStar(require("./tool-job-status.enum"), exports);
|
|
|
20
20
|
__exportStar(require("./tool-type.enum"), exports);
|
|
21
21
|
__exportStar(require("./tool-workspace-item-slot.enum"), exports);
|
|
22
22
|
__exportStar(require("./tool-workspace-status.enum"), exports);
|
|
23
|
+
__exportStar(require("./job-sort.enum"), exports);
|
package/build/helpers/index.js
CHANGED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.QueryBooleanSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
exports.QueryBooleanSchema = zod_1.z.preprocess((value) => {
|
|
6
|
+
if (value === 'true') {
|
|
7
|
+
return true;
|
|
8
|
+
}
|
|
9
|
+
if (value === 'false') {
|
|
10
|
+
return false;
|
|
11
|
+
}
|
|
12
|
+
return value;
|
|
13
|
+
}, zod_1.z.boolean());
|
|
@@ -7,6 +7,7 @@ exports.ToolJobSchema = zod_1.z.object({
|
|
|
7
7
|
uuid: zod_1.z.string().uuid(),
|
|
8
8
|
status: zod_1.z.nativeEnum(constants_1.TOOL_JOB_STATUS),
|
|
9
9
|
error: zod_1.z.string().nullable(),
|
|
10
|
+
isFavorite: zod_1.z.boolean(),
|
|
10
11
|
createdAt: zod_1.z.date(),
|
|
11
12
|
updatedAt: zod_1.z.date(),
|
|
12
13
|
});
|
|
@@ -50,6 +50,7 @@ exports.DiagramsJobSchema = zod_1.z.object({
|
|
|
50
50
|
unregisteredUserId: zod_1.z.string().uuid().nullable().optional(),
|
|
51
51
|
tokenReservationId: zod_1.z.string().uuid().nullable().optional(),
|
|
52
52
|
isDeleted: zod_1.z.boolean(),
|
|
53
|
+
isFavorite: zod_1.z.boolean(),
|
|
53
54
|
createdAt: zod_1.z.date(),
|
|
54
55
|
completedAt: zod_1.z.date().nullable().optional(),
|
|
55
56
|
updatedAt: zod_1.z.date(),
|
|
@@ -13,6 +13,7 @@ exports.HtmlPageBuilderSessionSchema = zod_1.z.object({
|
|
|
13
13
|
jobs: zod_1.z.array(html_page_builder_job_schema_1.HtmlPageBuilderJobSchema),
|
|
14
14
|
userId: zod_1.z.string().nullable().optional(),
|
|
15
15
|
unregisteredUserId: zod_1.z.string().nullable().optional(),
|
|
16
|
+
isFavorite: zod_1.z.boolean(),
|
|
16
17
|
isDeleted: zod_1.z.boolean(),
|
|
17
18
|
createdAt: zod_1.z.date(),
|
|
18
19
|
updatedAt: zod_1.z.date(),
|
|
@@ -11,6 +11,7 @@ exports.PresentationSchema = zod_1.z.object({
|
|
|
11
11
|
prompt: zod_1.z.string(),
|
|
12
12
|
stage: zod_1.z.nativeEnum(constants_1.PRESENTATION_STAGE),
|
|
13
13
|
title: zod_1.z.string(),
|
|
14
|
+
isFavorite: zod_1.z.boolean(),
|
|
14
15
|
thumbnail: zod_1.z.string(),
|
|
15
16
|
languageId: zod_1.z.string(),
|
|
16
17
|
templateId: zod_1.z.string(),
|
|
@@ -69,6 +69,7 @@ exports.VideoModelSchema = zod_1.z.object({
|
|
|
69
69
|
description: zod_1.z.string(),
|
|
70
70
|
pricePerSecond: zod_1.z.number(),
|
|
71
71
|
order: zod_1.z.number(),
|
|
72
|
+
isNew: zod_1.z.boolean(),
|
|
72
73
|
icons: icon_variants_schema_1.IconVariantsSchema,
|
|
73
74
|
maxInputLength: zod_1.z.number(),
|
|
74
75
|
maxNegativeInputLength: zod_1.z.number(),
|
|
@@ -14,6 +14,7 @@ exports.WriterDocumentSchema = zod_1.z.object({
|
|
|
14
14
|
outline: writer_document_outline_schema_1.WriterDocumentOutlineSchema,
|
|
15
15
|
titlePage: writer_document_title_page_schema_1.WriterDocumentTitlePageSchema.nullable(),
|
|
16
16
|
isTitlePageEnabled: zod_1.z.boolean(),
|
|
17
|
+
isFavorite: zod_1.z.boolean(),
|
|
17
18
|
sourceMd: zod_1.z.string().nullable(),
|
|
18
19
|
finalMd: zod_1.z.string().nullable(),
|
|
19
20
|
userId: zod_1.z.string().nullable(),
|
|
@@ -7,6 +7,7 @@ export namespace FindAgentDialogsCommand {
|
|
|
7
7
|
agentId: z.string().uuid().optional(),
|
|
8
8
|
status: z.nativeEnum(DIALOG_STATUS).optional(),
|
|
9
9
|
source: z.string().optional(),
|
|
10
|
+
search: z.string().optional(),
|
|
10
11
|
dateFrom: z.coerce.date().optional(),
|
|
11
12
|
dateTo: z.coerce.date().optional(),
|
|
12
13
|
limit: z.coerce.number().optional(),
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { DialogSchema } from '../../../models/agents/dialog.schema';
|
|
3
|
+
|
|
4
|
+
export namespace RenameAgentDialogCommand {
|
|
5
|
+
export const RequestParamsSchema = z.object({
|
|
6
|
+
dialogId: z.string().uuid(),
|
|
7
|
+
});
|
|
8
|
+
export type RequestParams = z.infer<typeof RequestParamsSchema>;
|
|
9
|
+
|
|
10
|
+
export const RequestBodySchema = z.object({
|
|
11
|
+
title: z.string(),
|
|
12
|
+
});
|
|
13
|
+
export type RequestBody = z.infer<typeof RequestBodySchema>;
|
|
14
|
+
|
|
15
|
+
export const ResponseSchema = z.object({
|
|
16
|
+
data: DialogSchema,
|
|
17
|
+
});
|
|
18
|
+
export type Response = z.infer<typeof ResponseSchema>;
|
|
19
|
+
}
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
import { QueryBooleanSchema } from '../../../helpers';
|
|
3
|
+
import { JOB_SORT, TOOL_JOB_STATUS } from '../../../constants';
|
|
2
4
|
import { DiagramsJobSchemaResponse } from '../../../models';
|
|
3
5
|
|
|
4
6
|
export namespace FindDiagramsJobsCommand {
|
|
@@ -6,6 +8,9 @@ export namespace FindDiagramsJobsCommand {
|
|
|
6
8
|
limit: z.coerce.number().min(1).optional(),
|
|
7
9
|
offset: z.coerce.number().min(0).default(0).optional(),
|
|
8
10
|
title: z.string().optional(),
|
|
11
|
+
isFavorite: QueryBooleanSchema.optional(),
|
|
12
|
+
createdAtSortOrder: z.nativeEnum(JOB_SORT).optional().default(JOB_SORT.DESC),
|
|
13
|
+
status: z.nativeEnum(TOOL_JOB_STATUS).optional(),
|
|
9
14
|
});
|
|
10
15
|
export type RequestQuery = z.infer<typeof RequestQuerySchema>;
|
|
11
16
|
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { DiagramsJobSchemaResponse } from '../../../models';
|
|
3
|
+
|
|
4
|
+
export namespace UpdateDiagramsJobFavoriteCommand {
|
|
5
|
+
export const RequestSchema = z.object({
|
|
6
|
+
isFavorite: z.boolean(),
|
|
7
|
+
});
|
|
8
|
+
export type Request = z.infer<typeof RequestSchema>;
|
|
9
|
+
|
|
10
|
+
export const RequestParamsSchema = z.object({
|
|
11
|
+
uuid: z.string().uuid(),
|
|
12
|
+
});
|
|
13
|
+
export type RequestParams = z.infer<typeof RequestParamsSchema>;
|
|
14
|
+
|
|
15
|
+
export const ResponseSchema = z.object({
|
|
16
|
+
data: DiagramsJobSchemaResponse,
|
|
17
|
+
});
|
|
18
|
+
export type Response = z.infer<typeof ResponseSchema>;
|
|
19
|
+
}
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
import { QueryBooleanSchema } from '../../../helpers';
|
|
3
|
+
import { JOB_SORT, TOOL_JOB_STATUS } from '../../../constants';
|
|
2
4
|
import { HtmlPageBuilderSessionSchema } from '../../../models';
|
|
3
5
|
|
|
4
6
|
export namespace FindHtmlPageBuilderSessionsCommand {
|
|
@@ -6,6 +8,9 @@ export namespace FindHtmlPageBuilderSessionsCommand {
|
|
|
6
8
|
limit: z.coerce.number().min(1).optional(),
|
|
7
9
|
offset: z.coerce.number().min(0).default(0).optional(),
|
|
8
10
|
title: z.string().optional(),
|
|
11
|
+
isFavorite: QueryBooleanSchema.optional(),
|
|
12
|
+
createdAtSortOrder: z.nativeEnum(JOB_SORT).optional().default(JOB_SORT.DESC),
|
|
13
|
+
status: z.nativeEnum(TOOL_JOB_STATUS).optional()
|
|
9
14
|
});
|
|
10
15
|
export type RequestQuery = z.infer<typeof RequestQuerySchema>;
|
|
11
16
|
|
|
@@ -6,3 +6,4 @@ export * from './find-html-page-builder-sessions.command';
|
|
|
6
6
|
export * from './update-html-page-builder-session-title.command';
|
|
7
7
|
export * from './delete-html-page-builder-session-by-uuid.command';
|
|
8
8
|
export * from './delete-all-html-page-builder-sessions.command';
|
|
9
|
+
export * from './update-html-page-builder-session-favorite.command';
|