@purpleschool/gptbot 0.12.70-stage-2 → 0.12.71
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/blog.ts +0 -4
- package/api/controllers/http/canvas-template.ts +1 -0
- package/api/controllers/http/category.ts +0 -4
- package/api/controllers/http/course.ts +0 -12
- package/api/controllers/http/index.ts +1 -0
- package/api/controllers/http/page.ts +0 -4
- package/api/controllers/http/palette.ts +6 -0
- package/api/controllers/http/prompt-category.ts +0 -4
- package/api/controllers/http/prompt-topic.ts +0 -4
- package/api/controllers/http/prompt.ts +0 -4
- package/api/controllers/http/question.ts +0 -4
- package/api/controllers/http/team-account.ts +0 -1
- package/api/routes.ts +5 -68
- package/build/api/controllers/http/blog.js +0 -3
- package/build/api/controllers/http/canvas-template.js +1 -0
- package/build/api/controllers/http/category.js +0 -3
- package/build/api/controllers/http/course.js +0 -9
- package/build/api/controllers/http/index.js +1 -0
- package/build/api/controllers/http/page.js +0 -3
- package/build/api/controllers/http/palette.js +8 -0
- package/build/api/controllers/http/prompt-category.js +0 -3
- package/build/api/controllers/http/prompt-topic.js +0 -3
- package/build/api/controllers/http/prompt.js +0 -3
- package/build/api/controllers/http/question.js +0 -3
- package/build/api/controllers/http/team-account.js +0 -1
- package/build/api/routes.js +5 -34
- package/build/commands/{canvas → ai-studio/canvas}/create-canvas.command.js +1 -1
- package/build/commands/{canvas → ai-studio/canvas}/delete-canvas.command.js +1 -1
- package/build/commands/{canvas → ai-studio/canvas}/find-canvas-by-uuid-with-relations.query.js +1 -1
- package/build/commands/{canvas → ai-studio/canvas}/find-canvas-by-uuid.query.js +1 -1
- package/build/commands/{canvas → ai-studio/canvas}/find-canvases-by-user.query.js +1 -1
- package/build/commands/{canvas → ai-studio/canvas}/run-canvas.command.js +1 -1
- package/build/commands/{canvas → ai-studio/canvas}/save-canvas.command.js +8 -4
- package/build/commands/{canvas → ai-studio/canvas}/update-canvas.command.js +1 -1
- package/build/commands/{canvas-edge → ai-studio/canvas-edge}/create-canvas-edge.command.js +2 -2
- package/build/commands/{canvas-edge → ai-studio/canvas-edge}/find-canvas-edge-by-source-and-target.query.js +1 -1
- package/build/commands/{canvas-edge → ai-studio/canvas-edge}/find-canvas-edges-by-canvas.query.js +1 -1
- package/build/commands/{canvas-node → ai-studio/canvas-node}/create-canvas-node.command.js +8 -4
- package/build/commands/{canvas-node → ai-studio/canvas-node}/delete-canvas-node.command.js +2 -2
- package/build/commands/{canvas-node → ai-studio/canvas-node}/find-canvas-node-by-uuid.query.js +2 -2
- package/build/commands/{canvas-node → ai-studio/canvas-node}/find-canvas-node-definitions-with-configs.query.js +1 -1
- package/build/commands/{canvas-node → ai-studio/canvas-node}/find-canvas-nodes-by-canvas.query.js +1 -1
- package/build/commands/{canvas-node → ai-studio/canvas-node}/update-canvas-node.command.js +13 -5
- package/build/commands/{canvas-template → ai-studio/canvas-template}/create-canvas-from-template.command.js +1 -1
- package/build/commands/{canvas-template → ai-studio/canvas-template}/create-canvas-template.command.js +6 -2
- package/build/commands/{canvas-template → ai-studio/canvas-template}/delete-canvas-template.command.js +3 -2
- package/build/commands/{canvas-template → ai-studio/canvas-template}/find-canvas-template-by-uuid.query.js +1 -1
- package/build/commands/{canvas-template → ai-studio/canvas-template}/find-canvas-templates.query.js +6 -1
- package/build/commands/ai-studio/canvas-template/generate-canvas-template-by-prompt.command.js +14 -0
- package/build/commands/{canvas-template → ai-studio/canvas-template}/index.js +2 -1
- package/build/commands/{canvas-template → ai-studio/canvas-template}/update-canvas-template.command.js +6 -2
- package/build/commands/ai-studio/canvas-tool/index.js +17 -0
- package/build/commands/ai-studio/canvas-tool/palette/generate-palette.command.js +20 -0
- package/build/commands/ai-studio/canvas-tool/palette/get-palette-price.command.js +17 -0
- package/build/commands/ai-studio/canvas-tool/palette/index.js +18 -0
- package/build/commands/ai-studio/index.js +21 -0
- package/build/commands/blog/create-post.command.js +0 -6
- package/build/commands/blog/index.js +0 -3
- package/build/commands/blog/update-post.command.js +0 -6
- package/build/commands/cabinet/get-user-statistics-by-month.command.js +13 -6
- package/build/commands/cabinet/get-user-statistics-overview.command.js +1 -5
- package/build/commands/category/create-category.command.js +0 -4
- package/build/commands/category/index.js +0 -3
- package/build/commands/category/update-category.command.js +0 -4
- package/build/commands/course/create-course.command.js +0 -5
- package/build/commands/course/index.js +0 -9
- package/build/commands/index.js +5 -4
- package/build/commands/page/create-page.command.js +0 -6
- package/build/commands/page/find-page.command.js +2 -10
- package/build/commands/page/index.js +0 -3
- package/build/commands/page/update-page.command.js +0 -5
- package/build/commands/prompt/create-prompt.command.js +0 -2
- package/build/commands/prompt/index.js +0 -3
- package/build/commands/prompt/update-prompt.command.js +0 -2
- package/build/commands/prompt-category/create-prompt-category.command.js +0 -3
- package/build/commands/prompt-category/index.js +0 -3
- package/build/commands/prompt-category/update-prompt-category.command.js +0 -3
- package/build/commands/prompt-topic/create-prompt-topic.command.js +0 -5
- package/build/commands/prompt-topic/index.js +0 -3
- package/build/commands/prompt-topic/update-prompt-topic.command.js +0 -5
- package/build/commands/question/create-question.command.js +0 -2
- package/build/commands/question/index.js +0 -3
- package/build/commands/question/update-question.command.js +0 -2
- package/build/commands/team-account/get-team-account-statistics-by-month.command.js +13 -6
- package/build/commands/team-account/get-team-account-statistics-overview.command.js +1 -5
- package/build/commands/team-account/index.js +0 -1
- package/build/commands/ui-notification/create-admin-broadcast-ui-notification.command.js +2 -9
- package/build/commands/unregistered-user/patch-locale.command.js +3 -3
- package/build/commands/user/get-me.command.js +1 -2
- package/build/commands/user/patch-locale.command.js +3 -3
- package/build/constants/cabinet/enums/index.js +0 -1
- package/build/constants/subscription/enums/index.js +0 -1
- package/build/constants/tool/enums/index.js +1 -0
- package/build/constants/tool/enums/job-request-origin.enum.js +8 -0
- package/build/constants/user/enums/index.js +1 -0
- package/build/constants/user/enums/locale.enum.js +8 -0
- package/build/models/canvas-node.schema.js +140 -37
- package/build/models/canvas-template.schema.js +21 -5
- package/build/models/index.js +0 -10
- package/build/models/ui-notification.schema.js +8 -13
- package/build/models/user.schema.js +2 -2
- package/commands/{canvas → ai-studio/canvas}/create-canvas.command.ts +1 -1
- package/commands/{canvas → ai-studio/canvas}/delete-canvas.command.ts +1 -1
- package/commands/{canvas → ai-studio/canvas}/find-canvas-by-uuid-with-relations.query.ts +1 -1
- package/commands/{canvas → ai-studio/canvas}/find-canvas-by-uuid.query.ts +1 -1
- package/commands/{canvas → ai-studio/canvas}/find-canvases-by-user.query.ts +1 -1
- package/commands/{canvas → ai-studio/canvas}/run-canvas.command.ts +1 -1
- package/commands/{canvas → ai-studio/canvas}/save-canvas.command.ts +13 -9
- package/commands/{canvas → ai-studio/canvas}/update-canvas.command.ts +1 -1
- package/commands/{canvas-edge → ai-studio/canvas-edge}/create-canvas-edge.command.ts +2 -2
- package/commands/{canvas-edge → ai-studio/canvas-edge}/find-canvas-edge-by-source-and-target.query.ts +1 -1
- package/commands/{canvas-edge → ai-studio/canvas-edge}/find-canvas-edges-by-canvas.query.ts +1 -1
- package/commands/ai-studio/canvas-node/create-canvas-node.command.ts +33 -0
- package/commands/{canvas-node → ai-studio/canvas-node}/delete-canvas-node.command.ts +2 -2
- package/commands/{canvas-node → ai-studio/canvas-node}/find-canvas-node-by-uuid.query.ts +2 -2
- package/commands/{canvas-node → ai-studio/canvas-node}/find-canvas-node-definitions-with-configs.query.ts +1 -1
- package/commands/{canvas-node → ai-studio/canvas-node}/find-canvas-nodes-by-canvas.query.ts +1 -1
- package/commands/ai-studio/canvas-node/update-canvas-node.command.ts +40 -0
- package/commands/{canvas-template → ai-studio/canvas-template}/create-canvas-from-template.command.ts +1 -1
- package/commands/{canvas-template → ai-studio/canvas-template}/create-canvas-template.command.ts +7 -2
- package/commands/{canvas-template → ai-studio/canvas-template}/delete-canvas-template.command.ts +3 -2
- package/commands/{canvas-template → ai-studio/canvas-template}/find-canvas-template-by-uuid.query.ts +1 -1
- package/commands/{canvas-template → ai-studio/canvas-template}/find-canvas-templates.query.ts +6 -1
- package/commands/ai-studio/canvas-template/generate-canvas-template-by-prompt.command.ts +16 -0
- package/commands/{canvas-template → ai-studio/canvas-template}/index.ts +2 -1
- package/commands/{canvas-template → ai-studio/canvas-template}/update-canvas-template.command.ts +11 -2
- package/commands/ai-studio/canvas-tool/index.ts +1 -0
- package/commands/ai-studio/canvas-tool/palette/generate-palette.command.ts +23 -0
- package/commands/ai-studio/canvas-tool/palette/get-palette-price.command.ts +17 -0
- package/commands/ai-studio/canvas-tool/palette/index.ts +2 -0
- package/commands/ai-studio/index.ts +5 -0
- package/commands/blog/create-post.command.ts +0 -6
- package/commands/blog/index.ts +0 -3
- package/commands/blog/update-post.command.ts +0 -6
- package/commands/cabinet/get-user-statistics-by-month.command.ts +14 -7
- package/commands/cabinet/get-user-statistics-overview.command.ts +2 -6
- package/commands/category/create-category.command.ts +0 -4
- package/commands/category/index.ts +0 -3
- package/commands/category/update-category.command.ts +0 -4
- package/commands/course/create-course.command.ts +0 -5
- package/commands/course/index.ts +0 -9
- package/commands/index.ts +5 -5
- package/commands/page/create-page.command.ts +0 -6
- package/commands/page/find-page.command.ts +2 -15
- package/commands/page/index.ts +0 -3
- package/commands/page/update-page.command.ts +0 -5
- package/commands/prompt/create-prompt.command.ts +0 -2
- package/commands/prompt/index.ts +0 -3
- package/commands/prompt/update-prompt.command.ts +0 -2
- package/commands/prompt-category/create-prompt-category.command.ts +0 -3
- package/commands/prompt-category/index.ts +0 -3
- package/commands/prompt-category/update-prompt-category.command.ts +0 -3
- package/commands/prompt-topic/create-prompt-topic.command.ts +0 -5
- package/commands/prompt-topic/index.ts +0 -3
- package/commands/prompt-topic/update-prompt-topic.command.ts +0 -5
- package/commands/question/create-question.command.ts +0 -2
- package/commands/question/index.ts +0 -3
- package/commands/question/update-question.command.ts +0 -2
- package/commands/team-account/get-team-account-statistics-by-month.command.ts +14 -7
- package/commands/team-account/get-team-account-statistics-overview.command.ts +2 -6
- package/commands/team-account/index.ts +0 -1
- package/commands/ui-notification/create-admin-broadcast-ui-notification.command.ts +2 -9
- package/commands/unregistered-user/patch-locale.command.ts +1 -1
- package/commands/user/get-me.command.ts +1 -2
- package/commands/user/patch-locale.command.ts +1 -1
- package/constants/cabinet/enums/index.ts +0 -1
- package/constants/subscription/enums/index.ts +0 -1
- package/constants/tool/enums/index.ts +1 -0
- package/constants/tool/enums/job-request-origin.enum.ts +4 -0
- package/constants/user/enums/index.ts +1 -0
- package/constants/user/enums/locale.enum.ts +4 -0
- package/models/canvas-node.schema.ts +167 -41
- package/models/canvas-template.schema.ts +28 -9
- package/models/index.ts +0 -10
- package/models/ui-notification.schema.ts +7 -14
- package/models/user.schema.ts +1 -1
- package/package.json +1 -2
- package/build/commands/blog/create-post-translation.command.js +0 -23
- package/build/commands/blog/get-all-post-translations.query.js +0 -14
- package/build/commands/blog/update-post-translation.command.js +0 -23
- package/build/commands/category/create-category-translation.command.js +0 -21
- package/build/commands/category/get-all-category-translations.query.js +0 -14
- package/build/commands/category/update-category-translation.command.js +0 -21
- package/build/commands/course/create-course-translation.command.js +0 -22
- package/build/commands/course/create-lesson-translation.command.js +0 -18
- package/build/commands/course/create-section-translation.command.js +0 -18
- package/build/commands/course/get-all-course-translations.query.js +0 -14
- package/build/commands/course/get-all-lesson-translations.query.js +0 -14
- package/build/commands/course/get-all-section-translations.query.js +0 -14
- package/build/commands/course/update-course-translation.command.js +0 -22
- package/build/commands/course/update-lesson-translation.command.js +0 -18
- package/build/commands/course/update-section-translation.command.js +0 -18
- package/build/commands/page/create-page-translation.command.js +0 -23
- package/build/commands/page/get-all-page-translations.query.js +0 -14
- package/build/commands/page/update-page-translation.command.js +0 -23
- package/build/commands/prompt/create-prompt-translation.command.js +0 -19
- package/build/commands/prompt/get-all-prompt-translations.query.js +0 -14
- package/build/commands/prompt/update-prompt-translation.command.js +0 -19
- package/build/commands/prompt-category/create-prompt-category-translation.command.js +0 -20
- package/build/commands/prompt-category/get-all-prompt-category-translations.query.js +0 -14
- package/build/commands/prompt-category/update-prompt-category-translation.command.js +0 -20
- package/build/commands/prompt-topic/create-prompt-topic-translation.command.js +0 -22
- package/build/commands/prompt-topic/get-all-prompt-topic-translations.query.js +0 -14
- package/build/commands/prompt-topic/update-prompt-topic-translation.command.js +0 -22
- package/build/commands/question/create-question-translation.command.js +0 -19
- package/build/commands/question/get-all-question-translations.query.js +0 -14
- package/build/commands/question/update-question-translation.command.js +0 -19
- package/build/commands/team-account/update-team-account-invite.command.js +0 -17
- package/build/constants/cabinet/enums/statistics-request-type.enum.js +0 -24
- package/build/constants/subscription/enums/subscription-balance-field.enum.js +0 -8
- package/build/models/category-translation.schema.js +0 -16
- package/build/models/course-translation.schema.js +0 -17
- package/build/models/lesson-translation.schema.js +0 -13
- package/build/models/page-translation.schema.js +0 -18
- package/build/models/post-translation.schema.js +0 -18
- package/build/models/prompt-category-translation.schema.js +0 -18
- package/build/models/prompt-topic-translation.schema.js +0 -20
- package/build/models/prompt-translation.schema.js +0 -14
- package/build/models/question-translation.schema.js +0 -14
- package/build/models/section-translation.schema.js +0 -13
- package/commands/blog/create-post-translation.command.ts +0 -28
- package/commands/blog/get-all-post-translations.query.ts +0 -16
- package/commands/blog/update-post-translation.command.ts +0 -28
- package/commands/canvas-node/create-canvas-node.command.ts +0 -25
- package/commands/canvas-node/update-canvas-node.command.ts +0 -26
- package/commands/category/create-category-translation.command.ts +0 -26
- package/commands/category/get-all-category-translations.query.ts +0 -16
- package/commands/category/update-category-translation.command.ts +0 -26
- package/commands/course/create-course-translation.command.ts +0 -27
- package/commands/course/create-lesson-translation.command.ts +0 -23
- package/commands/course/create-section-translation.command.ts +0 -23
- package/commands/course/get-all-course-translations.query.ts +0 -16
- package/commands/course/get-all-lesson-translations.query.ts +0 -16
- package/commands/course/get-all-section-translations.query.ts +0 -16
- package/commands/course/update-course-translation.command.ts +0 -27
- package/commands/course/update-lesson-translation.command.ts +0 -23
- package/commands/course/update-section-translation.command.ts +0 -23
- package/commands/page/create-page-translation.command.ts +0 -28
- package/commands/page/get-all-page-translations.query.ts +0 -16
- package/commands/page/update-page-translation.command.ts +0 -28
- package/commands/prompt/create-prompt-translation.command.ts +0 -24
- package/commands/prompt/get-all-prompt-translations.query.ts +0 -16
- package/commands/prompt/update-prompt-translation.command.ts +0 -24
- package/commands/prompt-category/create-prompt-category-translation.command.ts +0 -25
- package/commands/prompt-category/get-all-prompt-category-translations.query.ts +0 -16
- package/commands/prompt-category/update-prompt-category-translation.command.ts +0 -25
- package/commands/prompt-topic/create-prompt-topic-translation.command.ts +0 -27
- package/commands/prompt-topic/get-all-prompt-topic-translations.query.ts +0 -16
- package/commands/prompt-topic/update-prompt-topic-translation.command.ts +0 -27
- package/commands/question/create-question-translation.command.ts +0 -24
- package/commands/question/get-all-question-translations.query.ts +0 -16
- package/commands/question/update-question-translation.command.ts +0 -24
- package/commands/team-account/update-team-account-invite.command.ts +0 -22
- package/constants/cabinet/enums/statistics-request-type.enum.ts +0 -20
- package/constants/subscription/enums/subscription-balance-field.enum.ts +0 -4
- package/models/category-translation.schema.ts +0 -14
- package/models/course-translation.schema.ts +0 -15
- package/models/lesson-translation.schema.ts +0 -11
- package/models/page-translation.schema.ts +0 -16
- package/models/post-translation.schema.ts +0 -16
- package/models/prompt-category-translation.schema.ts +0 -13
- package/models/prompt-topic-translation.schema.ts +0 -15
- package/models/prompt-translation.schema.ts +0 -12
- package/models/question-translation.schema.ts +0 -12
- package/models/section-translation.schema.ts +0 -11
- /package/build/commands/{canvas → ai-studio/canvas}/index.js +0 -0
- /package/build/commands/{canvas-edge → ai-studio/canvas-edge}/delete-canvas-edge.command.js +0 -0
- /package/build/commands/{canvas-edge → ai-studio/canvas-edge}/index.js +0 -0
- /package/build/commands/{canvas-node → ai-studio/canvas-node}/index.js +0 -0
- /package/commands/{canvas → ai-studio/canvas}/index.ts +0 -0
- /package/commands/{canvas-edge → ai-studio/canvas-edge}/delete-canvas-edge.command.ts +0 -0
- /package/commands/{canvas-edge → ai-studio/canvas-edge}/index.ts +0 -0
- /package/commands/{canvas-node → ai-studio/canvas-node}/index.ts +0 -0
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.GetAllSectionTranslationsQuery = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
const models_1 = require("../../models");
|
|
6
|
-
var GetAllSectionTranslationsQuery;
|
|
7
|
-
(function (GetAllSectionTranslationsQuery) {
|
|
8
|
-
GetAllSectionTranslationsQuery.RequestParamSchema = zod_1.z.object({
|
|
9
|
-
uuid: zod_1.z.string().uuid(),
|
|
10
|
-
});
|
|
11
|
-
GetAllSectionTranslationsQuery.ResponseSchema = zod_1.z.object({
|
|
12
|
-
data: zod_1.z.array(models_1.SectionTranslationSchema),
|
|
13
|
-
});
|
|
14
|
-
})(GetAllSectionTranslationsQuery || (exports.GetAllSectionTranslationsQuery = GetAllSectionTranslationsQuery = {}));
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.UpdateCourseTranslationCommand = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
const models_1 = require("../../models");
|
|
6
|
-
var UpdateCourseTranslationCommand;
|
|
7
|
-
(function (UpdateCourseTranslationCommand) {
|
|
8
|
-
UpdateCourseTranslationCommand.RequestSchema = models_1.CourseTranslationSchema.pick({
|
|
9
|
-
title: true,
|
|
10
|
-
subtitle: true,
|
|
11
|
-
prerequisites: true,
|
|
12
|
-
description: true,
|
|
13
|
-
skills: true,
|
|
14
|
-
}).partial();
|
|
15
|
-
UpdateCourseTranslationCommand.RequestParamSchema = zod_1.z.object({
|
|
16
|
-
uuid: zod_1.z.string().uuid(),
|
|
17
|
-
translationUuid: zod_1.z.string().uuid(),
|
|
18
|
-
});
|
|
19
|
-
UpdateCourseTranslationCommand.ResponseSchema = zod_1.z.object({
|
|
20
|
-
data: models_1.CourseTranslationSchema,
|
|
21
|
-
});
|
|
22
|
-
})(UpdateCourseTranslationCommand || (exports.UpdateCourseTranslationCommand = UpdateCourseTranslationCommand = {}));
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.UpdateLessonTranslationCommand = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
const models_1 = require("../../models");
|
|
6
|
-
var UpdateLessonTranslationCommand;
|
|
7
|
-
(function (UpdateLessonTranslationCommand) {
|
|
8
|
-
UpdateLessonTranslationCommand.RequestSchema = models_1.LessonTranslationSchema.pick({
|
|
9
|
-
title: true,
|
|
10
|
-
}).partial();
|
|
11
|
-
UpdateLessonTranslationCommand.RequestParamSchema = zod_1.z.object({
|
|
12
|
-
uuid: zod_1.z.string().uuid(),
|
|
13
|
-
translationUuid: zod_1.z.string().uuid(),
|
|
14
|
-
});
|
|
15
|
-
UpdateLessonTranslationCommand.ResponseSchema = zod_1.z.object({
|
|
16
|
-
data: models_1.LessonTranslationSchema,
|
|
17
|
-
});
|
|
18
|
-
})(UpdateLessonTranslationCommand || (exports.UpdateLessonTranslationCommand = UpdateLessonTranslationCommand = {}));
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.UpdateSectionTranslationCommand = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
const models_1 = require("../../models");
|
|
6
|
-
var UpdateSectionTranslationCommand;
|
|
7
|
-
(function (UpdateSectionTranslationCommand) {
|
|
8
|
-
UpdateSectionTranslationCommand.RequestSchema = models_1.SectionTranslationSchema.pick({
|
|
9
|
-
title: true,
|
|
10
|
-
}).partial();
|
|
11
|
-
UpdateSectionTranslationCommand.RequestParamSchema = zod_1.z.object({
|
|
12
|
-
uuid: zod_1.z.string().uuid(),
|
|
13
|
-
translationUuid: zod_1.z.string().uuid(),
|
|
14
|
-
});
|
|
15
|
-
UpdateSectionTranslationCommand.ResponseSchema = zod_1.z.object({
|
|
16
|
-
data: models_1.SectionTranslationSchema,
|
|
17
|
-
});
|
|
18
|
-
})(UpdateSectionTranslationCommand || (exports.UpdateSectionTranslationCommand = UpdateSectionTranslationCommand = {}));
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CreatePageTranslationCommand = void 0;
|
|
4
|
-
const models_1 = require("../../models");
|
|
5
|
-
const zod_1 = require("zod");
|
|
6
|
-
var CreatePageTranslationCommand;
|
|
7
|
-
(function (CreatePageTranslationCommand) {
|
|
8
|
-
CreatePageTranslationCommand.RequestSchema = models_1.PageTranslationSchema.pick({
|
|
9
|
-
metaTitle: true,
|
|
10
|
-
metaDescription: true,
|
|
11
|
-
title: true,
|
|
12
|
-
subTitle: true,
|
|
13
|
-
seoTextMd: true,
|
|
14
|
-
toolTitle: true,
|
|
15
|
-
locale: true,
|
|
16
|
-
});
|
|
17
|
-
CreatePageTranslationCommand.RequestParamSchema = zod_1.z.object({
|
|
18
|
-
uuid: zod_1.z.string().uuid(),
|
|
19
|
-
});
|
|
20
|
-
CreatePageTranslationCommand.ResponseSchema = zod_1.z.object({
|
|
21
|
-
data: models_1.PageTranslationSchema,
|
|
22
|
-
});
|
|
23
|
-
})(CreatePageTranslationCommand || (exports.CreatePageTranslationCommand = CreatePageTranslationCommand = {}));
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.GetAllPageTranslationsQuery = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
const models_1 = require("../../models");
|
|
6
|
-
var GetAllPageTranslationsQuery;
|
|
7
|
-
(function (GetAllPageTranslationsQuery) {
|
|
8
|
-
GetAllPageTranslationsQuery.RequestParamSchema = zod_1.z.object({
|
|
9
|
-
uuid: zod_1.z.string().uuid(),
|
|
10
|
-
});
|
|
11
|
-
GetAllPageTranslationsQuery.ResponseSchema = zod_1.z.object({
|
|
12
|
-
data: zod_1.z.array(models_1.PageTranslationSchema),
|
|
13
|
-
});
|
|
14
|
-
})(GetAllPageTranslationsQuery || (exports.GetAllPageTranslationsQuery = GetAllPageTranslationsQuery = {}));
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.UpdatePageTranslationCommand = void 0;
|
|
4
|
-
const models_1 = require("../../models");
|
|
5
|
-
const zod_1 = require("zod");
|
|
6
|
-
var UpdatePageTranslationCommand;
|
|
7
|
-
(function (UpdatePageTranslationCommand) {
|
|
8
|
-
UpdatePageTranslationCommand.RequestSchema = models_1.PageTranslationSchema.pick({
|
|
9
|
-
metaTitle: true,
|
|
10
|
-
metaDescription: true,
|
|
11
|
-
title: true,
|
|
12
|
-
subTitle: true,
|
|
13
|
-
seoTextMd: true,
|
|
14
|
-
toolTitle: true,
|
|
15
|
-
}).partial();
|
|
16
|
-
UpdatePageTranslationCommand.RequestParamSchema = zod_1.z.object({
|
|
17
|
-
uuid: zod_1.z.string().uuid(),
|
|
18
|
-
translationUuid: zod_1.z.string().uuid(),
|
|
19
|
-
});
|
|
20
|
-
UpdatePageTranslationCommand.ResponseSchema = zod_1.z.object({
|
|
21
|
-
data: models_1.PageTranslationSchema,
|
|
22
|
-
});
|
|
23
|
-
})(UpdatePageTranslationCommand || (exports.UpdatePageTranslationCommand = UpdatePageTranslationCommand = {}));
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CreatePromptTranslationCommand = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
const models_1 = require("../../models");
|
|
6
|
-
var CreatePromptTranslationCommand;
|
|
7
|
-
(function (CreatePromptTranslationCommand) {
|
|
8
|
-
CreatePromptTranslationCommand.RequestSchema = models_1.PromptTranslationSchema.pick({
|
|
9
|
-
title: true,
|
|
10
|
-
content: true,
|
|
11
|
-
locale: true,
|
|
12
|
-
});
|
|
13
|
-
CreatePromptTranslationCommand.RequestParamSchema = zod_1.z.object({
|
|
14
|
-
uuid: zod_1.z.string().uuid(),
|
|
15
|
-
});
|
|
16
|
-
CreatePromptTranslationCommand.ResponseSchema = zod_1.z.object({
|
|
17
|
-
data: models_1.PromptTranslationSchema,
|
|
18
|
-
});
|
|
19
|
-
})(CreatePromptTranslationCommand || (exports.CreatePromptTranslationCommand = CreatePromptTranslationCommand = {}));
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.GetAllPromptTranslationsQuery = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
const models_1 = require("../../models");
|
|
6
|
-
var GetAllPromptTranslationsQuery;
|
|
7
|
-
(function (GetAllPromptTranslationsQuery) {
|
|
8
|
-
GetAllPromptTranslationsQuery.RequestParamSchema = zod_1.z.object({
|
|
9
|
-
uuid: zod_1.z.string().uuid(),
|
|
10
|
-
});
|
|
11
|
-
GetAllPromptTranslationsQuery.ResponseSchema = zod_1.z.object({
|
|
12
|
-
data: zod_1.z.array(models_1.PromptTranslationSchema),
|
|
13
|
-
});
|
|
14
|
-
})(GetAllPromptTranslationsQuery || (exports.GetAllPromptTranslationsQuery = GetAllPromptTranslationsQuery = {}));
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.UpdatePromptTranslationCommand = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
const models_1 = require("../../models");
|
|
6
|
-
var UpdatePromptTranslationCommand;
|
|
7
|
-
(function (UpdatePromptTranslationCommand) {
|
|
8
|
-
UpdatePromptTranslationCommand.RequestSchema = models_1.PromptTranslationSchema.pick({
|
|
9
|
-
title: true,
|
|
10
|
-
content: true,
|
|
11
|
-
}).partial();
|
|
12
|
-
UpdatePromptTranslationCommand.RequestParamSchema = zod_1.z.object({
|
|
13
|
-
uuid: zod_1.z.string().uuid(),
|
|
14
|
-
translationUuid: zod_1.z.string().uuid(),
|
|
15
|
-
});
|
|
16
|
-
UpdatePromptTranslationCommand.ResponseSchema = zod_1.z.object({
|
|
17
|
-
data: models_1.PromptTranslationSchema,
|
|
18
|
-
});
|
|
19
|
-
})(UpdatePromptTranslationCommand || (exports.UpdatePromptTranslationCommand = UpdatePromptTranslationCommand = {}));
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CreatePromptCategoryTranslationCommand = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
const models_1 = require("../../models");
|
|
6
|
-
var CreatePromptCategoryTranslationCommand;
|
|
7
|
-
(function (CreatePromptCategoryTranslationCommand) {
|
|
8
|
-
CreatePromptCategoryTranslationCommand.RequestSchema = models_1.PromptCategoryTranslationSchema.pick({
|
|
9
|
-
title: true,
|
|
10
|
-
metaTitle: true,
|
|
11
|
-
metaDescription: true,
|
|
12
|
-
locale: true,
|
|
13
|
-
});
|
|
14
|
-
CreatePromptCategoryTranslationCommand.RequestParamSchema = zod_1.z.object({
|
|
15
|
-
uuid: zod_1.z.string().uuid(),
|
|
16
|
-
});
|
|
17
|
-
CreatePromptCategoryTranslationCommand.ResponseSchema = zod_1.z.object({
|
|
18
|
-
data: models_1.PromptCategoryTranslationSchema,
|
|
19
|
-
});
|
|
20
|
-
})(CreatePromptCategoryTranslationCommand || (exports.CreatePromptCategoryTranslationCommand = CreatePromptCategoryTranslationCommand = {}));
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.GetAllPromptCategoryTranslationsQuery = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
const models_1 = require("../../models");
|
|
6
|
-
var GetAllPromptCategoryTranslationsQuery;
|
|
7
|
-
(function (GetAllPromptCategoryTranslationsQuery) {
|
|
8
|
-
GetAllPromptCategoryTranslationsQuery.RequestParamSchema = zod_1.z.object({
|
|
9
|
-
uuid: zod_1.z.string().uuid(),
|
|
10
|
-
});
|
|
11
|
-
GetAllPromptCategoryTranslationsQuery.ResponseSchema = zod_1.z.object({
|
|
12
|
-
data: zod_1.z.array(models_1.PromptCategoryTranslationSchema),
|
|
13
|
-
});
|
|
14
|
-
})(GetAllPromptCategoryTranslationsQuery || (exports.GetAllPromptCategoryTranslationsQuery = GetAllPromptCategoryTranslationsQuery = {}));
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.UpdatePromptCategoryTranslationCommand = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
const models_1 = require("../../models");
|
|
6
|
-
var UpdatePromptCategoryTranslationCommand;
|
|
7
|
-
(function (UpdatePromptCategoryTranslationCommand) {
|
|
8
|
-
UpdatePromptCategoryTranslationCommand.RequestSchema = models_1.PromptCategoryTranslationSchema.pick({
|
|
9
|
-
title: true,
|
|
10
|
-
metaTitle: true,
|
|
11
|
-
metaDescription: true,
|
|
12
|
-
}).partial();
|
|
13
|
-
UpdatePromptCategoryTranslationCommand.RequestParamSchema = zod_1.z.object({
|
|
14
|
-
uuid: zod_1.z.string().uuid(),
|
|
15
|
-
translationUuid: zod_1.z.string().uuid(),
|
|
16
|
-
});
|
|
17
|
-
UpdatePromptCategoryTranslationCommand.ResponseSchema = zod_1.z.object({
|
|
18
|
-
data: models_1.PromptCategoryTranslationSchema,
|
|
19
|
-
});
|
|
20
|
-
})(UpdatePromptCategoryTranslationCommand || (exports.UpdatePromptCategoryTranslationCommand = UpdatePromptCategoryTranslationCommand = {}));
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CreatePromptTopicTranslationCommand = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
const models_1 = require("../../models");
|
|
6
|
-
var CreatePromptTopicTranslationCommand;
|
|
7
|
-
(function (CreatePromptTopicTranslationCommand) {
|
|
8
|
-
CreatePromptTopicTranslationCommand.RequestSchema = models_1.PromptTopicTranslationSchema.pick({
|
|
9
|
-
title: true,
|
|
10
|
-
content: true,
|
|
11
|
-
metaTitle: true,
|
|
12
|
-
metaDescription: true,
|
|
13
|
-
seoText: true,
|
|
14
|
-
locale: true,
|
|
15
|
-
});
|
|
16
|
-
CreatePromptTopicTranslationCommand.RequestParamSchema = zod_1.z.object({
|
|
17
|
-
uuid: zod_1.z.string().uuid(),
|
|
18
|
-
});
|
|
19
|
-
CreatePromptTopicTranslationCommand.ResponseSchema = zod_1.z.object({
|
|
20
|
-
data: models_1.PromptTopicTranslationSchema,
|
|
21
|
-
});
|
|
22
|
-
})(CreatePromptTopicTranslationCommand || (exports.CreatePromptTopicTranslationCommand = CreatePromptTopicTranslationCommand = {}));
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.GetAllPromptTopicTranslationsQuery = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
const models_1 = require("../../models");
|
|
6
|
-
var GetAllPromptTopicTranslationsQuery;
|
|
7
|
-
(function (GetAllPromptTopicTranslationsQuery) {
|
|
8
|
-
GetAllPromptTopicTranslationsQuery.RequestParamSchema = zod_1.z.object({
|
|
9
|
-
uuid: zod_1.z.string().uuid(),
|
|
10
|
-
});
|
|
11
|
-
GetAllPromptTopicTranslationsQuery.ResponseSchema = zod_1.z.object({
|
|
12
|
-
data: zod_1.z.array(models_1.PromptTopicTranslationSchema),
|
|
13
|
-
});
|
|
14
|
-
})(GetAllPromptTopicTranslationsQuery || (exports.GetAllPromptTopicTranslationsQuery = GetAllPromptTopicTranslationsQuery = {}));
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.UpdatePromptTopicTranslationCommand = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
const models_1 = require("../../models");
|
|
6
|
-
var UpdatePromptTopicTranslationCommand;
|
|
7
|
-
(function (UpdatePromptTopicTranslationCommand) {
|
|
8
|
-
UpdatePromptTopicTranslationCommand.RequestSchema = models_1.PromptTopicTranslationSchema.pick({
|
|
9
|
-
title: true,
|
|
10
|
-
content: true,
|
|
11
|
-
metaTitle: true,
|
|
12
|
-
metaDescription: true,
|
|
13
|
-
seoText: true,
|
|
14
|
-
}).partial();
|
|
15
|
-
UpdatePromptTopicTranslationCommand.RequestParamSchema = zod_1.z.object({
|
|
16
|
-
uuid: zod_1.z.string().uuid(),
|
|
17
|
-
translationUuid: zod_1.z.string().uuid(),
|
|
18
|
-
});
|
|
19
|
-
UpdatePromptTopicTranslationCommand.ResponseSchema = zod_1.z.object({
|
|
20
|
-
data: models_1.PromptTopicTranslationSchema,
|
|
21
|
-
});
|
|
22
|
-
})(UpdatePromptTopicTranslationCommand || (exports.UpdatePromptTopicTranslationCommand = UpdatePromptTopicTranslationCommand = {}));
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CreateQuestionTranslationCommand = void 0;
|
|
4
|
-
const models_1 = require("../../models");
|
|
5
|
-
const zod_1 = require("zod");
|
|
6
|
-
var CreateQuestionTranslationCommand;
|
|
7
|
-
(function (CreateQuestionTranslationCommand) {
|
|
8
|
-
CreateQuestionTranslationCommand.RequestSchema = models_1.QuestionTranslationSchema.pick({
|
|
9
|
-
question: true,
|
|
10
|
-
answer: true,
|
|
11
|
-
locale: true,
|
|
12
|
-
});
|
|
13
|
-
CreateQuestionTranslationCommand.RequestParamSchema = zod_1.z.object({
|
|
14
|
-
uuid: zod_1.z.string().uuid(),
|
|
15
|
-
});
|
|
16
|
-
CreateQuestionTranslationCommand.ResponseSchema = zod_1.z.object({
|
|
17
|
-
data: models_1.QuestionTranslationSchema,
|
|
18
|
-
});
|
|
19
|
-
})(CreateQuestionTranslationCommand || (exports.CreateQuestionTranslationCommand = CreateQuestionTranslationCommand = {}));
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.GetAllQuestionTranslationsQuery = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
const models_1 = require("../../models");
|
|
6
|
-
var GetAllQuestionTranslationsQuery;
|
|
7
|
-
(function (GetAllQuestionTranslationsQuery) {
|
|
8
|
-
GetAllQuestionTranslationsQuery.RequestParamSchema = zod_1.z.object({
|
|
9
|
-
uuid: zod_1.z.string().uuid(),
|
|
10
|
-
});
|
|
11
|
-
GetAllQuestionTranslationsQuery.ResponseSchema = zod_1.z.object({
|
|
12
|
-
data: zod_1.z.array(models_1.QuestionTranslationSchema),
|
|
13
|
-
});
|
|
14
|
-
})(GetAllQuestionTranslationsQuery || (exports.GetAllQuestionTranslationsQuery = GetAllQuestionTranslationsQuery = {}));
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.UpdateQuestionTranslationCommand = void 0;
|
|
4
|
-
const models_1 = require("../../models");
|
|
5
|
-
const zod_1 = require("zod");
|
|
6
|
-
var UpdateQuestionTranslationCommand;
|
|
7
|
-
(function (UpdateQuestionTranslationCommand) {
|
|
8
|
-
UpdateQuestionTranslationCommand.RequestSchema = models_1.QuestionTranslationSchema.pick({
|
|
9
|
-
question: true,
|
|
10
|
-
answer: true,
|
|
11
|
-
}).partial();
|
|
12
|
-
UpdateQuestionTranslationCommand.RequestParamSchema = zod_1.z.object({
|
|
13
|
-
uuid: zod_1.z.string().uuid(),
|
|
14
|
-
translationUuid: zod_1.z.string().uuid(),
|
|
15
|
-
});
|
|
16
|
-
UpdateQuestionTranslationCommand.ResponseSchema = zod_1.z.object({
|
|
17
|
-
data: models_1.QuestionTranslationSchema,
|
|
18
|
-
});
|
|
19
|
-
})(UpdateQuestionTranslationCommand || (exports.UpdateQuestionTranslationCommand = UpdateQuestionTranslationCommand = {}));
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.UpdateTeamAccountInviteCommand = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
const models_1 = require("../../models");
|
|
6
|
-
var UpdateTeamAccountInviteCommand;
|
|
7
|
-
(function (UpdateTeamAccountInviteCommand) {
|
|
8
|
-
UpdateTeamAccountInviteCommand.RequestParam = zod_1.z.object({
|
|
9
|
-
uuid: zod_1.z.string().uuid(),
|
|
10
|
-
});
|
|
11
|
-
UpdateTeamAccountInviteCommand.RequestSchema = zod_1.z.object({
|
|
12
|
-
limit: zod_1.z.number().int().positive().nullable(),
|
|
13
|
-
});
|
|
14
|
-
UpdateTeamAccountInviteCommand.ResponseSchema = zod_1.z.object({
|
|
15
|
-
data: models_1.TeamAccountInviteResponseSchema,
|
|
16
|
-
});
|
|
17
|
-
})(UpdateTeamAccountInviteCommand || (exports.UpdateTeamAccountInviteCommand = UpdateTeamAccountInviteCommand = {}));
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.STATISTICS_REQUEST_TYPE = void 0;
|
|
4
|
-
var STATISTICS_REQUEST_TYPE;
|
|
5
|
-
(function (STATISTICS_REQUEST_TYPE) {
|
|
6
|
-
STATISTICS_REQUEST_TYPE["IMAGE"] = "IMAGE";
|
|
7
|
-
STATISTICS_REQUEST_TYPE["VIDEO"] = "VIDEO";
|
|
8
|
-
STATISTICS_REQUEST_TYPE["PRESENTATION"] = "PRESENTATION";
|
|
9
|
-
STATISTICS_REQUEST_TYPE["TEXT"] = "TEXT";
|
|
10
|
-
STATISTICS_REQUEST_TYPE["AUDIO"] = "AUDIO";
|
|
11
|
-
STATISTICS_REQUEST_TYPE["PARAPHRASE"] = "PARAPHRASE";
|
|
12
|
-
STATISTICS_REQUEST_TYPE["WRITER"] = "WRITER";
|
|
13
|
-
STATISTICS_REQUEST_TYPE["PRESENTATION_AI_ACTION"] = "PRESENTATION_AI_ACTION";
|
|
14
|
-
STATISTICS_REQUEST_TYPE["WRITER_ACTION"] = "WRITER_ACTION";
|
|
15
|
-
STATISTICS_REQUEST_TYPE["VIDEO_EDITOR"] = "VIDEO_EDITOR";
|
|
16
|
-
STATISTICS_REQUEST_TYPE["MUSIC"] = "MUSIC";
|
|
17
|
-
STATISTICS_REQUEST_TYPE["MUSIC_ACTION"] = "MUSIC_ACTION";
|
|
18
|
-
STATISTICS_REQUEST_TYPE["INTERIOR_DESIGN"] = "INTERIOR_DESIGN";
|
|
19
|
-
STATISTICS_REQUEST_TYPE["MARKETPLACE_CARD"] = "MARKETPLACE_CARD";
|
|
20
|
-
STATISTICS_REQUEST_TYPE["SOLVING_EDU_TASK"] = "SOLVING_EDU_TASK";
|
|
21
|
-
STATISTICS_REQUEST_TYPE["SPELL_CORRECTOR"] = "SPELL_CORRECTOR";
|
|
22
|
-
STATISTICS_REQUEST_TYPE["DIAGRAMS"] = "DIAGRAMS";
|
|
23
|
-
STATISTICS_REQUEST_TYPE["HTML_PAGE_BUILDER"] = "HTML_PAGE_BUILDER";
|
|
24
|
-
})(STATISTICS_REQUEST_TYPE || (exports.STATISTICS_REQUEST_TYPE = STATISTICS_REQUEST_TYPE = {}));
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SUBSCRIPTION_BALANCE_FIELD = void 0;
|
|
4
|
-
var SUBSCRIPTION_BALANCE_FIELD;
|
|
5
|
-
(function (SUBSCRIPTION_BALANCE_FIELD) {
|
|
6
|
-
SUBSCRIPTION_BALANCE_FIELD["TOKEN_BALANCE"] = "tokenBalance";
|
|
7
|
-
SUBSCRIPTION_BALANCE_FIELD["CARRIED_OVER_TOKEN_BALANCE"] = "carriedOverTokenBalance";
|
|
8
|
-
})(SUBSCRIPTION_BALANCE_FIELD || (exports.SUBSCRIPTION_BALANCE_FIELD = SUBSCRIPTION_BALANCE_FIELD = {}));
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CategoryTranslationSchema = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
const rugpt_lib_common_1 = require("@purpleschool/rugpt-lib-common");
|
|
6
|
-
exports.CategoryTranslationSchema = zod_1.z.object({
|
|
7
|
-
uuid: zod_1.z.string().uuid(),
|
|
8
|
-
categoryId: zod_1.z.string().uuid(),
|
|
9
|
-
locale: zod_1.z.nativeEnum(rugpt_lib_common_1.LOCALE),
|
|
10
|
-
name: zod_1.z.string().min(3).max(16384),
|
|
11
|
-
prompt: zod_1.z.nullable(zod_1.z.string().min(3).max(16384)),
|
|
12
|
-
placeholder: zod_1.z.nullable(zod_1.z.string()),
|
|
13
|
-
seoName: zod_1.z.string().min(3).max(16384),
|
|
14
|
-
createdAt: zod_1.z.date(),
|
|
15
|
-
updatedAt: zod_1.z.date(),
|
|
16
|
-
});
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CourseTranslationSchema = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
const rugpt_lib_common_1 = require("@purpleschool/rugpt-lib-common");
|
|
6
|
-
exports.CourseTranslationSchema = zod_1.z.object({
|
|
7
|
-
uuid: zod_1.z.string().uuid(),
|
|
8
|
-
courseId: zod_1.z.string().uuid(),
|
|
9
|
-
locale: zod_1.z.nativeEnum(rugpt_lib_common_1.LOCALE),
|
|
10
|
-
title: zod_1.z.string(),
|
|
11
|
-
subtitle: zod_1.z.string(),
|
|
12
|
-
prerequisites: zod_1.z.string(),
|
|
13
|
-
description: zod_1.z.string(),
|
|
14
|
-
skills: zod_1.z.array(zod_1.z.string()),
|
|
15
|
-
createdAt: zod_1.z.date(),
|
|
16
|
-
updatedAt: zod_1.z.date(),
|
|
17
|
-
});
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.LessonTranslationSchema = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
const rugpt_lib_common_1 = require("@purpleschool/rugpt-lib-common");
|
|
6
|
-
exports.LessonTranslationSchema = zod_1.z.object({
|
|
7
|
-
uuid: zod_1.z.string().uuid(),
|
|
8
|
-
lessonId: zod_1.z.string().uuid(),
|
|
9
|
-
locale: zod_1.z.nativeEnum(rugpt_lib_common_1.LOCALE),
|
|
10
|
-
title: zod_1.z.string(),
|
|
11
|
-
createdAt: zod_1.z.date(),
|
|
12
|
-
updatedAt: zod_1.z.date(),
|
|
13
|
-
});
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PageTranslationSchema = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
const rugpt_lib_common_1 = require("@purpleschool/rugpt-lib-common");
|
|
6
|
-
exports.PageTranslationSchema = zod_1.z.object({
|
|
7
|
-
uuid: zod_1.z.string().uuid(),
|
|
8
|
-
pageId: zod_1.z.string().uuid(),
|
|
9
|
-
locale: zod_1.z.nativeEnum(rugpt_lib_common_1.LOCALE),
|
|
10
|
-
metaTitle: zod_1.z.string().min(3).max(16384),
|
|
11
|
-
metaDescription: zod_1.z.string().min(3).max(16384),
|
|
12
|
-
title: zod_1.z.string().min(3).max(16384),
|
|
13
|
-
subTitle: zod_1.z.string().min(3).max(16384),
|
|
14
|
-
seoTextMd: zod_1.z.string().min(3).max(16384),
|
|
15
|
-
toolTitle: zod_1.z.string().nullable(),
|
|
16
|
-
createdAt: zod_1.z.date(),
|
|
17
|
-
updatedAt: zod_1.z.date(),
|
|
18
|
-
});
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PostTranslationSchema = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
const rugpt_lib_common_1 = require("@purpleschool/rugpt-lib-common");
|
|
6
|
-
exports.PostTranslationSchema = zod_1.z.object({
|
|
7
|
-
uuid: zod_1.z.string().uuid(),
|
|
8
|
-
postId: zod_1.z.string().uuid(),
|
|
9
|
-
locale: zod_1.z.nativeEnum(rugpt_lib_common_1.LOCALE),
|
|
10
|
-
title: zod_1.z.string(),
|
|
11
|
-
content: zod_1.z.string(),
|
|
12
|
-
author: zod_1.z.string(),
|
|
13
|
-
contentPreview: zod_1.z.nullable(zod_1.z.string()),
|
|
14
|
-
metaTitle: zod_1.z.nullable(zod_1.z.string()),
|
|
15
|
-
metaDescription: zod_1.z.nullable(zod_1.z.string()),
|
|
16
|
-
createdAt: zod_1.z.date(),
|
|
17
|
-
updatedAt: zod_1.z.date(),
|
|
18
|
-
});
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.PromptCategoryTranslationSchema = void 0;
|
|
7
|
-
const zod_1 = __importDefault(require("zod"));
|
|
8
|
-
const rugpt_lib_common_1 = require("@purpleschool/rugpt-lib-common");
|
|
9
|
-
exports.PromptCategoryTranslationSchema = zod_1.default.object({
|
|
10
|
-
uuid: zod_1.default.string().uuid(),
|
|
11
|
-
promptCategoryId: zod_1.default.string().uuid(),
|
|
12
|
-
locale: zod_1.default.nativeEnum(rugpt_lib_common_1.LOCALE),
|
|
13
|
-
title: zod_1.default.string(),
|
|
14
|
-
metaTitle: zod_1.default.string().nullable(),
|
|
15
|
-
metaDescription: zod_1.default.string().nullable(),
|
|
16
|
-
createdAt: zod_1.default.date(),
|
|
17
|
-
updatedAt: zod_1.default.date(),
|
|
18
|
-
});
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.PromptTopicTranslationSchema = void 0;
|
|
7
|
-
const zod_1 = __importDefault(require("zod"));
|
|
8
|
-
const rugpt_lib_common_1 = require("@purpleschool/rugpt-lib-common");
|
|
9
|
-
exports.PromptTopicTranslationSchema = zod_1.default.object({
|
|
10
|
-
uuid: zod_1.default.string().uuid(),
|
|
11
|
-
promptTopicId: zod_1.default.string().uuid(),
|
|
12
|
-
locale: zod_1.default.nativeEnum(rugpt_lib_common_1.LOCALE),
|
|
13
|
-
title: zod_1.default.string(),
|
|
14
|
-
content: zod_1.default.string(),
|
|
15
|
-
metaTitle: zod_1.default.string().nullable(),
|
|
16
|
-
metaDescription: zod_1.default.string().nullable(),
|
|
17
|
-
seoText: zod_1.default.string().nullable(),
|
|
18
|
-
createdAt: zod_1.default.date(),
|
|
19
|
-
updatedAt: zod_1.default.date(),
|
|
20
|
-
});
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PromptTranslationSchema = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
const rugpt_lib_common_1 = require("@purpleschool/rugpt-lib-common");
|
|
6
|
-
exports.PromptTranslationSchema = zod_1.z.object({
|
|
7
|
-
uuid: zod_1.z.string().uuid(),
|
|
8
|
-
promptId: zod_1.z.string().uuid(),
|
|
9
|
-
locale: zod_1.z.nativeEnum(rugpt_lib_common_1.LOCALE),
|
|
10
|
-
title: zod_1.z.string().nullable(),
|
|
11
|
-
content: zod_1.z.string(),
|
|
12
|
-
createdAt: zod_1.z.date(),
|
|
13
|
-
updatedAt: zod_1.z.date(),
|
|
14
|
-
});
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.QuestionTranslationSchema = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
const rugpt_lib_common_1 = require("@purpleschool/rugpt-lib-common");
|
|
6
|
-
exports.QuestionTranslationSchema = zod_1.z.object({
|
|
7
|
-
uuid: zod_1.z.string().uuid(),
|
|
8
|
-
questionId: zod_1.z.string().uuid(),
|
|
9
|
-
locale: zod_1.z.nativeEnum(rugpt_lib_common_1.LOCALE),
|
|
10
|
-
question: zod_1.z.string().min(3).max(16384),
|
|
11
|
-
answer: zod_1.z.string().min(3).max(16384),
|
|
12
|
-
createdAt: zod_1.z.date(),
|
|
13
|
-
updatedAt: zod_1.z.date(),
|
|
14
|
-
});
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SectionTranslationSchema = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
const rugpt_lib_common_1 = require("@purpleschool/rugpt-lib-common");
|
|
6
|
-
exports.SectionTranslationSchema = zod_1.z.object({
|
|
7
|
-
uuid: zod_1.z.string().uuid(),
|
|
8
|
-
sectionId: zod_1.z.string().uuid(),
|
|
9
|
-
locale: zod_1.z.nativeEnum(rugpt_lib_common_1.LOCALE),
|
|
10
|
-
title: zod_1.z.string(),
|
|
11
|
-
createdAt: zod_1.z.date(),
|
|
12
|
-
updatedAt: zod_1.z.date(),
|
|
13
|
-
});
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { PostTranslationSchema } from '../../models';
|
|
2
|
-
import { z } from 'zod';
|
|
3
|
-
|
|
4
|
-
export namespace CreatePostTranslationCommand {
|
|
5
|
-
export const RequestSchema = PostTranslationSchema.pick({
|
|
6
|
-
title: true,
|
|
7
|
-
content: true,
|
|
8
|
-
author: true,
|
|
9
|
-
contentPreview: true,
|
|
10
|
-
metaTitle: true,
|
|
11
|
-
metaDescription: true,
|
|
12
|
-
locale: true,
|
|
13
|
-
});
|
|
14
|
-
|
|
15
|
-
export type Request = z.infer<typeof RequestSchema>;
|
|
16
|
-
|
|
17
|
-
export const RequestParamSchema = z.object({
|
|
18
|
-
uuid: z.string().uuid(),
|
|
19
|
-
});
|
|
20
|
-
|
|
21
|
-
export type RequestParam = z.infer<typeof RequestParamSchema>;
|
|
22
|
-
|
|
23
|
-
export const ResponseSchema = z.object({
|
|
24
|
-
data: PostTranslationSchema,
|
|
25
|
-
});
|
|
26
|
-
|
|
27
|
-
export type Response = z.infer<typeof ResponseSchema>;
|
|
28
|
-
}
|