@purpleschool/gptbot 0.12.40 → 0.12.41-stage-2
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 +4 -0
- package/api/controllers/http/category.ts +4 -0
- package/api/controllers/http/chat-private.ts +0 -1
- package/api/controllers/http/chat-public.ts +0 -1
- package/api/controllers/http/course.ts +12 -0
- package/api/controllers/http/index.ts +0 -1
- package/api/controllers/http/page.ts +4 -0
- package/api/controllers/http/prompt-category.ts +4 -0
- package/api/controllers/http/prompt-topic.ts +4 -0
- package/api/controllers/http/prompt.ts +4 -0
- package/api/controllers/http/question.ts +4 -0
- package/api/controllers/http/team-account.ts +1 -0
- package/api/routes.ts +68 -26
- package/build/api/controllers/http/blog.js +3 -0
- package/build/api/controllers/http/category.js +3 -0
- package/build/api/controllers/http/chat-private.js +0 -1
- package/build/api/controllers/http/chat-public.js +0 -1
- package/build/api/controllers/http/course.js +9 -0
- package/build/api/controllers/http/index.js +0 -1
- package/build/api/controllers/http/page.js +3 -0
- package/build/api/controllers/http/prompt-category.js +3 -0
- package/build/api/controllers/http/prompt-topic.js +3 -0
- package/build/api/controllers/http/prompt.js +3 -0
- package/build/api/controllers/http/question.js +3 -0
- package/build/api/controllers/http/team-account.js +1 -0
- package/build/api/routes.js +34 -20
- package/build/commands/blog/create-post-translation.command.js +23 -0
- package/build/commands/blog/create-post.command.js +6 -0
- package/build/commands/blog/get-all-post-translations.query.js +14 -0
- package/build/commands/blog/index.js +3 -0
- package/build/commands/blog/update-post-translation.command.js +23 -0
- package/build/commands/blog/update-post.command.js +6 -0
- package/build/commands/cabinet/get-user-statistics-by-month.command.js +6 -13
- package/build/commands/cabinet/get-user-statistics-overview.command.js +5 -1
- package/build/commands/category/create-category-translation.command.js +21 -0
- package/build/commands/category/create-category.command.js +4 -0
- package/build/commands/category/get-all-category-translations.query.js +14 -0
- package/build/commands/category/index.js +3 -0
- package/build/commands/category/update-category-translation.command.js +21 -0
- package/build/commands/category/update-category.command.js +4 -0
- package/build/commands/chat/index.js +0 -1
- package/build/commands/course/create-course-translation.command.js +22 -0
- package/build/commands/course/create-course.command.js +5 -0
- package/build/commands/course/create-lesson-translation.command.js +18 -0
- package/build/commands/course/create-section-translation.command.js +18 -0
- package/build/commands/course/get-all-course-translations.query.js +14 -0
- package/build/commands/course/get-all-lesson-translations.query.js +14 -0
- package/build/commands/course/get-all-section-translations.query.js +14 -0
- package/build/commands/course/index.js +9 -0
- package/build/commands/course/update-course-translation.command.js +22 -0
- package/build/commands/course/update-lesson-translation.command.js +18 -0
- package/build/commands/course/update-section-translation.command.js +18 -0
- package/build/commands/page/create-page-translation.command.js +23 -0
- package/build/commands/page/create-page.command.js +6 -0
- package/build/commands/page/find-page.command.js +10 -2
- package/build/commands/page/get-all-page-translations.query.js +14 -0
- package/build/commands/page/index.js +3 -0
- package/build/commands/page/update-page-translation.command.js +23 -0
- package/build/commands/page/update-page.command.js +5 -0
- package/build/commands/prompt/create-prompt-translation.command.js +19 -0
- package/build/commands/prompt/create-prompt.command.js +2 -0
- package/build/commands/prompt/get-all-prompt-translations.query.js +14 -0
- package/build/commands/prompt/index.js +3 -0
- package/build/commands/prompt/update-prompt-translation.command.js +19 -0
- package/build/commands/prompt/update-prompt.command.js +2 -0
- package/build/commands/prompt-category/create-prompt-category-translation.command.js +20 -0
- package/build/commands/prompt-category/create-prompt-category.command.js +3 -0
- package/build/commands/prompt-category/get-all-prompt-category-translations.query.js +14 -0
- package/build/commands/prompt-category/index.js +3 -0
- package/build/commands/prompt-category/update-prompt-category-translation.command.js +20 -0
- package/build/commands/prompt-category/update-prompt-category.command.js +3 -0
- package/build/commands/prompt-topic/create-prompt-topic-translation.command.js +22 -0
- package/build/commands/prompt-topic/create-prompt-topic.command.js +5 -0
- package/build/commands/prompt-topic/get-all-prompt-topic-translations.query.js +14 -0
- package/build/commands/prompt-topic/index.js +3 -0
- package/build/commands/prompt-topic/update-prompt-topic-translation.command.js +22 -0
- package/build/commands/prompt-topic/update-prompt-topic.command.js +5 -0
- package/build/commands/question/create-question-translation.command.js +19 -0
- package/build/commands/question/create-question.command.js +2 -0
- package/build/commands/question/get-all-question-translations.query.js +14 -0
- package/build/commands/question/index.js +3 -0
- package/build/commands/question/update-question-translation.command.js +19 -0
- package/build/commands/question/update-question.command.js +2 -0
- package/build/commands/team-account/get-team-account-statistics-by-month.command.js +6 -13
- package/build/commands/team-account/get-team-account-statistics-overview.command.js +5 -1
- package/build/commands/team-account/index.js +1 -0
- package/build/commands/team-account/update-team-account-invite.command.js +17 -0
- package/build/commands/tools/index.js +0 -1
- package/build/commands/ui-notification/create-admin-broadcast-ui-notification.command.js +9 -2
- package/build/commands/unregistered-user/patch-locale.command.js +3 -3
- package/build/commands/user/get-me.command.js +2 -1
- package/build/commands/user/patch-locale.command.js +3 -3
- package/build/constants/cabinet/enums/index.js +1 -0
- package/build/constants/cabinet/enums/statistics-request-type.enum.js +22 -0
- package/build/constants/index.js +0 -1
- package/build/constants/subscription/enums/index.js +1 -0
- package/build/constants/subscription/enums/subscription-balance-field.enum.js +8 -0
- package/build/constants/tool/enums/index.js +0 -1
- package/build/constants/tool/enums/tool-type.enum.js +0 -1
- package/build/constants/user/enums/index.js +0 -1
- package/build/models/category-translation.schema.js +16 -0
- package/build/models/course-translation.schema.js +17 -0
- package/build/models/index.js +10 -0
- package/build/models/lesson-translation.schema.js +13 -0
- package/build/models/page-translation.schema.js +18 -0
- package/build/models/post-translation.schema.js +18 -0
- package/build/models/prompt-category-translation.schema.js +18 -0
- package/build/models/prompt-topic-translation.schema.js +20 -0
- package/build/models/prompt-translation.schema.js +14 -0
- package/build/models/question-translation.schema.js +14 -0
- package/build/models/section-translation.schema.js +13 -0
- package/build/models/tools/index.js +0 -1
- package/build/models/ui-notification.schema.js +13 -8
- package/build/models/user.schema.js +2 -2
- package/commands/blog/create-post-translation.command.ts +28 -0
- package/commands/blog/create-post.command.ts +6 -0
- package/commands/blog/get-all-post-translations.query.ts +16 -0
- package/commands/blog/index.ts +3 -0
- package/commands/blog/update-post-translation.command.ts +28 -0
- package/commands/blog/update-post.command.ts +6 -0
- package/commands/cabinet/get-user-statistics-by-month.command.ts +7 -14
- package/commands/cabinet/get-user-statistics-overview.command.ts +6 -2
- package/commands/category/create-category-translation.command.ts +26 -0
- package/commands/category/create-category.command.ts +4 -0
- package/commands/category/get-all-category-translations.query.ts +16 -0
- package/commands/category/index.ts +3 -0
- package/commands/category/update-category-translation.command.ts +26 -0
- package/commands/category/update-category.command.ts +4 -0
- package/commands/chat/index.ts +0 -1
- package/commands/course/create-course-translation.command.ts +27 -0
- package/commands/course/create-course.command.ts +5 -0
- package/commands/course/create-lesson-translation.command.ts +23 -0
- package/commands/course/create-section-translation.command.ts +23 -0
- package/commands/course/get-all-course-translations.query.ts +16 -0
- package/commands/course/get-all-lesson-translations.query.ts +16 -0
- package/commands/course/get-all-section-translations.query.ts +16 -0
- package/commands/course/index.ts +9 -0
- package/commands/course/update-course-translation.command.ts +27 -0
- package/commands/course/update-lesson-translation.command.ts +23 -0
- package/commands/course/update-section-translation.command.ts +23 -0
- package/commands/page/create-page-translation.command.ts +28 -0
- package/commands/page/create-page.command.ts +6 -0
- package/commands/page/find-page.command.ts +15 -2
- package/commands/page/get-all-page-translations.query.ts +16 -0
- package/commands/page/index.ts +3 -0
- package/commands/page/update-page-translation.command.ts +28 -0
- package/commands/page/update-page.command.ts +5 -0
- package/commands/prompt/create-prompt-translation.command.ts +24 -0
- package/commands/prompt/create-prompt.command.ts +2 -0
- package/commands/prompt/get-all-prompt-translations.query.ts +16 -0
- package/commands/prompt/index.ts +3 -0
- package/commands/prompt/update-prompt-translation.command.ts +24 -0
- package/commands/prompt/update-prompt.command.ts +2 -0
- package/commands/prompt-category/create-prompt-category-translation.command.ts +25 -0
- package/commands/prompt-category/create-prompt-category.command.ts +3 -0
- package/commands/prompt-category/get-all-prompt-category-translations.query.ts +16 -0
- package/commands/prompt-category/index.ts +3 -0
- package/commands/prompt-category/update-prompt-category-translation.command.ts +25 -0
- package/commands/prompt-category/update-prompt-category.command.ts +3 -0
- package/commands/prompt-topic/create-prompt-topic-translation.command.ts +27 -0
- package/commands/prompt-topic/create-prompt-topic.command.ts +5 -0
- package/commands/prompt-topic/get-all-prompt-topic-translations.query.ts +16 -0
- package/commands/prompt-topic/index.ts +3 -0
- package/commands/prompt-topic/update-prompt-topic-translation.command.ts +27 -0
- package/commands/prompt-topic/update-prompt-topic.command.ts +5 -0
- package/commands/question/create-question-translation.command.ts +24 -0
- package/commands/question/create-question.command.ts +2 -0
- package/commands/question/get-all-question-translations.query.ts +16 -0
- package/commands/question/index.ts +3 -0
- package/commands/question/update-question-translation.command.ts +24 -0
- package/commands/question/update-question.command.ts +2 -0
- package/commands/team-account/get-team-account-statistics-by-month.command.ts +7 -14
- package/commands/team-account/get-team-account-statistics-overview.command.ts +6 -2
- package/commands/team-account/index.ts +1 -0
- package/commands/team-account/update-team-account-invite.command.ts +22 -0
- package/commands/tools/index.ts +0 -1
- package/commands/ui-notification/create-admin-broadcast-ui-notification.command.ts +9 -2
- package/commands/unregistered-user/patch-locale.command.ts +1 -1
- package/commands/user/get-me.command.ts +2 -1
- package/commands/user/patch-locale.command.ts +1 -1
- package/constants/cabinet/enums/index.ts +1 -0
- package/constants/cabinet/enums/statistics-request-type.enum.ts +18 -0
- package/constants/index.ts +0 -1
- package/constants/subscription/enums/index.ts +1 -0
- package/constants/subscription/enums/subscription-balance-field.enum.ts +4 -0
- package/constants/tool/enums/index.ts +0 -1
- package/constants/tool/enums/tool-type.enum.ts +0 -1
- package/constants/user/enums/index.ts +0 -1
- package/models/category-translation.schema.ts +14 -0
- package/models/course-translation.schema.ts +15 -0
- package/models/index.ts +10 -0
- package/models/lesson-translation.schema.ts +11 -0
- package/models/page-translation.schema.ts +16 -0
- package/models/post-translation.schema.ts +16 -0
- package/models/prompt-category-translation.schema.ts +13 -0
- package/models/prompt-topic-translation.schema.ts +15 -0
- package/models/prompt-translation.schema.ts +12 -0
- package/models/question-translation.schema.ts +12 -0
- package/models/section-translation.schema.ts +11 -0
- package/models/tools/index.ts +0 -1
- package/models/ui-notification.schema.ts +14 -7
- package/models/user.schema.ts +1 -1
- package/package.json +2 -1
- package/api/controllers/http/html-page-builder.ts +0 -12
- package/build/api/controllers/http/html-page-builder.js +0 -14
- package/build/commands/chat/calculate-chat-price.command.js +0 -18
- package/build/commands/tools/html-page-builder/delete-all-html-page-builder-sessions.command.js +0 -10
- package/build/commands/tools/html-page-builder/delete-html-page-builder-session-by-uuid.command.js +0 -13
- package/build/commands/tools/html-page-builder/execute-html-page-builder.command.js +0 -19
- package/build/commands/tools/html-page-builder/find-html-page-builder-session-by-uuid.command.js +0 -15
- package/build/commands/tools/html-page-builder/find-html-page-builder-sessions.command.js +0 -18
- package/build/commands/tools/html-page-builder/get-html-page-builder-price.command.js +0 -15
- package/build/commands/tools/html-page-builder/get-html-page-builder-tool-config.command.js +0 -11
- package/build/commands/tools/html-page-builder/index.js +0 -24
- package/build/commands/tools/html-page-builder/update-html-page-builder-session-title.command.js +0 -17
- package/build/constants/tool/enums/job-request-origin.enum.js +0 -8
- package/build/constants/tool-html-page-builder/enums/html-page-builder-session-stage.enum.js +0 -8
- package/build/constants/tool-html-page-builder/enums/index.js +0 -17
- package/build/constants/tool-html-page-builder/index.js +0 -17
- package/build/constants/user/enums/locale.enum.js +0 -8
- package/build/models/tools/html-page-builder/html-page-builder-config.schema.js +0 -8
- package/build/models/tools/html-page-builder/html-page-builder-job.schema.js +0 -29
- package/build/models/tools/html-page-builder/html-page-builder-model.schema.js +0 -18
- package/build/models/tools/html-page-builder/html-page-builder-session.schema.js +0 -16
- package/build/models/tools/html-page-builder/index.js +0 -20
- package/commands/chat/calculate-chat-price.command.ts +0 -19
- package/commands/tools/html-page-builder/delete-all-html-page-builder-sessions.command.ts +0 -8
- package/commands/tools/html-page-builder/delete-html-page-builder-session-by-uuid.command.ts +0 -13
- package/commands/tools/html-page-builder/execute-html-page-builder.command.ts +0 -19
- package/commands/tools/html-page-builder/find-html-page-builder-session-by-uuid.command.ts +0 -15
- package/commands/tools/html-page-builder/find-html-page-builder-sessions.command.ts +0 -18
- package/commands/tools/html-page-builder/get-html-page-builder-price.command.ts +0 -15
- package/commands/tools/html-page-builder/get-html-page-builder-tool-config.command.ts +0 -9
- package/commands/tools/html-page-builder/index.ts +0 -8
- package/commands/tools/html-page-builder/update-html-page-builder-session-title.command.ts +0 -19
- package/constants/tool/enums/job-request-origin.enum.ts +0 -4
- package/constants/tool-html-page-builder/enums/html-page-builder-session-stage.enum.ts +0 -4
- package/constants/tool-html-page-builder/enums/index.ts +0 -1
- package/constants/tool-html-page-builder/index.ts +0 -1
- package/constants/user/enums/locale.enum.ts +0 -4
- package/models/tools/html-page-builder/html-page-builder-config.schema.ts +0 -8
- package/models/tools/html-page-builder/html-page-builder-job.schema.ts +0 -32
- package/models/tools/html-page-builder/html-page-builder-model.schema.ts +0 -18
- package/models/tools/html-page-builder/html-page-builder-session.schema.ts +0 -16
- package/models/tools/html-page-builder/index.ts +0 -4
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CreatePostTranslationCommand = void 0;
|
|
4
|
+
const models_1 = require("../../models");
|
|
5
|
+
const zod_1 = require("zod");
|
|
6
|
+
var CreatePostTranslationCommand;
|
|
7
|
+
(function (CreatePostTranslationCommand) {
|
|
8
|
+
CreatePostTranslationCommand.RequestSchema = models_1.PostTranslationSchema.pick({
|
|
9
|
+
title: true,
|
|
10
|
+
content: true,
|
|
11
|
+
author: true,
|
|
12
|
+
contentPreview: true,
|
|
13
|
+
metaTitle: true,
|
|
14
|
+
metaDescription: true,
|
|
15
|
+
locale: true,
|
|
16
|
+
});
|
|
17
|
+
CreatePostTranslationCommand.RequestParamSchema = zod_1.z.object({
|
|
18
|
+
uuid: zod_1.z.string().uuid(),
|
|
19
|
+
});
|
|
20
|
+
CreatePostTranslationCommand.ResponseSchema = zod_1.z.object({
|
|
21
|
+
data: models_1.PostTranslationSchema,
|
|
22
|
+
});
|
|
23
|
+
})(CreatePostTranslationCommand || (exports.CreatePostTranslationCommand = CreatePostTranslationCommand = {}));
|
|
@@ -7,7 +7,13 @@ var CreatePostCommand;
|
|
|
7
7
|
(function (CreatePostCommand) {
|
|
8
8
|
CreatePostCommand.RequestSchema = models_1.PostSchema.omit({
|
|
9
9
|
uuid: true,
|
|
10
|
+
title: true,
|
|
11
|
+
author: true,
|
|
10
12
|
views: true,
|
|
13
|
+
content: true,
|
|
14
|
+
contentPreview: true,
|
|
15
|
+
metaTitle: true,
|
|
16
|
+
metaDescription: true,
|
|
11
17
|
createdAt: true,
|
|
12
18
|
updatedAt: true,
|
|
13
19
|
});
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GetAllPostTranslationsQuery = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const models_1 = require("../../models");
|
|
6
|
+
var GetAllPostTranslationsQuery;
|
|
7
|
+
(function (GetAllPostTranslationsQuery) {
|
|
8
|
+
GetAllPostTranslationsQuery.RequestParamSchema = zod_1.z.object({
|
|
9
|
+
uuid: zod_1.z.string().uuid(),
|
|
10
|
+
});
|
|
11
|
+
GetAllPostTranslationsQuery.ResponseSchema = zod_1.z.object({
|
|
12
|
+
data: zod_1.z.array(models_1.PostTranslationSchema),
|
|
13
|
+
});
|
|
14
|
+
})(GetAllPostTranslationsQuery || (exports.GetAllPostTranslationsQuery = GetAllPostTranslationsQuery = {}));
|
|
@@ -15,11 +15,14 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./create-post.command"), exports);
|
|
18
|
+
__exportStar(require("./create-post-translation.command"), exports);
|
|
18
19
|
__exportStar(require("./delete-post.command"), exports);
|
|
19
20
|
__exportStar(require("./find-all-posts.command"), exports);
|
|
20
21
|
__exportStar(require("./find-post-by-alias.command"), exports);
|
|
21
22
|
__exportStar(require("./find-post-by-uuid.command"), exports);
|
|
22
23
|
__exportStar(require("./find-posts.command"), exports);
|
|
23
24
|
__exportStar(require("./get-latest-updates.command"), exports);
|
|
25
|
+
__exportStar(require("./get-all-post-translations.query"), exports);
|
|
24
26
|
__exportStar(require("./get-posts-count.command"), exports);
|
|
25
27
|
__exportStar(require("./update-post.command"), exports);
|
|
28
|
+
__exportStar(require("./update-post-translation.command"), exports);
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UpdatePostTranslationCommand = void 0;
|
|
4
|
+
const models_1 = require("../../models");
|
|
5
|
+
const zod_1 = require("zod");
|
|
6
|
+
var UpdatePostTranslationCommand;
|
|
7
|
+
(function (UpdatePostTranslationCommand) {
|
|
8
|
+
UpdatePostTranslationCommand.RequestSchema = models_1.PostTranslationSchema.pick({
|
|
9
|
+
title: true,
|
|
10
|
+
content: true,
|
|
11
|
+
author: true,
|
|
12
|
+
contentPreview: true,
|
|
13
|
+
metaTitle: true,
|
|
14
|
+
metaDescription: true,
|
|
15
|
+
}).partial();
|
|
16
|
+
UpdatePostTranslationCommand.RequestParamSchema = zod_1.z.object({
|
|
17
|
+
uuid: zod_1.z.string().uuid(),
|
|
18
|
+
translationUuid: zod_1.z.string().uuid(),
|
|
19
|
+
});
|
|
20
|
+
UpdatePostTranslationCommand.ResponseSchema = zod_1.z.object({
|
|
21
|
+
data: models_1.PostTranslationSchema,
|
|
22
|
+
});
|
|
23
|
+
})(UpdatePostTranslationCommand || (exports.UpdatePostTranslationCommand = UpdatePostTranslationCommand = {}));
|
|
@@ -10,6 +10,12 @@ var UpdatePostCommand;
|
|
|
10
10
|
updatedAt: true,
|
|
11
11
|
views: true,
|
|
12
12
|
uuid: true,
|
|
13
|
+
title: true,
|
|
14
|
+
content: true,
|
|
15
|
+
author: true,
|
|
16
|
+
contentPreview: true,
|
|
17
|
+
metaTitle: true,
|
|
18
|
+
metaDescription: true,
|
|
13
19
|
}).partial();
|
|
14
20
|
UpdatePostCommand.RequestParamSchema = zod_1.z.object({
|
|
15
21
|
uuid: zod_1.z.string().uuid(),
|
|
@@ -2,11 +2,15 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.GetUserStatisticsByMonthCommand = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
|
+
const rugpt_lib_common_1 = require("@purpleschool/rugpt-lib-common");
|
|
5
6
|
const constants_1 = require("../../constants");
|
|
6
7
|
var GetUserStatisticsByMonthCommand;
|
|
7
8
|
(function (GetUserStatisticsByMonthCommand) {
|
|
8
9
|
GetUserStatisticsByMonthCommand.RequestSchema = zod_1.z.object({
|
|
9
|
-
|
|
10
|
+
callOrigin: zod_1.z
|
|
11
|
+
.nativeEnum(rugpt_lib_common_1.STATISTICS_CALL_ORIGIN)
|
|
12
|
+
.default(rugpt_lib_common_1.STATISTICS_CALL_ORIGIN.WEB)
|
|
13
|
+
.optional(),
|
|
10
14
|
metric: zod_1.z
|
|
11
15
|
.nativeEnum(constants_1.STATISTICS_METRIC_TYPE)
|
|
12
16
|
.default(constants_1.STATISTICS_METRIC_TYPE.REQUESTS)
|
|
@@ -14,18 +18,7 @@ var GetUserStatisticsByMonthCommand;
|
|
|
14
18
|
});
|
|
15
19
|
GetUserStatisticsByMonthCommand.UserStatisticsByMonthResponseSchema = zod_1.z.object({
|
|
16
20
|
month: zod_1.z.string(),
|
|
17
|
-
|
|
18
|
-
total_audios: zod_1.z.number(),
|
|
19
|
-
total_images: zod_1.z.number(),
|
|
20
|
-
total_videos: zod_1.z.number(),
|
|
21
|
-
total_presentations: zod_1.z.number(),
|
|
22
|
-
total_paraphrases: zod_1.z.number(),
|
|
23
|
-
writers: zod_1.z.object({
|
|
24
|
-
total_writers: zod_1.z.number(),
|
|
25
|
-
total_writer_actions: zod_1.z.number(),
|
|
26
|
-
}),
|
|
27
|
-
total_video_edits: zod_1.z.number(),
|
|
28
|
-
total_musics: zod_1.z.number(),
|
|
21
|
+
statistics: zod_1.z.record(zod_1.z.nativeEnum(constants_1.STATISTICS_REQUEST_TYPE), zod_1.z.number()),
|
|
29
22
|
});
|
|
30
23
|
GetUserStatisticsByMonthCommand.ResponseSchema = zod_1.z.object({
|
|
31
24
|
data: zod_1.z.array(GetUserStatisticsByMonthCommand.UserStatisticsByMonthResponseSchema),
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.GetUserStatisticsOverviewCommand = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
|
+
const rugpt_lib_common_1 = require("@purpleschool/rugpt-lib-common");
|
|
5
6
|
const constants_1 = require("../../constants");
|
|
6
7
|
var GetUserStatisticsOverviewCommand;
|
|
7
8
|
(function (GetUserStatisticsOverviewCommand) {
|
|
@@ -13,7 +14,10 @@ var GetUserStatisticsOverviewCommand;
|
|
|
13
14
|
message: 'to must be a valid date string',
|
|
14
15
|
}),
|
|
15
16
|
groupBy: zod_1.z.nativeEnum(constants_1.GROUP_BY).default(constants_1.GROUP_BY.DAY),
|
|
16
|
-
|
|
17
|
+
callOrigin: zod_1.z
|
|
18
|
+
.nativeEnum(rugpt_lib_common_1.STATISTICS_CALL_ORIGIN)
|
|
19
|
+
.default(rugpt_lib_common_1.STATISTICS_CALL_ORIGIN.WEB)
|
|
20
|
+
.optional(),
|
|
17
21
|
});
|
|
18
22
|
GetUserStatisticsOverviewCommand.UserStatisticsOverviewResponseSchema = zod_1.z.object({
|
|
19
23
|
startDate: zod_1.z.string(),
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CreateCategoryTranslationCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const models_1 = require("../../models");
|
|
6
|
+
var CreateCategoryTranslationCommand;
|
|
7
|
+
(function (CreateCategoryTranslationCommand) {
|
|
8
|
+
CreateCategoryTranslationCommand.RequestSchema = models_1.CategoryTranslationSchema.pick({
|
|
9
|
+
name: true,
|
|
10
|
+
prompt: true,
|
|
11
|
+
placeholder: true,
|
|
12
|
+
seoName: true,
|
|
13
|
+
locale: true,
|
|
14
|
+
});
|
|
15
|
+
CreateCategoryTranslationCommand.RequestParamSchema = zod_1.z.object({
|
|
16
|
+
uuid: zod_1.z.string().uuid(),
|
|
17
|
+
});
|
|
18
|
+
CreateCategoryTranslationCommand.ResponseSchema = zod_1.z.object({
|
|
19
|
+
data: models_1.CategoryTranslationSchema,
|
|
20
|
+
});
|
|
21
|
+
})(CreateCategoryTranslationCommand || (exports.CreateCategoryTranslationCommand = CreateCategoryTranslationCommand = {}));
|
|
@@ -7,6 +7,10 @@ var CreateCategoryCommand;
|
|
|
7
7
|
(function (CreateCategoryCommand) {
|
|
8
8
|
CreateCategoryCommand.RequestSchema = models_1.CategorySchema.omit({
|
|
9
9
|
uuid: true,
|
|
10
|
+
name: true,
|
|
11
|
+
prompt: true,
|
|
12
|
+
placeholder: true,
|
|
13
|
+
seoName: true,
|
|
10
14
|
createdAt: true,
|
|
11
15
|
updatedAt: true,
|
|
12
16
|
});
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GetAllCategoryTranslationsQuery = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const models_1 = require("../../models");
|
|
6
|
+
var GetAllCategoryTranslationsQuery;
|
|
7
|
+
(function (GetAllCategoryTranslationsQuery) {
|
|
8
|
+
GetAllCategoryTranslationsQuery.RequestParamSchema = zod_1.z.object({
|
|
9
|
+
uuid: zod_1.z.string().uuid(),
|
|
10
|
+
});
|
|
11
|
+
GetAllCategoryTranslationsQuery.ResponseSchema = zod_1.z.object({
|
|
12
|
+
data: zod_1.z.array(models_1.CategoryTranslationSchema),
|
|
13
|
+
});
|
|
14
|
+
})(GetAllCategoryTranslationsQuery || (exports.GetAllCategoryTranslationsQuery = GetAllCategoryTranslationsQuery = {}));
|
|
@@ -15,6 +15,9 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./create-category.command"), exports);
|
|
18
|
+
__exportStar(require("./create-category-translation.command"), exports);
|
|
18
19
|
__exportStar(require("./delete-category.command"), exports);
|
|
19
20
|
__exportStar(require("./find-category.command"), exports);
|
|
21
|
+
__exportStar(require("./get-all-category-translations.query"), exports);
|
|
20
22
|
__exportStar(require("./update-category.command"), exports);
|
|
23
|
+
__exportStar(require("./update-category-translation.command"), exports);
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UpdateCategoryTranslationCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const models_1 = require("../../models");
|
|
6
|
+
var UpdateCategoryTranslationCommand;
|
|
7
|
+
(function (UpdateCategoryTranslationCommand) {
|
|
8
|
+
UpdateCategoryTranslationCommand.RequestSchema = models_1.CategoryTranslationSchema.pick({
|
|
9
|
+
name: true,
|
|
10
|
+
prompt: true,
|
|
11
|
+
placeholder: true,
|
|
12
|
+
seoName: true,
|
|
13
|
+
}).partial();
|
|
14
|
+
UpdateCategoryTranslationCommand.RequestParamSchema = zod_1.z.object({
|
|
15
|
+
uuid: zod_1.z.string().uuid(),
|
|
16
|
+
translationUuid: zod_1.z.string().uuid(),
|
|
17
|
+
});
|
|
18
|
+
UpdateCategoryTranslationCommand.ResponseSchema = zod_1.z.object({
|
|
19
|
+
data: models_1.CategoryTranslationSchema,
|
|
20
|
+
});
|
|
21
|
+
})(UpdateCategoryTranslationCommand || (exports.UpdateCategoryTranslationCommand = UpdateCategoryTranslationCommand = {}));
|
|
@@ -9,6 +9,10 @@ var UpdateCategoryCommand;
|
|
|
9
9
|
createdAt: true,
|
|
10
10
|
updatedAt: true,
|
|
11
11
|
uuid: true,
|
|
12
|
+
name: true,
|
|
13
|
+
prompt: true,
|
|
14
|
+
placeholder: true,
|
|
15
|
+
seoName: true,
|
|
12
16
|
}).partial();
|
|
13
17
|
UpdateCategoryCommand.RequestParamSchema = zod_1.z.object({
|
|
14
18
|
uuid: zod_1.z.string().uuid(),
|
|
@@ -15,7 +15,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./archive-all.command"), exports);
|
|
18
|
-
__exportStar(require("./calculate-chat-price.command"), exports);
|
|
19
18
|
__exportStar(require("./check-limit.command"), exports);
|
|
20
19
|
__exportStar(require("./create-chat.command"), exports);
|
|
21
20
|
__exportStar(require("./delete-chat.command"), exports);
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CreateCourseTranslationCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const models_1 = require("../../models");
|
|
6
|
+
var CreateCourseTranslationCommand;
|
|
7
|
+
(function (CreateCourseTranslationCommand) {
|
|
8
|
+
CreateCourseTranslationCommand.RequestSchema = models_1.CourseTranslationSchema.pick({
|
|
9
|
+
title: true,
|
|
10
|
+
subtitle: true,
|
|
11
|
+
prerequisites: true,
|
|
12
|
+
description: true,
|
|
13
|
+
skills: true,
|
|
14
|
+
locale: true,
|
|
15
|
+
});
|
|
16
|
+
CreateCourseTranslationCommand.RequestParamSchema = zod_1.z.object({
|
|
17
|
+
uuid: zod_1.z.string().uuid(),
|
|
18
|
+
});
|
|
19
|
+
CreateCourseTranslationCommand.ResponseSchema = zod_1.z.object({
|
|
20
|
+
data: models_1.CourseTranslationSchema,
|
|
21
|
+
});
|
|
22
|
+
})(CreateCourseTranslationCommand || (exports.CreateCourseTranslationCommand = CreateCourseTranslationCommand = {}));
|
|
@@ -7,6 +7,11 @@ var CreateCourseCommand;
|
|
|
7
7
|
(function (CreateCourseCommand) {
|
|
8
8
|
CreateCourseCommand.RequestSchema = models_1.CourseSchema.omit({
|
|
9
9
|
uuid: true,
|
|
10
|
+
title: true,
|
|
11
|
+
subtitle: true,
|
|
12
|
+
prerequisites: true,
|
|
13
|
+
description: true,
|
|
14
|
+
skills: true,
|
|
10
15
|
createdAt: true,
|
|
11
16
|
updatedAt: true,
|
|
12
17
|
});
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CreateLessonTranslationCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const models_1 = require("../../models");
|
|
6
|
+
var CreateLessonTranslationCommand;
|
|
7
|
+
(function (CreateLessonTranslationCommand) {
|
|
8
|
+
CreateLessonTranslationCommand.RequestSchema = models_1.LessonTranslationSchema.pick({
|
|
9
|
+
title: true,
|
|
10
|
+
locale: true,
|
|
11
|
+
});
|
|
12
|
+
CreateLessonTranslationCommand.RequestParamSchema = zod_1.z.object({
|
|
13
|
+
uuid: zod_1.z.string().uuid(),
|
|
14
|
+
});
|
|
15
|
+
CreateLessonTranslationCommand.ResponseSchema = zod_1.z.object({
|
|
16
|
+
data: models_1.LessonTranslationSchema,
|
|
17
|
+
});
|
|
18
|
+
})(CreateLessonTranslationCommand || (exports.CreateLessonTranslationCommand = CreateLessonTranslationCommand = {}));
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CreateSectionTranslationCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const models_1 = require("../../models");
|
|
6
|
+
var CreateSectionTranslationCommand;
|
|
7
|
+
(function (CreateSectionTranslationCommand) {
|
|
8
|
+
CreateSectionTranslationCommand.RequestSchema = models_1.SectionTranslationSchema.pick({
|
|
9
|
+
title: true,
|
|
10
|
+
locale: true,
|
|
11
|
+
});
|
|
12
|
+
CreateSectionTranslationCommand.RequestParamSchema = zod_1.z.object({
|
|
13
|
+
uuid: zod_1.z.string().uuid(),
|
|
14
|
+
});
|
|
15
|
+
CreateSectionTranslationCommand.ResponseSchema = zod_1.z.object({
|
|
16
|
+
data: models_1.SectionTranslationSchema,
|
|
17
|
+
});
|
|
18
|
+
})(CreateSectionTranslationCommand || (exports.CreateSectionTranslationCommand = CreateSectionTranslationCommand = {}));
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GetAllCourseTranslationsQuery = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const models_1 = require("../../models");
|
|
6
|
+
var GetAllCourseTranslationsQuery;
|
|
7
|
+
(function (GetAllCourseTranslationsQuery) {
|
|
8
|
+
GetAllCourseTranslationsQuery.RequestParamSchema = zod_1.z.object({
|
|
9
|
+
uuid: zod_1.z.string().uuid(),
|
|
10
|
+
});
|
|
11
|
+
GetAllCourseTranslationsQuery.ResponseSchema = zod_1.z.object({
|
|
12
|
+
data: zod_1.z.array(models_1.CourseTranslationSchema),
|
|
13
|
+
});
|
|
14
|
+
})(GetAllCourseTranslationsQuery || (exports.GetAllCourseTranslationsQuery = GetAllCourseTranslationsQuery = {}));
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GetAllLessonTranslationsQuery = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const models_1 = require("../../models");
|
|
6
|
+
var GetAllLessonTranslationsQuery;
|
|
7
|
+
(function (GetAllLessonTranslationsQuery) {
|
|
8
|
+
GetAllLessonTranslationsQuery.RequestParamSchema = zod_1.z.object({
|
|
9
|
+
uuid: zod_1.z.string().uuid(),
|
|
10
|
+
});
|
|
11
|
+
GetAllLessonTranslationsQuery.ResponseSchema = zod_1.z.object({
|
|
12
|
+
data: zod_1.z.array(models_1.LessonTranslationSchema),
|
|
13
|
+
});
|
|
14
|
+
})(GetAllLessonTranslationsQuery || (exports.GetAllLessonTranslationsQuery = GetAllLessonTranslationsQuery = {}));
|
|
@@ -0,0 +1,14 @@
|
|
|
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 = {}));
|
|
@@ -15,5 +15,14 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./create-course.command"), exports);
|
|
18
|
+
__exportStar(require("./create-course-translation.command"), exports);
|
|
19
|
+
__exportStar(require("./create-lesson-translation.command"), exports);
|
|
20
|
+
__exportStar(require("./create-section-translation.command"), exports);
|
|
18
21
|
__exportStar(require("./find-course-by-alias.command"), exports);
|
|
19
22
|
__exportStar(require("./find-course-by-uuid.command"), exports);
|
|
23
|
+
__exportStar(require("./get-all-course-translations.query"), exports);
|
|
24
|
+
__exportStar(require("./get-all-section-translations.query"), exports);
|
|
25
|
+
__exportStar(require("./get-all-lesson-translations.query"), exports);
|
|
26
|
+
__exportStar(require("./update-course-translation.command"), exports);
|
|
27
|
+
__exportStar(require("./update-lesson-translation.command"), exports);
|
|
28
|
+
__exportStar(require("./update-section-translation.command"), exports);
|
|
@@ -0,0 +1,22 @@
|
|
|
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 = {}));
|
|
@@ -0,0 +1,18 @@
|
|
|
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 = {}));
|
|
@@ -0,0 +1,18 @@
|
|
|
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 = {}));
|
|
@@ -0,0 +1,23 @@
|
|
|
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 = {}));
|
|
@@ -10,6 +10,12 @@ var CreatePageCommand;
|
|
|
10
10
|
uuid: true,
|
|
11
11
|
createdAt: true,
|
|
12
12
|
updatedAt: true,
|
|
13
|
+
metaTitle: true,
|
|
14
|
+
metaDescription: true,
|
|
15
|
+
title: true,
|
|
16
|
+
subTitle: true,
|
|
17
|
+
seoTextMd: true,
|
|
18
|
+
toolTitle: true,
|
|
13
19
|
})
|
|
14
20
|
.refine((data) => {
|
|
15
21
|
if (data.type === constants_1.PageType.AI_MODEL) {
|
|
@@ -13,10 +13,18 @@ var FindPageCommand;
|
|
|
13
13
|
});
|
|
14
14
|
FindPageCommand.ResponseByUUIDSchema = zod_1.z.object({
|
|
15
15
|
data: models_1.PageSchema.extend({
|
|
16
|
-
|
|
16
|
+
locales: zod_1.z.array(models_1.PageTranslationSchema),
|
|
17
|
+
category: zod_1.z.union([
|
|
18
|
+
models_1.CategorySchema.extend({
|
|
19
|
+
locales: zod_1.z.array(models_1.CategoryTranslationSchema),
|
|
20
|
+
}),
|
|
21
|
+
zod_1.z.null(),
|
|
22
|
+
]),
|
|
17
23
|
aIModel: zod_1.z.union([models_1.AiModelSchema, zod_1.z.null()]),
|
|
18
24
|
tool: models_1.ToolSchema.nullable(),
|
|
19
|
-
questions: zod_1.z.array(models_1.QuestionSchema
|
|
25
|
+
questions: zod_1.z.array(models_1.QuestionSchema.extend({
|
|
26
|
+
locales: zod_1.z.array(models_1.QuestionTranslationSchema),
|
|
27
|
+
})),
|
|
20
28
|
}),
|
|
21
29
|
});
|
|
22
30
|
})(FindPageCommand || (exports.FindPageCommand = FindPageCommand = {}));
|
|
@@ -0,0 +1,14 @@
|
|
|
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 = {}));
|
|
@@ -15,8 +15,11 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./create-page.command"), exports);
|
|
18
|
+
__exportStar(require("./create-page-translation.command"), exports);
|
|
18
19
|
__exportStar(require("./delete-page.command"), exports);
|
|
19
20
|
__exportStar(require("./find-page-by-alias.command"), exports);
|
|
20
21
|
__exportStar(require("./find-pages-by-criteria.command"), exports);
|
|
21
22
|
__exportStar(require("./find-page.command"), exports);
|
|
23
|
+
__exportStar(require("./get-all-page-translations.query"), exports);
|
|
22
24
|
__exportStar(require("./update-page.command"), exports);
|
|
25
|
+
__exportStar(require("./update-page-translation.command"), exports);
|
|
@@ -0,0 +1,23 @@
|
|
|
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 = {}));
|
|
@@ -9,6 +9,11 @@ var UpdatePageCommand;
|
|
|
9
9
|
createdAt: true,
|
|
10
10
|
updatedAt: true,
|
|
11
11
|
uuid: true,
|
|
12
|
+
metaTitle: true,
|
|
13
|
+
metaDescription: true,
|
|
14
|
+
title: true,
|
|
15
|
+
subTitle: true,
|
|
16
|
+
seoTextMd: true,
|
|
12
17
|
}).partial();
|
|
13
18
|
UpdatePageCommand.RequestParamSchema = zod_1.z.object({
|
|
14
19
|
uuid: zod_1.z.string().uuid(),
|
|
@@ -0,0 +1,19 @@
|
|
|
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 = {}));
|
|
@@ -0,0 +1,14 @@
|
|
|
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 = {}));
|