@purpleschool/gptbot 0.12.44 → 0.12.45-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/course.ts +12 -0
- 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 -0
- package/build/api/controllers/http/blog.js +3 -0
- package/build/api/controllers/http/category.js +3 -0
- package/build/api/controllers/http/course.js +9 -0
- 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 -0
- 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/calculate-chat-price.command.js +2 -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/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 +24 -0
- 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/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/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/calculate-chat-price.command.ts +2 -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/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 +20 -0
- 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/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/ui-notification.schema.ts +14 -7
- package/models/user.schema.ts +1 -1
- package/package.json +2 -1
- package/build/constants/tool/enums/job-request-origin.enum.js +0 -8
- package/build/constants/user/enums/locale.enum.js +0 -8
- package/constants/tool/enums/job-request-origin.enum.ts +0 -4
- package/constants/user/enums/locale.enum.ts +0 -4
|
@@ -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(),
|
|
@@ -14,6 +14,7 @@ var CalculateChatPriceCommand;
|
|
|
14
14
|
});
|
|
15
15
|
CalculateChatPriceCommand.ResponseSchema = zod_1.z.object({
|
|
16
16
|
price: zod_1.z.number(),
|
|
17
|
-
|
|
17
|
+
charsUntilNextPriceIncrease: zod_1.z.number().int().nonnegative().nullable(),
|
|
18
|
+
charsUntilNextPriceDecrease: zod_1.z.number().int().nonnegative().nullable(),
|
|
18
19
|
});
|
|
19
20
|
})(CalculateChatPriceCommand || (exports.CalculateChatPriceCommand = CalculateChatPriceCommand = {}));
|
|
@@ -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 = {}));
|
|
@@ -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-prompt.command"), exports);
|
|
18
|
+
__exportStar(require("./create-prompt-translation.command"), exports);
|
|
18
19
|
__exportStar(require("./delete-prompt.command"), exports);
|
|
19
20
|
__exportStar(require("./update-prompt.command"), exports);
|
|
21
|
+
__exportStar(require("./update-prompt-translation.command"), exports);
|
|
20
22
|
__exportStar(require("./find-prompt-by-uuid.command"), exports);
|
|
21
23
|
__exportStar(require("./find-all-prompts.command"), exports);
|
|
24
|
+
__exportStar(require("./get-all-prompt-translations.query"), exports);
|
|
22
25
|
__exportStar(require("./find-prompts-by-topic.command"), exports);
|
|
@@ -0,0 +1,19 @@
|
|
|
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 = {}));
|
|
@@ -0,0 +1,20 @@
|
|
|
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 = {}));
|
|
@@ -10,6 +10,9 @@ var CreatePromptCategoryCommand;
|
|
|
10
10
|
(function (CreatePromptCategoryCommand) {
|
|
11
11
|
CreatePromptCategoryCommand.RequestSchema = models_1.PromptCategorySchema.omit({
|
|
12
12
|
uuid: true,
|
|
13
|
+
title: true,
|
|
14
|
+
metaTitle: true,
|
|
15
|
+
metaDescription: true,
|
|
13
16
|
createdAt: true,
|
|
14
17
|
updatedAt: true,
|
|
15
18
|
});
|
|
@@ -0,0 +1,14 @@
|
|
|
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 = {}));
|
|
@@ -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-prompt-category.command"), exports);
|
|
18
|
+
__exportStar(require("./create-prompt-category-translation.command"), exports);
|
|
18
19
|
__exportStar(require("./delete-prompt-category.command"), exports);
|
|
19
20
|
__exportStar(require("./update-prompt-category.command"), exports);
|
|
21
|
+
__exportStar(require("./update-prompt-category-translation.command"), exports);
|
|
20
22
|
__exportStar(require("./find-all-prompt-categories.command"), exports);
|
|
23
|
+
__exportStar(require("./get-all-prompt-category-translations.query"), exports);
|
|
21
24
|
__exportStar(require("./find-prompt-category-by-alias.command"), exports);
|
|
22
25
|
__exportStar(require("./find-prompt-category-by-uuid.command"), exports);
|
|
@@ -0,0 +1,20 @@
|
|
|
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 = {}));
|
|
@@ -10,6 +10,9 @@ var UpdatePromptCategoryCommand;
|
|
|
10
10
|
(function (UpdatePromptCategoryCommand) {
|
|
11
11
|
UpdatePromptCategoryCommand.RequestSchema = models_1.PromptCategorySchema.omit({
|
|
12
12
|
uuid: true,
|
|
13
|
+
title: true,
|
|
14
|
+
metaTitle: true,
|
|
15
|
+
metaDescription: true,
|
|
13
16
|
createdAt: true,
|
|
14
17
|
updatedAt: true,
|
|
15
18
|
}).partial();
|