@purpleschool/gptbot 0.12.3 → 0.12.4-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 +2 -0
- package/api/controllers/http/category.ts +2 -0
- package/api/controllers/http/course.ts +8 -0
- package/api/controllers/http/page.ts +2 -0
- package/api/controllers/http/prompt-category.ts +2 -0
- package/api/controllers/http/prompt-topic.ts +2 -0
- package/api/controllers/http/prompt.ts +2 -0
- package/api/controllers/http/question.ts +2 -0
- package/api/controllers/http/team-account.ts +1 -0
- package/api/routes.ts +46 -0
- package/build/api/controllers/http/blog.js +2 -0
- package/build/api/controllers/http/category.js +2 -0
- package/build/api/controllers/http/course.js +6 -0
- package/build/api/controllers/http/page.js +2 -0
- package/build/api/controllers/http/prompt-category.js +2 -0
- package/build/api/controllers/http/prompt-topic.js +2 -0
- package/build/api/controllers/http/prompt.js +2 -0
- package/build/api/controllers/http/question.js +2 -0
- package/build/api/controllers/http/team-account.js +1 -0
- package/build/api/routes.js +23 -0
- package/build/commands/blog/create-post-translation.command.js +25 -0
- package/build/commands/blog/create-post.command.js +6 -0
- package/build/commands/blog/index.js +2 -0
- package/build/commands/blog/update-post-translation.command.js +24 -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 +23 -0
- package/build/commands/category/create-category.command.js +4 -0
- package/build/commands/category/index.js +2 -0
- package/build/commands/category/update-category-translation.command.js +22 -0
- package/build/commands/category/update-category.command.js +4 -0
- package/build/commands/course/create-course-translation.command.js +24 -0
- package/build/commands/course/create-course.command.js +5 -0
- package/build/commands/course/create-lesson-translation.command.js +20 -0
- package/build/commands/course/create-section-translation.command.js +20 -0
- package/build/commands/course/index.js +6 -0
- package/build/commands/course/update-course-translation.command.js +23 -0
- package/build/commands/course/update-lesson-translation.command.js +19 -0
- package/build/commands/course/update-section-translation.command.js +19 -0
- package/build/commands/page/create-page-translation.command.js +24 -0
- package/build/commands/page/create-page.command.js +5 -0
- package/build/commands/page/index.js +2 -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 +21 -0
- package/build/commands/prompt/create-prompt.command.js +2 -0
- package/build/commands/prompt/index.js +2 -0
- package/build/commands/prompt/update-prompt-translation.command.js +20 -0
- package/build/commands/prompt/update-prompt.command.js +2 -0
- package/build/commands/prompt-category/create-prompt-category-translation.command.js +22 -0
- package/build/commands/prompt-category/create-prompt-category.command.js +3 -0
- package/build/commands/prompt-category/index.js +2 -0
- package/build/commands/prompt-category/update-prompt-category-translation.command.js +21 -0
- package/build/commands/prompt-category/update-prompt-category.command.js +3 -0
- package/build/commands/prompt-topic/create-prompt-topic-translation.command.js +24 -0
- package/build/commands/prompt-topic/create-prompt-topic.command.js +5 -0
- package/build/commands/prompt-topic/index.js +2 -0
- package/build/commands/prompt-topic/update-prompt-topic-translation.command.js +23 -0
- package/build/commands/prompt-topic/update-prompt-topic.command.js +5 -0
- package/build/commands/question/create-question-translation.command.js +21 -0
- package/build/commands/question/create-question.command.js +2 -0
- package/build/commands/question/index.js +2 -0
- package/build/commands/question/update-question-translation.command.js +20 -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/writer/discard-writer-source.command.js +16 -0
- package/build/commands/tools/writer/index.js +1 -0
- package/build/commands/tools/writer/update-writer-document-outline.command.js +1 -0
- 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/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/tools/writer/writer-source.schema.js +1 -0
- package/build/models/user.schema.js +2 -2
- package/commands/blog/create-post-translation.command.ts +30 -0
- package/commands/blog/create-post.command.ts +6 -0
- package/commands/blog/index.ts +2 -0
- package/commands/blog/update-post-translation.command.ts +29 -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 +28 -0
- package/commands/category/create-category.command.ts +4 -0
- package/commands/category/index.ts +2 -0
- package/commands/category/update-category-translation.command.ts +27 -0
- package/commands/category/update-category.command.ts +4 -0
- package/commands/course/create-course-translation.command.ts +29 -0
- package/commands/course/create-course.command.ts +5 -0
- package/commands/course/create-lesson-translation.command.ts +25 -0
- package/commands/course/create-section-translation.command.ts +25 -0
- package/commands/course/index.ts +6 -0
- package/commands/course/update-course-translation.command.ts +28 -0
- package/commands/course/update-lesson-translation.command.ts +24 -0
- package/commands/course/update-section-translation.command.ts +24 -0
- package/commands/page/create-page-translation.command.ts +29 -0
- package/commands/page/create-page.command.ts +5 -0
- package/commands/page/index.ts +2 -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 +26 -0
- package/commands/prompt/create-prompt.command.ts +2 -0
- package/commands/prompt/index.ts +2 -0
- package/commands/prompt/update-prompt-translation.command.ts +25 -0
- package/commands/prompt/update-prompt.command.ts +2 -0
- package/commands/prompt-category/create-prompt-category-translation.command.ts +27 -0
- package/commands/prompt-category/create-prompt-category.command.ts +3 -0
- package/commands/prompt-category/index.ts +2 -0
- package/commands/prompt-category/update-prompt-category-translation.command.ts +26 -0
- package/commands/prompt-category/update-prompt-category.command.ts +3 -0
- package/commands/prompt-topic/create-prompt-topic-translation.command.ts +29 -0
- package/commands/prompt-topic/create-prompt-topic.command.ts +5 -0
- package/commands/prompt-topic/index.ts +2 -0
- package/commands/prompt-topic/update-prompt-topic-translation.command.ts +28 -0
- package/commands/prompt-topic/update-prompt-topic.command.ts +5 -0
- package/commands/question/create-question-translation.command.ts +26 -0
- package/commands/question/create-question.command.ts +2 -0
- package/commands/question/index.ts +2 -0
- package/commands/question/update-question-translation.command.ts +25 -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/writer/discard-writer-source.command.ts +18 -0
- package/commands/tools/writer/index.ts +1 -0
- package/commands/tools/writer/update-writer-document-outline.command.ts +1 -0
- 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/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/tools/writer/writer-source.schema.ts +1 -0
- 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
|
@@ -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(),
|
|
@@ -0,0 +1,24 @@
|
|
|
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
|
+
const rugpt_lib_common_1 = require("@purpleschool/rugpt-lib-common");
|
|
7
|
+
var CreateCourseTranslationCommand;
|
|
8
|
+
(function (CreateCourseTranslationCommand) {
|
|
9
|
+
CreateCourseTranslationCommand.RequestSchema = models_1.CourseSchema.pick({
|
|
10
|
+
title: true,
|
|
11
|
+
subtitle: true,
|
|
12
|
+
prerequisites: true,
|
|
13
|
+
description: true,
|
|
14
|
+
skills: true,
|
|
15
|
+
}).extend({
|
|
16
|
+
locale: zod_1.z.nativeEnum(rugpt_lib_common_1.LOCALE),
|
|
17
|
+
});
|
|
18
|
+
CreateCourseTranslationCommand.RequestParamSchema = zod_1.z.object({
|
|
19
|
+
uuid: zod_1.z.string().uuid(),
|
|
20
|
+
});
|
|
21
|
+
CreateCourseTranslationCommand.ResponseSchema = zod_1.z.object({
|
|
22
|
+
data: models_1.CourseSchema,
|
|
23
|
+
});
|
|
24
|
+
})(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,20 @@
|
|
|
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
|
+
const rugpt_lib_common_1 = require("@purpleschool/rugpt-lib-common");
|
|
7
|
+
var CreateLessonTranslationCommand;
|
|
8
|
+
(function (CreateLessonTranslationCommand) {
|
|
9
|
+
CreateLessonTranslationCommand.RequestSchema = models_1.LessonSchema.pick({
|
|
10
|
+
title: true,
|
|
11
|
+
}).extend({
|
|
12
|
+
locale: zod_1.z.nativeEnum(rugpt_lib_common_1.LOCALE),
|
|
13
|
+
});
|
|
14
|
+
CreateLessonTranslationCommand.RequestParamSchema = zod_1.z.object({
|
|
15
|
+
uuid: zod_1.z.string().uuid(),
|
|
16
|
+
});
|
|
17
|
+
CreateLessonTranslationCommand.ResponseSchema = zod_1.z.object({
|
|
18
|
+
data: models_1.LessonSchema,
|
|
19
|
+
});
|
|
20
|
+
})(CreateLessonTranslationCommand || (exports.CreateLessonTranslationCommand = CreateLessonTranslationCommand = {}));
|
|
@@ -0,0 +1,20 @@
|
|
|
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
|
+
const rugpt_lib_common_1 = require("@purpleschool/rugpt-lib-common");
|
|
7
|
+
var CreateSectionTranslationCommand;
|
|
8
|
+
(function (CreateSectionTranslationCommand) {
|
|
9
|
+
CreateSectionTranslationCommand.RequestSchema = models_1.SectionSchema.pick({
|
|
10
|
+
title: true,
|
|
11
|
+
}).extend({
|
|
12
|
+
locale: zod_1.z.nativeEnum(rugpt_lib_common_1.LOCALE),
|
|
13
|
+
});
|
|
14
|
+
CreateSectionTranslationCommand.RequestParamSchema = zod_1.z.object({
|
|
15
|
+
uuid: zod_1.z.string().uuid(),
|
|
16
|
+
});
|
|
17
|
+
CreateSectionTranslationCommand.ResponseSchema = zod_1.z.object({
|
|
18
|
+
data: models_1.SectionSchema,
|
|
19
|
+
});
|
|
20
|
+
})(CreateSectionTranslationCommand || (exports.CreateSectionTranslationCommand = CreateSectionTranslationCommand = {}));
|
|
@@ -15,5 +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-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("./update-course-translation.command"), exports);
|
|
24
|
+
__exportStar(require("./update-lesson-translation.command"), exports);
|
|
25
|
+
__exportStar(require("./update-section-translation.command"), exports);
|
|
@@ -0,0 +1,23 @@
|
|
|
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
|
+
const rugpt_lib_common_1 = require("@purpleschool/rugpt-lib-common");
|
|
7
|
+
var UpdateCourseTranslationCommand;
|
|
8
|
+
(function (UpdateCourseTranslationCommand) {
|
|
9
|
+
UpdateCourseTranslationCommand.RequestSchema = models_1.CourseSchema.pick({
|
|
10
|
+
title: true,
|
|
11
|
+
subtitle: true,
|
|
12
|
+
prerequisites: true,
|
|
13
|
+
description: true,
|
|
14
|
+
skills: true,
|
|
15
|
+
}).partial();
|
|
16
|
+
UpdateCourseTranslationCommand.RequestParamSchema = zod_1.z.object({
|
|
17
|
+
uuid: zod_1.z.string().uuid(),
|
|
18
|
+
locale: zod_1.z.nativeEnum(rugpt_lib_common_1.LOCALE),
|
|
19
|
+
});
|
|
20
|
+
UpdateCourseTranslationCommand.ResponseSchema = zod_1.z.object({
|
|
21
|
+
data: models_1.CourseSchema,
|
|
22
|
+
});
|
|
23
|
+
})(UpdateCourseTranslationCommand || (exports.UpdateCourseTranslationCommand = UpdateCourseTranslationCommand = {}));
|
|
@@ -0,0 +1,19 @@
|
|
|
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
|
+
const rugpt_lib_common_1 = require("@purpleschool/rugpt-lib-common");
|
|
7
|
+
var UpdateLessonTranslationCommand;
|
|
8
|
+
(function (UpdateLessonTranslationCommand) {
|
|
9
|
+
UpdateLessonTranslationCommand.RequestSchema = models_1.LessonSchema.pick({
|
|
10
|
+
title: true,
|
|
11
|
+
}).partial();
|
|
12
|
+
UpdateLessonTranslationCommand.RequestParamSchema = zod_1.z.object({
|
|
13
|
+
uuid: zod_1.z.string().uuid(),
|
|
14
|
+
locale: zod_1.z.nativeEnum(rugpt_lib_common_1.LOCALE),
|
|
15
|
+
});
|
|
16
|
+
UpdateLessonTranslationCommand.ResponseSchema = zod_1.z.object({
|
|
17
|
+
data: models_1.LessonSchema,
|
|
18
|
+
});
|
|
19
|
+
})(UpdateLessonTranslationCommand || (exports.UpdateLessonTranslationCommand = UpdateLessonTranslationCommand = {}));
|
|
@@ -0,0 +1,19 @@
|
|
|
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
|
+
const rugpt_lib_common_1 = require("@purpleschool/rugpt-lib-common");
|
|
7
|
+
var UpdateSectionTranslationCommand;
|
|
8
|
+
(function (UpdateSectionTranslationCommand) {
|
|
9
|
+
UpdateSectionTranslationCommand.RequestSchema = models_1.SectionSchema.pick({
|
|
10
|
+
title: true,
|
|
11
|
+
}).partial();
|
|
12
|
+
UpdateSectionTranslationCommand.RequestParamSchema = zod_1.z.object({
|
|
13
|
+
uuid: zod_1.z.string().uuid(),
|
|
14
|
+
locale: zod_1.z.nativeEnum(rugpt_lib_common_1.LOCALE),
|
|
15
|
+
});
|
|
16
|
+
UpdateSectionTranslationCommand.ResponseSchema = zod_1.z.object({
|
|
17
|
+
data: models_1.SectionSchema,
|
|
18
|
+
});
|
|
19
|
+
})(UpdateSectionTranslationCommand || (exports.UpdateSectionTranslationCommand = UpdateSectionTranslationCommand = {}));
|
|
@@ -0,0 +1,24 @@
|
|
|
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
|
+
const rugpt_lib_common_1 = require("@purpleschool/rugpt-lib-common");
|
|
7
|
+
var CreatePageTranslationCommand;
|
|
8
|
+
(function (CreatePageTranslationCommand) {
|
|
9
|
+
CreatePageTranslationCommand.RequestSchema = models_1.PageSchema.pick({
|
|
10
|
+
metaTitle: true,
|
|
11
|
+
metaDescription: true,
|
|
12
|
+
title: true,
|
|
13
|
+
subTitle: true,
|
|
14
|
+
seoTextMd: true,
|
|
15
|
+
}).extend({
|
|
16
|
+
locale: zod_1.z.nativeEnum(rugpt_lib_common_1.LOCALE),
|
|
17
|
+
});
|
|
18
|
+
CreatePageTranslationCommand.RequestParamSchema = zod_1.z.object({
|
|
19
|
+
uuid: zod_1.z.string().uuid(),
|
|
20
|
+
});
|
|
21
|
+
CreatePageTranslationCommand.ResponseSchema = zod_1.z.object({
|
|
22
|
+
data: models_1.PageSchema,
|
|
23
|
+
});
|
|
24
|
+
})(CreatePageTranslationCommand || (exports.CreatePageTranslationCommand = CreatePageTranslationCommand = {}));
|
|
@@ -10,6 +10,11 @@ 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,
|
|
13
18
|
})
|
|
14
19
|
.refine((data) => {
|
|
15
20
|
if (data.type === constants_1.PageType.AI_MODEL) {
|
|
@@ -15,8 +15,10 @@ 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);
|
|
22
23
|
__exportStar(require("./update-page.command"), exports);
|
|
24
|
+
__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
|
+
const rugpt_lib_common_1 = require("@purpleschool/rugpt-lib-common");
|
|
7
|
+
var UpdatePageTranslationCommand;
|
|
8
|
+
(function (UpdatePageTranslationCommand) {
|
|
9
|
+
UpdatePageTranslationCommand.RequestSchema = models_1.PageSchema.pick({
|
|
10
|
+
metaTitle: true,
|
|
11
|
+
metaDescription: true,
|
|
12
|
+
title: true,
|
|
13
|
+
subTitle: true,
|
|
14
|
+
seoTextMd: true,
|
|
15
|
+
}).partial();
|
|
16
|
+
UpdatePageTranslationCommand.RequestParamSchema = zod_1.z.object({
|
|
17
|
+
uuid: zod_1.z.string().uuid(),
|
|
18
|
+
locale: zod_1.z.nativeEnum(rugpt_lib_common_1.LOCALE),
|
|
19
|
+
});
|
|
20
|
+
UpdatePageTranslationCommand.ResponseSchema = zod_1.z.object({
|
|
21
|
+
data: models_1.PageSchema,
|
|
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,21 @@
|
|
|
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
|
+
const rugpt_lib_common_1 = require("@purpleschool/rugpt-lib-common");
|
|
7
|
+
var CreatePromptTranslationCommand;
|
|
8
|
+
(function (CreatePromptTranslationCommand) {
|
|
9
|
+
CreatePromptTranslationCommand.RequestSchema = models_1.PromptSchema.pick({
|
|
10
|
+
title: true,
|
|
11
|
+
content: true,
|
|
12
|
+
}).extend({
|
|
13
|
+
locale: zod_1.z.nativeEnum(rugpt_lib_common_1.LOCALE),
|
|
14
|
+
});
|
|
15
|
+
CreatePromptTranslationCommand.RequestParamSchema = zod_1.z.object({
|
|
16
|
+
uuid: zod_1.z.string().uuid(),
|
|
17
|
+
});
|
|
18
|
+
CreatePromptTranslationCommand.ResponseSchema = zod_1.z.object({
|
|
19
|
+
data: models_1.PromptSchema,
|
|
20
|
+
});
|
|
21
|
+
})(CreatePromptTranslationCommand || (exports.CreatePromptTranslationCommand = CreatePromptTranslationCommand = {}));
|
|
@@ -15,8 +15,10 @@ 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);
|
|
22
24
|
__exportStar(require("./find-prompts-by-topic.command"), exports);
|
|
@@ -0,0 +1,20 @@
|
|
|
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
|
+
const rugpt_lib_common_1 = require("@purpleschool/rugpt-lib-common");
|
|
7
|
+
var UpdatePromptTranslationCommand;
|
|
8
|
+
(function (UpdatePromptTranslationCommand) {
|
|
9
|
+
UpdatePromptTranslationCommand.RequestSchema = models_1.PromptSchema.pick({
|
|
10
|
+
title: true,
|
|
11
|
+
content: true,
|
|
12
|
+
}).partial();
|
|
13
|
+
UpdatePromptTranslationCommand.RequestParamSchema = zod_1.z.object({
|
|
14
|
+
uuid: zod_1.z.string().uuid(),
|
|
15
|
+
locale: zod_1.z.nativeEnum(rugpt_lib_common_1.LOCALE),
|
|
16
|
+
});
|
|
17
|
+
UpdatePromptTranslationCommand.ResponseSchema = zod_1.z.object({
|
|
18
|
+
data: models_1.PromptSchema,
|
|
19
|
+
});
|
|
20
|
+
})(UpdatePromptTranslationCommand || (exports.UpdatePromptTranslationCommand = UpdatePromptTranslationCommand = {}));
|
|
@@ -0,0 +1,22 @@
|
|
|
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
|
+
const rugpt_lib_common_1 = require("@purpleschool/rugpt-lib-common");
|
|
7
|
+
var CreatePromptCategoryTranslationCommand;
|
|
8
|
+
(function (CreatePromptCategoryTranslationCommand) {
|
|
9
|
+
CreatePromptCategoryTranslationCommand.RequestSchema = models_1.PromptCategorySchema.pick({
|
|
10
|
+
title: true,
|
|
11
|
+
metaTitle: true,
|
|
12
|
+
metaDescription: true,
|
|
13
|
+
}).extend({
|
|
14
|
+
locale: zod_1.z.nativeEnum(rugpt_lib_common_1.LOCALE),
|
|
15
|
+
});
|
|
16
|
+
CreatePromptCategoryTranslationCommand.RequestParamSchema = zod_1.z.object({
|
|
17
|
+
uuid: zod_1.z.string().uuid(),
|
|
18
|
+
});
|
|
19
|
+
CreatePromptCategoryTranslationCommand.ResponseSchema = zod_1.z.object({
|
|
20
|
+
data: models_1.PromptCategorySchema,
|
|
21
|
+
});
|
|
22
|
+
})(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
|
});
|
|
@@ -15,8 +15,10 @@ 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);
|
|
21
23
|
__exportStar(require("./find-prompt-category-by-alias.command"), exports);
|
|
22
24
|
__exportStar(require("./find-prompt-category-by-uuid.command"), exports);
|
|
@@ -0,0 +1,21 @@
|
|
|
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
|
+
const rugpt_lib_common_1 = require("@purpleschool/rugpt-lib-common");
|
|
7
|
+
var UpdatePromptCategoryTranslationCommand;
|
|
8
|
+
(function (UpdatePromptCategoryTranslationCommand) {
|
|
9
|
+
UpdatePromptCategoryTranslationCommand.RequestSchema = models_1.PromptCategorySchema.pick({
|
|
10
|
+
title: true,
|
|
11
|
+
metaTitle: true,
|
|
12
|
+
metaDescription: true,
|
|
13
|
+
}).partial();
|
|
14
|
+
UpdatePromptCategoryTranslationCommand.RequestParamSchema = zod_1.z.object({
|
|
15
|
+
uuid: zod_1.z.string().uuid(),
|
|
16
|
+
locale: zod_1.z.nativeEnum(rugpt_lib_common_1.LOCALE),
|
|
17
|
+
});
|
|
18
|
+
UpdatePromptCategoryTranslationCommand.ResponseSchema = zod_1.z.object({
|
|
19
|
+
data: models_1.PromptCategorySchema,
|
|
20
|
+
});
|
|
21
|
+
})(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();
|
|
@@ -0,0 +1,24 @@
|
|
|
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
|
+
const rugpt_lib_common_1 = require("@purpleschool/rugpt-lib-common");
|
|
7
|
+
var CreatePromptTopicTranslationCommand;
|
|
8
|
+
(function (CreatePromptTopicTranslationCommand) {
|
|
9
|
+
CreatePromptTopicTranslationCommand.RequestSchema = models_1.PromptTopicSchema.pick({
|
|
10
|
+
title: true,
|
|
11
|
+
content: true,
|
|
12
|
+
metaTitle: true,
|
|
13
|
+
metaDescription: true,
|
|
14
|
+
seoText: true,
|
|
15
|
+
}).extend({
|
|
16
|
+
locale: zod_1.z.nativeEnum(rugpt_lib_common_1.LOCALE),
|
|
17
|
+
});
|
|
18
|
+
CreatePromptTopicTranslationCommand.RequestParamSchema = zod_1.z.object({
|
|
19
|
+
uuid: zod_1.z.string().uuid(),
|
|
20
|
+
});
|
|
21
|
+
CreatePromptTopicTranslationCommand.ResponseSchema = zod_1.z.object({
|
|
22
|
+
data: models_1.PromptTopicSchema,
|
|
23
|
+
});
|
|
24
|
+
})(CreatePromptTopicTranslationCommand || (exports.CreatePromptTopicTranslationCommand = CreatePromptTopicTranslationCommand = {}));
|
|
@@ -10,6 +10,11 @@ var CreatePromptTopicCommand;
|
|
|
10
10
|
(function (CreatePromptTopicCommand) {
|
|
11
11
|
CreatePromptTopicCommand.RequestSchema = models_1.PromptTopicSchema.omit({
|
|
12
12
|
uuid: true,
|
|
13
|
+
title: true,
|
|
14
|
+
content: true,
|
|
15
|
+
metaTitle: true,
|
|
16
|
+
metaDescription: true,
|
|
17
|
+
seoText: true,
|
|
13
18
|
createdAt: true,
|
|
14
19
|
updatedAt: true,
|
|
15
20
|
});
|
|
@@ -15,8 +15,10 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./create-prompt-topic.command"), exports);
|
|
18
|
+
__exportStar(require("./create-prompt-topic-translation.command"), exports);
|
|
18
19
|
__exportStar(require("./delete-prompt-topic.command"), exports);
|
|
19
20
|
__exportStar(require("./update-prompt-topic.command"), exports);
|
|
21
|
+
__exportStar(require("./update-prompt-topic-translation.command"), exports);
|
|
20
22
|
__exportStar(require("./find-prompt-topic-by-category.command"), exports);
|
|
21
23
|
__exportStar(require("./find-prompt-topic-by-alias.command"), exports);
|
|
22
24
|
__exportStar(require("./find-all-prompt-topics.command"), exports);
|
|
@@ -0,0 +1,23 @@
|
|
|
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
|
+
const rugpt_lib_common_1 = require("@purpleschool/rugpt-lib-common");
|
|
7
|
+
var UpdatePromptTopicTranslationCommand;
|
|
8
|
+
(function (UpdatePromptTopicTranslationCommand) {
|
|
9
|
+
UpdatePromptTopicTranslationCommand.RequestSchema = models_1.PromptTopicSchema.pick({
|
|
10
|
+
title: true,
|
|
11
|
+
content: true,
|
|
12
|
+
metaTitle: true,
|
|
13
|
+
metaDescription: true,
|
|
14
|
+
seoText: true,
|
|
15
|
+
}).partial();
|
|
16
|
+
UpdatePromptTopicTranslationCommand.RequestParamSchema = zod_1.z.object({
|
|
17
|
+
uuid: zod_1.z.string().uuid(),
|
|
18
|
+
locale: zod_1.z.nativeEnum(rugpt_lib_common_1.LOCALE),
|
|
19
|
+
});
|
|
20
|
+
UpdatePromptTopicTranslationCommand.ResponseSchema = zod_1.z.object({
|
|
21
|
+
data: models_1.PromptTopicSchema,
|
|
22
|
+
});
|
|
23
|
+
})(UpdatePromptTopicTranslationCommand || (exports.UpdatePromptTopicTranslationCommand = UpdatePromptTopicTranslationCommand = {}));
|
|
@@ -10,6 +10,11 @@ var UpdatePromptTopicCommand;
|
|
|
10
10
|
(function (UpdatePromptTopicCommand) {
|
|
11
11
|
UpdatePromptTopicCommand.RequestSchema = models_1.PromptTopicSchema.omit({
|
|
12
12
|
uuid: true,
|
|
13
|
+
title: true,
|
|
14
|
+
content: true,
|
|
15
|
+
metaTitle: true,
|
|
16
|
+
metaDescription: true,
|
|
17
|
+
seoText: true,
|
|
13
18
|
createdAt: true,
|
|
14
19
|
updatedAt: true,
|
|
15
20
|
}).partial();
|
|
@@ -0,0 +1,21 @@
|
|
|
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
|
+
const rugpt_lib_common_1 = require("@purpleschool/rugpt-lib-common");
|
|
7
|
+
var CreateQuestionTranslationCommand;
|
|
8
|
+
(function (CreateQuestionTranslationCommand) {
|
|
9
|
+
CreateQuestionTranslationCommand.RequestSchema = models_1.QuestionSchema.pick({
|
|
10
|
+
question: true,
|
|
11
|
+
answer: true,
|
|
12
|
+
}).extend({
|
|
13
|
+
locale: zod_1.z.nativeEnum(rugpt_lib_common_1.LOCALE),
|
|
14
|
+
});
|
|
15
|
+
CreateQuestionTranslationCommand.RequestParamSchema = zod_1.z.object({
|
|
16
|
+
uuid: zod_1.z.string().uuid(),
|
|
17
|
+
});
|
|
18
|
+
CreateQuestionTranslationCommand.ResponseSchema = zod_1.z.object({
|
|
19
|
+
data: models_1.QuestionSchema,
|
|
20
|
+
});
|
|
21
|
+
})(CreateQuestionTranslationCommand || (exports.CreateQuestionTranslationCommand = CreateQuestionTranslationCommand = {}));
|
|
@@ -15,6 +15,8 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./create-question.command"), exports);
|
|
18
|
+
__exportStar(require("./create-question-translation.command"), exports);
|
|
18
19
|
__exportStar(require("./delete-question.command"), exports);
|
|
19
20
|
__exportStar(require("./find-question.command"), exports);
|
|
20
21
|
__exportStar(require("./update-question.command"), exports);
|
|
22
|
+
__exportStar(require("./update-question-translation.command"), exports);
|
|
@@ -0,0 +1,20 @@
|
|
|
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
|
+
const rugpt_lib_common_1 = require("@purpleschool/rugpt-lib-common");
|
|
7
|
+
var UpdateQuestionTranslationCommand;
|
|
8
|
+
(function (UpdateQuestionTranslationCommand) {
|
|
9
|
+
UpdateQuestionTranslationCommand.RequestSchema = models_1.QuestionSchema.pick({
|
|
10
|
+
question: true,
|
|
11
|
+
answer: true,
|
|
12
|
+
}).partial();
|
|
13
|
+
UpdateQuestionTranslationCommand.RequestParamSchema = zod_1.z.object({
|
|
14
|
+
uuid: zod_1.z.string().uuid(),
|
|
15
|
+
locale: zod_1.z.nativeEnum(rugpt_lib_common_1.LOCALE),
|
|
16
|
+
});
|
|
17
|
+
UpdateQuestionTranslationCommand.ResponseSchema = zod_1.z.object({
|
|
18
|
+
data: models_1.QuestionSchema,
|
|
19
|
+
});
|
|
20
|
+
})(UpdateQuestionTranslationCommand || (exports.UpdateQuestionTranslationCommand = UpdateQuestionTranslationCommand = {}));
|
|
@@ -2,11 +2,15 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.GetTeamAccountStatisticsByMonthCommand = 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 GetTeamAccountStatisticsByMonthCommand;
|
|
7
8
|
(function (GetTeamAccountStatisticsByMonthCommand) {
|
|
8
9
|
GetTeamAccountStatisticsByMonthCommand.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)
|
|
@@ -15,18 +19,7 @@ var GetTeamAccountStatisticsByMonthCommand;
|
|
|
15
19
|
});
|
|
16
20
|
GetTeamAccountStatisticsByMonthCommand.TeamAccountStatisticsByMonthItemSchema = zod_1.z.object({
|
|
17
21
|
month: zod_1.z.string(),
|
|
18
|
-
|
|
19
|
-
total_audios: zod_1.z.number(),
|
|
20
|
-
total_images: zod_1.z.number(),
|
|
21
|
-
total_videos: zod_1.z.number(),
|
|
22
|
-
total_presentations: zod_1.z.number(),
|
|
23
|
-
total_paraphrases: zod_1.z.number(),
|
|
24
|
-
writers: zod_1.z.object({
|
|
25
|
-
total_writers: zod_1.z.number(),
|
|
26
|
-
total_writer_actions: zod_1.z.number(),
|
|
27
|
-
}),
|
|
28
|
-
total_video_edits: zod_1.z.number(),
|
|
29
|
-
total_musics: zod_1.z.number(),
|
|
22
|
+
statistics: zod_1.z.record(zod_1.z.nativeEnum(constants_1.STATISTICS_REQUEST_TYPE), zod_1.z.number()),
|
|
30
23
|
});
|
|
31
24
|
GetTeamAccountStatisticsByMonthCommand.ResponseSchema = zod_1.z.object({
|
|
32
25
|
data: zod_1.z.array(GetTeamAccountStatisticsByMonthCommand.TeamAccountStatisticsByMonthItemSchema),
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.GetTeamAccountStatisticsOverviewCommand = 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 GetTeamAccountStatisticsOverviewCommand;
|
|
7
8
|
(function (GetTeamAccountStatisticsOverviewCommand) {
|
|
@@ -13,7 +14,10 @@ var GetTeamAccountStatisticsOverviewCommand;
|
|
|
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
|
memberUserId: zod_1.z.string().uuid().optional(),
|
|
18
22
|
});
|
|
19
23
|
GetTeamAccountStatisticsOverviewCommand.TeamAccountStatisticsOverviewItemSchema = zod_1.z.object({
|