@purpleschool/gptbot 0.12.2-stage-2 → 0.12.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/api/controllers/http/blog.ts +0 -2
- package/api/controllers/http/category.ts +0 -2
- package/api/controllers/http/course.ts +0 -8
- package/api/controllers/http/page.ts +0 -2
- package/api/controllers/http/prompt-category.ts +0 -2
- package/api/controllers/http/prompt-topic.ts +0 -2
- package/api/controllers/http/prompt.ts +0 -2
- package/api/controllers/http/question.ts +0 -2
- package/api/controllers/http/team-account.ts +0 -1
- package/api/controllers/http/writer.ts +6 -0
- package/api/routes.ts +20 -46
- package/build/api/controllers/http/blog.js +0 -2
- package/build/api/controllers/http/category.js +0 -2
- package/build/api/controllers/http/course.js +0 -6
- package/build/api/controllers/http/page.js +0 -2
- package/build/api/controllers/http/prompt-category.js +0 -2
- package/build/api/controllers/http/prompt-topic.js +0 -2
- package/build/api/controllers/http/prompt.js +0 -2
- package/build/api/controllers/http/question.js +0 -2
- package/build/api/controllers/http/team-account.js +0 -1
- package/build/api/controllers/http/writer.js +5 -0
- package/build/api/routes.js +10 -23
- package/build/commands/blog/create-post.command.js +0 -6
- package/build/commands/blog/index.js +0 -2
- package/build/commands/blog/update-post.command.js +0 -6
- package/build/commands/cabinet/get-user-statistics-by-month.command.js +12 -1
- package/build/commands/category/create-category.command.js +0 -4
- package/build/commands/category/index.js +0 -2
- package/build/commands/category/update-category.command.js +0 -4
- package/build/commands/course/create-course.command.js +0 -5
- package/build/commands/course/index.js +0 -6
- package/build/commands/page/create-page.command.js +0 -5
- package/build/commands/page/index.js +0 -2
- package/build/commands/page/update-page.command.js +0 -5
- package/build/commands/prompt/create-prompt.command.js +0 -2
- package/build/commands/prompt/index.js +0 -2
- package/build/commands/prompt/update-prompt.command.js +0 -2
- package/build/commands/prompt-category/create-prompt-category.command.js +0 -3
- package/build/commands/prompt-category/index.js +0 -2
- package/build/commands/prompt-category/update-prompt-category.command.js +0 -3
- package/build/commands/prompt-topic/create-prompt-topic.command.js +0 -5
- package/build/commands/prompt-topic/index.js +0 -2
- package/build/commands/prompt-topic/update-prompt-topic.command.js +0 -5
- package/build/commands/question/create-question.command.js +0 -2
- package/build/commands/question/index.js +0 -2
- package/build/commands/question/update-question.command.js +0 -2
- package/build/commands/team-account/get-team-account-statistics-by-month.command.js +12 -1
- package/build/commands/team-account/index.js +0 -1
- package/build/commands/tools/presentation/create-presentation.command.js +2 -0
- package/build/commands/tools/presentation/generate-presentation-slides.command.js +3 -0
- package/build/commands/tools/presentation/update-presentation.command.js +1 -0
- package/build/commands/tools/writer/collect-writer-document-sources.command.js +15 -0
- package/build/commands/tools/writer/confirm-source-citation-metadata.command.js +19 -0
- package/build/commands/tools/writer/get-writer-document-sources.command.js +14 -0
- package/build/commands/tools/writer/index.js +4 -0
- package/build/commands/tools/writer/upload-writer-source.command.js +17 -0
- package/build/commands/unregistered-user/patch-locale.command.js +3 -3
- package/build/commands/user/get-me.command.js +1 -2
- package/build/commands/user/patch-locale.command.js +3 -3
- package/build/constants/cabinet/enums/index.js +0 -1
- package/build/constants/presentation/enums/index.js +1 -0
- package/build/constants/presentation/enums/presentation-target-audience.enum.js +10 -0
- package/build/constants/user/enums/index.js +1 -0
- package/build/constants/user/enums/locale.enum.js +8 -0
- package/build/constants/writer/enums/index.js +3 -0
- package/build/constants/writer/enums/writer-document-stage.enum.js +6 -0
- package/build/constants/writer/enums/writer-source-origin.enum.js +8 -0
- package/build/constants/writer/enums/writer-source-status.enum.js +9 -0
- package/build/constants/writer/enums/writer-source-type.enum.js +8 -0
- package/build/models/tools/presentation/index.js +1 -0
- package/build/models/tools/presentation/presentation-template.schema.js +2 -0
- package/build/models/tools/presentation/presentation-title-page.schema.js +9 -0
- package/build/models/tools/presentation/presentation.schema.js +3 -0
- package/build/models/tools/presentation/slide-content-edit.schema.js +36 -24
- package/build/models/tools/presentation/slide-content.schema.js +34 -24
- package/build/models/tools/writer/index.js +2 -0
- package/build/models/tools/writer/writer-document-type.schema.js +2 -0
- package/build/models/tools/writer/writer-document.schema.js +3 -0
- package/build/models/tools/writer/writer-source-bibliographic-metadata.schema.js +27 -0
- package/build/models/tools/writer/writer-source.schema.js +20 -0
- package/build/models/user.schema.js +2 -2
- package/commands/blog/create-post.command.ts +0 -6
- package/commands/blog/index.ts +0 -2
- package/commands/blog/update-post.command.ts +0 -6
- package/commands/cabinet/get-user-statistics-by-month.command.ts +13 -6
- package/commands/category/create-category.command.ts +0 -4
- package/commands/category/index.ts +0 -2
- package/commands/category/update-category.command.ts +0 -4
- package/commands/course/create-course.command.ts +0 -5
- package/commands/course/index.ts +0 -6
- package/commands/page/create-page.command.ts +0 -5
- package/commands/page/index.ts +0 -2
- package/commands/page/update-page.command.ts +0 -5
- package/commands/prompt/create-prompt.command.ts +0 -2
- package/commands/prompt/index.ts +0 -2
- package/commands/prompt/update-prompt.command.ts +0 -2
- package/commands/prompt-category/create-prompt-category.command.ts +0 -3
- package/commands/prompt-category/index.ts +0 -2
- package/commands/prompt-category/update-prompt-category.command.ts +0 -3
- package/commands/prompt-topic/create-prompt-topic.command.ts +0 -5
- package/commands/prompt-topic/index.ts +0 -2
- package/commands/prompt-topic/update-prompt-topic.command.ts +0 -5
- package/commands/question/create-question.command.ts +0 -2
- package/commands/question/index.ts +0 -2
- package/commands/question/update-question.command.ts +0 -2
- package/commands/team-account/get-team-account-statistics-by-month.command.ts +13 -6
- package/commands/team-account/index.ts +0 -1
- package/commands/tools/presentation/create-presentation.command.ts +2 -0
- package/commands/tools/presentation/generate-presentation-slides.command.ts +10 -1
- package/commands/tools/presentation/update-presentation.command.ts +1 -0
- package/commands/tools/writer/collect-writer-document-sources.command.ts +17 -0
- package/commands/tools/writer/confirm-source-citation-metadata.command.ts +21 -0
- package/commands/tools/writer/get-writer-document-sources.command.ts +14 -0
- package/commands/tools/writer/index.ts +4 -0
- package/commands/tools/writer/upload-writer-source.command.ts +19 -0
- package/commands/unregistered-user/patch-locale.command.ts +1 -1
- package/commands/user/get-me.command.ts +1 -2
- package/commands/user/patch-locale.command.ts +1 -1
- package/constants/cabinet/enums/index.ts +0 -1
- package/constants/presentation/enums/index.ts +1 -0
- package/constants/presentation/enums/presentation-target-audience.enum.ts +6 -0
- package/constants/user/enums/index.ts +1 -0
- package/constants/user/enums/locale.enum.ts +4 -0
- package/constants/writer/enums/index.ts +3 -0
- package/constants/writer/enums/writer-document-stage.enum.ts +8 -0
- package/constants/writer/enums/writer-source-origin.enum.ts +4 -0
- package/constants/writer/enums/writer-source-status.enum.ts +5 -0
- package/constants/writer/enums/writer-source-type.enum.ts +4 -0
- package/models/tools/presentation/index.ts +1 -0
- package/models/tools/presentation/presentation-template.schema.ts +2 -0
- package/models/tools/presentation/presentation-title-page.schema.ts +9 -0
- package/models/tools/presentation/presentation.schema.ts +8 -1
- package/models/tools/presentation/slide-content-edit.schema.ts +36 -24
- package/models/tools/presentation/slide-content.schema.ts +50 -40
- package/models/tools/writer/index.ts +2 -0
- package/models/tools/writer/writer-document-type.schema.ts +2 -0
- package/models/tools/writer/writer-document.schema.ts +3 -0
- package/models/tools/writer/writer-source-bibliographic-metadata.schema.ts +31 -0
- package/models/tools/writer/writer-source.schema.ts +20 -0
- package/models/user.schema.ts +1 -1
- package/package.json +1 -2
- package/build/commands/blog/create-post-translation.command.js +0 -25
- package/build/commands/blog/update-post-translation.command.js +0 -24
- package/build/commands/category/create-category-translation.command.js +0 -23
- package/build/commands/category/update-category-translation.command.js +0 -22
- package/build/commands/course/create-course-translation.command.js +0 -24
- package/build/commands/course/create-lesson-translation.command.js +0 -20
- package/build/commands/course/create-section-translation.command.js +0 -20
- package/build/commands/course/update-course-translation.command.js +0 -23
- package/build/commands/course/update-lesson-translation.command.js +0 -19
- package/build/commands/course/update-section-translation.command.js +0 -19
- package/build/commands/page/create-page-translation.command.js +0 -24
- package/build/commands/page/update-page-translation.command.js +0 -23
- package/build/commands/prompt/create-prompt-translation.command.js +0 -21
- package/build/commands/prompt/update-prompt-translation.command.js +0 -20
- package/build/commands/prompt-category/create-prompt-category-translation.command.js +0 -22
- package/build/commands/prompt-category/update-prompt-category-translation.command.js +0 -21
- package/build/commands/prompt-topic/create-prompt-topic-translation.command.js +0 -24
- package/build/commands/prompt-topic/update-prompt-topic-translation.command.js +0 -23
- package/build/commands/question/create-question-translation.command.js +0 -21
- package/build/commands/question/update-question-translation.command.js +0 -20
- package/build/commands/team-account/update-team-account-invite.command.js +0 -17
- package/build/constants/cabinet/enums/statistics-request-type.enum.js +0 -22
- package/commands/blog/create-post-translation.command.ts +0 -30
- package/commands/blog/update-post-translation.command.ts +0 -29
- package/commands/category/create-category-translation.command.ts +0 -28
- package/commands/category/update-category-translation.command.ts +0 -27
- package/commands/course/create-course-translation.command.ts +0 -29
- package/commands/course/create-lesson-translation.command.ts +0 -25
- package/commands/course/create-section-translation.command.ts +0 -25
- package/commands/course/update-course-translation.command.ts +0 -28
- package/commands/course/update-lesson-translation.command.ts +0 -24
- package/commands/course/update-section-translation.command.ts +0 -24
- package/commands/page/create-page-translation.command.ts +0 -29
- package/commands/page/update-page-translation.command.ts +0 -28
- package/commands/prompt/create-prompt-translation.command.ts +0 -26
- package/commands/prompt/update-prompt-translation.command.ts +0 -25
- package/commands/prompt-category/create-prompt-category-translation.command.ts +0 -27
- package/commands/prompt-category/update-prompt-category-translation.command.ts +0 -26
- package/commands/prompt-topic/create-prompt-topic-translation.command.ts +0 -29
- package/commands/prompt-topic/update-prompt-topic-translation.command.ts +0 -28
- package/commands/question/create-question-translation.command.ts +0 -26
- package/commands/question/update-question-translation.command.ts +0 -25
- package/commands/team-account/update-team-account-invite.command.ts +0 -22
- package/constants/cabinet/enums/statistics-request-type.enum.ts +0 -18
|
@@ -9,10 +9,6 @@ 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,
|
|
16
12
|
}).partial();
|
|
17
13
|
UpdateCategoryCommand.RequestParamSchema = zod_1.z.object({
|
|
18
14
|
uuid: zod_1.z.string().uuid(),
|
|
@@ -7,11 +7,6 @@ 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,
|
|
15
10
|
createdAt: true,
|
|
16
11
|
updatedAt: true,
|
|
17
12
|
});
|
|
@@ -15,11 +15,5 @@ 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);
|
|
21
18
|
__exportStar(require("./find-course-by-alias.command"), exports);
|
|
22
19
|
__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);
|
|
@@ -10,11 +10,6 @@ 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
13
|
})
|
|
19
14
|
.refine((data) => {
|
|
20
15
|
if (data.type === constants_1.PageType.AI_MODEL) {
|
|
@@ -15,10 +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-page.command"), exports);
|
|
18
|
-
__exportStar(require("./create-page-translation.command"), exports);
|
|
19
18
|
__exportStar(require("./delete-page.command"), exports);
|
|
20
19
|
__exportStar(require("./find-page-by-alias.command"), exports);
|
|
21
20
|
__exportStar(require("./find-pages-by-criteria.command"), exports);
|
|
22
21
|
__exportStar(require("./find-page.command"), exports);
|
|
23
22
|
__exportStar(require("./update-page.command"), exports);
|
|
24
|
-
__exportStar(require("./update-page-translation.command"), exports);
|
|
@@ -9,11 +9,6 @@ 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,
|
|
17
12
|
}).partial();
|
|
18
13
|
UpdatePageCommand.RequestParamSchema = zod_1.z.object({
|
|
19
14
|
uuid: zod_1.z.string().uuid(),
|
|
@@ -15,10 +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-prompt.command"), exports);
|
|
18
|
-
__exportStar(require("./create-prompt-translation.command"), exports);
|
|
19
18
|
__exportStar(require("./delete-prompt.command"), exports);
|
|
20
19
|
__exportStar(require("./update-prompt.command"), exports);
|
|
21
|
-
__exportStar(require("./update-prompt-translation.command"), exports);
|
|
22
20
|
__exportStar(require("./find-prompt-by-uuid.command"), exports);
|
|
23
21
|
__exportStar(require("./find-all-prompts.command"), exports);
|
|
24
22
|
__exportStar(require("./find-prompts-by-topic.command"), exports);
|
|
@@ -10,9 +10,6 @@ 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,
|
|
16
13
|
createdAt: true,
|
|
17
14
|
updatedAt: true,
|
|
18
15
|
});
|
|
@@ -15,10 +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-prompt-category.command"), exports);
|
|
18
|
-
__exportStar(require("./create-prompt-category-translation.command"), exports);
|
|
19
18
|
__exportStar(require("./delete-prompt-category.command"), exports);
|
|
20
19
|
__exportStar(require("./update-prompt-category.command"), exports);
|
|
21
|
-
__exportStar(require("./update-prompt-category-translation.command"), exports);
|
|
22
20
|
__exportStar(require("./find-all-prompt-categories.command"), exports);
|
|
23
21
|
__exportStar(require("./find-prompt-category-by-alias.command"), exports);
|
|
24
22
|
__exportStar(require("./find-prompt-category-by-uuid.command"), exports);
|
|
@@ -10,9 +10,6 @@ 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,
|
|
16
13
|
createdAt: true,
|
|
17
14
|
updatedAt: true,
|
|
18
15
|
}).partial();
|
|
@@ -10,11 +10,6 @@ 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,
|
|
18
13
|
createdAt: true,
|
|
19
14
|
updatedAt: true,
|
|
20
15
|
});
|
|
@@ -15,10 +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-prompt-topic.command"), exports);
|
|
18
|
-
__exportStar(require("./create-prompt-topic-translation.command"), exports);
|
|
19
18
|
__exportStar(require("./delete-prompt-topic.command"), exports);
|
|
20
19
|
__exportStar(require("./update-prompt-topic.command"), exports);
|
|
21
|
-
__exportStar(require("./update-prompt-topic-translation.command"), exports);
|
|
22
20
|
__exportStar(require("./find-prompt-topic-by-category.command"), exports);
|
|
23
21
|
__exportStar(require("./find-prompt-topic-by-alias.command"), exports);
|
|
24
22
|
__exportStar(require("./find-all-prompt-topics.command"), exports);
|
|
@@ -10,11 +10,6 @@ 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,
|
|
18
13
|
createdAt: true,
|
|
19
14
|
updatedAt: true,
|
|
20
15
|
}).partial();
|
|
@@ -15,8 +15,6 @@ 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);
|
|
19
18
|
__exportStar(require("./delete-question.command"), exports);
|
|
20
19
|
__exportStar(require("./find-question.command"), exports);
|
|
21
20
|
__exportStar(require("./update-question.command"), exports);
|
|
22
|
-
__exportStar(require("./update-question-translation.command"), exports);
|
|
@@ -15,7 +15,18 @@ var GetTeamAccountStatisticsByMonthCommand;
|
|
|
15
15
|
});
|
|
16
16
|
GetTeamAccountStatisticsByMonthCommand.TeamAccountStatisticsByMonthItemSchema = zod_1.z.object({
|
|
17
17
|
month: zod_1.z.string(),
|
|
18
|
-
|
|
18
|
+
total_texts: zod_1.z.number(),
|
|
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(),
|
|
19
30
|
});
|
|
20
31
|
GetTeamAccountStatisticsByMonthCommand.ResponseSchema = zod_1.z.object({
|
|
21
32
|
data: zod_1.z.array(GetTeamAccountStatisticsByMonthCommand.TeamAccountStatisticsByMonthItemSchema),
|
|
@@ -18,7 +18,6 @@ __exportStar(require("./create-team-account.command"), exports);
|
|
|
18
18
|
__exportStar(require("./update-team-account.command"), exports);
|
|
19
19
|
__exportStar(require("./cancel-team-trial-subscription.command"), exports);
|
|
20
20
|
__exportStar(require("./invite-team-account-member.command"), exports);
|
|
21
|
-
__exportStar(require("./update-team-account-invite.command"), exports);
|
|
22
21
|
__exportStar(require("./accept-team-account-invite.command"), exports);
|
|
23
22
|
__exportStar(require("./remove-team-account-member.command"), exports);
|
|
24
23
|
__exportStar(require("./leave-team-account-member.command"), exports);
|
|
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.CreatePresentationCommand = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const presentation_1 = require("../../../models/tools/presentation");
|
|
6
|
+
const constants_1 = require("../../../constants");
|
|
6
7
|
var CreatePresentationCommand;
|
|
7
8
|
(function (CreatePresentationCommand) {
|
|
8
9
|
CreatePresentationCommand.RequestSchema = zod_1.z.object({
|
|
@@ -10,6 +11,7 @@ var CreatePresentationCommand;
|
|
|
10
11
|
slideCount: zod_1.z.number().min(1).max(20),
|
|
11
12
|
templateId: zod_1.z.string().uuid(),
|
|
12
13
|
languageId: zod_1.z.string().uuid(),
|
|
14
|
+
targetAudience: zod_1.z.nativeEnum(constants_1.PRESENTATION_TARGET_AUDIENCE).optional(),
|
|
13
15
|
});
|
|
14
16
|
CreatePresentationCommand.ResponseSchema = zod_1.z.object({
|
|
15
17
|
data: presentation_1.PresentationSchema,
|
|
@@ -8,6 +8,9 @@ var GeneratePresentationSlidesCommand;
|
|
|
8
8
|
GeneratePresentationSlidesCommand.RequestParamsSchema = zod_1.z.object({
|
|
9
9
|
uuid: zod_1.z.string().uuid(),
|
|
10
10
|
});
|
|
11
|
+
GeneratePresentationSlidesCommand.RequestSchema = zod_1.z.object({
|
|
12
|
+
titlePage: presentation_1.PresentationTitlePageSchema.optional().nullable(),
|
|
13
|
+
});
|
|
11
14
|
GeneratePresentationSlidesCommand.ResponseSchema = zod_1.z.object({
|
|
12
15
|
data: presentation_1.PresentationSchema,
|
|
13
16
|
});
|
|
@@ -11,6 +11,7 @@ var UpdatePresentationCommand;
|
|
|
11
11
|
UpdatePresentationCommand.RequestBodySchema = presentation_1.PresentationSchema.pick({
|
|
12
12
|
title: true,
|
|
13
13
|
templateId: true,
|
|
14
|
+
titlePage: true,
|
|
14
15
|
}).partial();
|
|
15
16
|
UpdatePresentationCommand.ResponseSchema = zod_1.z.object({
|
|
16
17
|
data: presentation_1.PresentationSchema,
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CollectWriterDocumentSourcesCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const models_1 = require("../../../models");
|
|
6
|
+
var CollectWriterDocumentSourcesCommand;
|
|
7
|
+
(function (CollectWriterDocumentSourcesCommand) {
|
|
8
|
+
CollectWriterDocumentSourcesCommand.RequestParamsSchema = zod_1.z.object({
|
|
9
|
+
uuid: zod_1.z.string().uuid(),
|
|
10
|
+
});
|
|
11
|
+
CollectWriterDocumentSourcesCommand.RequestBodySchema = zod_1.z.object({});
|
|
12
|
+
CollectWriterDocumentSourcesCommand.ResponseSchema = zod_1.z.object({
|
|
13
|
+
data: models_1.WriterDocumentSchema,
|
|
14
|
+
});
|
|
15
|
+
})(CollectWriterDocumentSourcesCommand || (exports.CollectWriterDocumentSourcesCommand = CollectWriterDocumentSourcesCommand = {}));
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ConfirmSourceCitationMetadataCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const models_1 = require("../../../models");
|
|
6
|
+
const models_2 = require("../../../models");
|
|
7
|
+
var ConfirmSourceCitationMetadataCommand;
|
|
8
|
+
(function (ConfirmSourceCitationMetadataCommand) {
|
|
9
|
+
ConfirmSourceCitationMetadataCommand.RequestParamsSchema = zod_1.z.object({
|
|
10
|
+
docId: zod_1.z.string().uuid(),
|
|
11
|
+
sourceId: zod_1.z.string().uuid(),
|
|
12
|
+
});
|
|
13
|
+
ConfirmSourceCitationMetadataCommand.RequestBodySchema = zod_1.z.object({
|
|
14
|
+
bibliographicMetadata: models_2.WriterSourceBibliographicMetadataSchema,
|
|
15
|
+
});
|
|
16
|
+
ConfirmSourceCitationMetadataCommand.ResponseSchema = zod_1.z.object({
|
|
17
|
+
data: models_1.WriterSourceSchema,
|
|
18
|
+
});
|
|
19
|
+
})(ConfirmSourceCitationMetadataCommand || (exports.ConfirmSourceCitationMetadataCommand = ConfirmSourceCitationMetadataCommand = {}));
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GetWriterDocumentSourcesCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const models_1 = require("../../../models");
|
|
6
|
+
var GetWriterDocumentSourcesCommand;
|
|
7
|
+
(function (GetWriterDocumentSourcesCommand) {
|
|
8
|
+
GetWriterDocumentSourcesCommand.RequestParamsSchema = zod_1.z.object({
|
|
9
|
+
uuid: zod_1.z.string().uuid(),
|
|
10
|
+
});
|
|
11
|
+
GetWriterDocumentSourcesCommand.ResponseSchema = zod_1.z.object({
|
|
12
|
+
data: zod_1.z.array(models_1.WriterSourceSchema),
|
|
13
|
+
});
|
|
14
|
+
})(GetWriterDocumentSourcesCommand || (exports.GetWriterDocumentSourcesCommand = GetWriterDocumentSourcesCommand = {}));
|
|
@@ -32,3 +32,7 @@ __exportStar(require("./writer-fix-errors.command"), exports);
|
|
|
32
32
|
__exportStar(require("./writer-generate-text.command"), exports);
|
|
33
33
|
__exportStar(require("./export-writer-document-as-docx.command"), exports);
|
|
34
34
|
__exportStar(require("./set-reaction.writer-document.command"), exports);
|
|
35
|
+
__exportStar(require("./collect-writer-document-sources.command"), exports);
|
|
36
|
+
__exportStar(require("./get-writer-document-sources.command"), exports);
|
|
37
|
+
__exportStar(require("./upload-writer-source.command"), exports);
|
|
38
|
+
__exportStar(require("./confirm-source-citation-metadata.command"), exports);
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UploadWriterSourceCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const models_1 = require("../../../models");
|
|
6
|
+
var UploadWriterSourceCommand;
|
|
7
|
+
(function (UploadWriterSourceCommand) {
|
|
8
|
+
UploadWriterSourceCommand.RequestParamsSchema = zod_1.z.object({
|
|
9
|
+
uuid: zod_1.z.string().uuid(),
|
|
10
|
+
});
|
|
11
|
+
UploadWriterSourceCommand.RequestBodySchema = zod_1.z.object({
|
|
12
|
+
fileId: zod_1.z.string().uuid(),
|
|
13
|
+
});
|
|
14
|
+
UploadWriterSourceCommand.ResponseSchema = zod_1.z.object({
|
|
15
|
+
data: models_1.WriterSourceSchema,
|
|
16
|
+
});
|
|
17
|
+
})(UploadWriterSourceCommand || (exports.UploadWriterSourceCommand = UploadWriterSourceCommand = {}));
|
|
@@ -2,15 +2,15 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.PatchUnregisteredUserLocaleCommand = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
|
-
const
|
|
5
|
+
const constants_1 = require("../../constants");
|
|
6
6
|
var PatchUnregisteredUserLocaleCommand;
|
|
7
7
|
(function (PatchUnregisteredUserLocaleCommand) {
|
|
8
8
|
PatchUnregisteredUserLocaleCommand.RequestSchema = zod_1.z.object({
|
|
9
|
-
locale: zod_1.z.nativeEnum(
|
|
9
|
+
locale: zod_1.z.nativeEnum(constants_1.LOCALE),
|
|
10
10
|
});
|
|
11
11
|
PatchUnregisteredUserLocaleCommand.ResponseSchema = zod_1.z.object({
|
|
12
12
|
data: zod_1.z.object({
|
|
13
|
-
locale: zod_1.z.nativeEnum(
|
|
13
|
+
locale: zod_1.z.nativeEnum(constants_1.LOCALE),
|
|
14
14
|
}),
|
|
15
15
|
});
|
|
16
16
|
})(PatchUnregisteredUserLocaleCommand || (exports.PatchUnregisteredUserLocaleCommand = PatchUnregisteredUserLocaleCommand = {}));
|
|
@@ -4,7 +4,6 @@ exports.GetMeCommand = void 0;
|
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const constants_1 = require("../../constants");
|
|
6
6
|
const models_1 = require("../../models");
|
|
7
|
-
const rugpt_lib_common_1 = require("@purpleschool/rugpt-lib-common");
|
|
8
7
|
var GetMeCommand;
|
|
9
8
|
(function (GetMeCommand) {
|
|
10
9
|
GetMeCommand.RequestSchema = zod_1.z.object({});
|
|
@@ -18,7 +17,7 @@ var GetMeCommand;
|
|
|
18
17
|
telegramId: zod_1.z.number().nullable(),
|
|
19
18
|
telegramUserName: zod_1.z.string().nullable(),
|
|
20
19
|
webmasterId: zod_1.z.string().uuid().nullable(),
|
|
21
|
-
locale: zod_1.z.nativeEnum(
|
|
20
|
+
locale: zod_1.z.nativeEnum(constants_1.LOCALE),
|
|
22
21
|
profile: models_1.UserProfileResponseSchema,
|
|
23
22
|
}),
|
|
24
23
|
});
|
|
@@ -2,15 +2,15 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.PatchUserLocaleCommand = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
|
-
const
|
|
5
|
+
const constants_1 = require("../../constants");
|
|
6
6
|
var PatchUserLocaleCommand;
|
|
7
7
|
(function (PatchUserLocaleCommand) {
|
|
8
8
|
PatchUserLocaleCommand.RequestSchema = zod_1.z.object({
|
|
9
|
-
locale: zod_1.z.nativeEnum(
|
|
9
|
+
locale: zod_1.z.nativeEnum(constants_1.LOCALE),
|
|
10
10
|
});
|
|
11
11
|
PatchUserLocaleCommand.ResponseSchema = zod_1.z.object({
|
|
12
12
|
data: zod_1.z.object({
|
|
13
|
-
locale: zod_1.z.nativeEnum(
|
|
13
|
+
locale: zod_1.z.nativeEnum(constants_1.LOCALE),
|
|
14
14
|
}),
|
|
15
15
|
});
|
|
16
16
|
})(PatchUserLocaleCommand || (exports.PatchUserLocaleCommand = PatchUserLocaleCommand = {}));
|
|
@@ -16,4 +16,3 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./group-by.enum"), exports);
|
|
18
18
|
__exportStar(require("./statistics-metric-type.enum"), exports);
|
|
19
|
-
__exportStar(require("./statistics-request-type.enum"), exports);
|
|
@@ -23,3 +23,4 @@ __exportStar(require("./slide-image-slot-action.enum"), exports);
|
|
|
23
23
|
__exportStar(require("./presentation-ai-action-type.enum"), exports);
|
|
24
24
|
__exportStar(require("./presentation-ai-action-pricing-type.enum"), exports);
|
|
25
25
|
__exportStar(require("./presentation-ai-action-call-status.enum"), exports);
|
|
26
|
+
__exportStar(require("./presentation-target-audience.enum"), exports);
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PRESENTATION_TARGET_AUDIENCE = void 0;
|
|
4
|
+
var PRESENTATION_TARGET_AUDIENCE;
|
|
5
|
+
(function (PRESENTATION_TARGET_AUDIENCE) {
|
|
6
|
+
PRESENTATION_TARGET_AUDIENCE["NONE"] = "NONE";
|
|
7
|
+
PRESENTATION_TARGET_AUDIENCE["SCHOOL"] = "SCHOOL";
|
|
8
|
+
PRESENTATION_TARGET_AUDIENCE["UNIVERSITY"] = "UNIVERSITY";
|
|
9
|
+
PRESENTATION_TARGET_AUDIENCE["BUSINESS"] = "BUSINESS";
|
|
10
|
+
})(PRESENTATION_TARGET_AUDIENCE || (exports.PRESENTATION_TARGET_AUDIENCE = PRESENTATION_TARGET_AUDIENCE = {}));
|
|
@@ -18,3 +18,4 @@ __exportStar(require("./singup-method.enum"), exports);
|
|
|
18
18
|
__exportStar(require("./user-status"), exports);
|
|
19
19
|
__exportStar(require("./user-sort-by.enum"), exports);
|
|
20
20
|
__exportStar(require("./sort-order.enum"), exports);
|
|
21
|
+
__exportStar(require("./locale.enum"), exports);
|
|
@@ -19,3 +19,6 @@ __exportStar(require("./writer-document-stage.enum"), exports);
|
|
|
19
19
|
__exportStar(require("./writer-ai-action-pricing-type.enum"), exports);
|
|
20
20
|
__exportStar(require("./writer-ai-action-type.enum"), exports);
|
|
21
21
|
__exportStar(require("./tool-model-status.enum"), exports);
|
|
22
|
+
__exportStar(require("./writer-source-status.enum"), exports);
|
|
23
|
+
__exportStar(require("./writer-source-origin.enum"), exports);
|
|
24
|
+
__exportStar(require("./writer-source-type.enum"), exports);
|
|
@@ -4,9 +4,15 @@ exports.WRITER_DOCUMENT_STAGE = void 0;
|
|
|
4
4
|
var WRITER_DOCUMENT_STAGE;
|
|
5
5
|
(function (WRITER_DOCUMENT_STAGE) {
|
|
6
6
|
WRITER_DOCUMENT_STAGE["CREATED"] = "CREATED";
|
|
7
|
+
WRITER_DOCUMENT_STAGE["ANALYZING_TOPIC"] = "ANALYZING_TOPIC";
|
|
8
|
+
WRITER_DOCUMENT_STAGE["TOPIC_ANALYZED"] = "TOPIC_ANALYZED";
|
|
9
|
+
WRITER_DOCUMENT_STAGE["TOPIC_ANALYSIS_FAILED"] = "TOPIC_ANALYSIS_FAILED";
|
|
7
10
|
WRITER_DOCUMENT_STAGE["GENERATING_OUTLINE"] = "GENERATING_OUTLINE";
|
|
8
11
|
WRITER_DOCUMENT_STAGE["OUTLINE_GENERATED"] = "OUTLINE_GENERATED";
|
|
9
12
|
WRITER_DOCUMENT_STAGE["OUTLINE_GENERATION_FAILED"] = "OUTLINE_GENERATION_FAILED";
|
|
13
|
+
WRITER_DOCUMENT_STAGE["COLLECTING_SOURCES"] = "COLLECTING_SOURCES";
|
|
14
|
+
WRITER_DOCUMENT_STAGE["SOURCES_COLLECTED"] = "SOURCES_COLLECTED";
|
|
15
|
+
WRITER_DOCUMENT_STAGE["SOURCES_COLLECTION_FAILED"] = "SOURCES_COLLECTION_FAILED";
|
|
10
16
|
WRITER_DOCUMENT_STAGE["GENERATING_CONTENT"] = "GENERATING_CONTENT";
|
|
11
17
|
WRITER_DOCUMENT_STAGE["CONTENT_GENERATED"] = "CONTENT_GENERATED";
|
|
12
18
|
WRITER_DOCUMENT_STAGE["CONTENT_GENERATION_FAILED"] = "CONTENT_GENERATION_FAILED";
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.WRITER_SOURCE_ORIGIN = void 0;
|
|
4
|
+
var WRITER_SOURCE_ORIGIN;
|
|
5
|
+
(function (WRITER_SOURCE_ORIGIN) {
|
|
6
|
+
WRITER_SOURCE_ORIGIN["WEB_SEARCH"] = "WEB_SEARCH";
|
|
7
|
+
WRITER_SOURCE_ORIGIN["USER_UPLOAD"] = "USER_UPLOAD";
|
|
8
|
+
})(WRITER_SOURCE_ORIGIN || (exports.WRITER_SOURCE_ORIGIN = WRITER_SOURCE_ORIGIN = {}));
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.WRITER_SOURCE_STATUS = void 0;
|
|
4
|
+
var WRITER_SOURCE_STATUS;
|
|
5
|
+
(function (WRITER_SOURCE_STATUS) {
|
|
6
|
+
WRITER_SOURCE_STATUS["READY"] = "READY";
|
|
7
|
+
WRITER_SOURCE_STATUS["REQUIRES_CITATION_METADATA_CONFIRMATION"] = "REQUIRES_CITATION_METADATA_CONFIRMATION";
|
|
8
|
+
WRITER_SOURCE_STATUS["DISCARDED"] = "DISCARDED";
|
|
9
|
+
})(WRITER_SOURCE_STATUS || (exports.WRITER_SOURCE_STATUS = WRITER_SOURCE_STATUS = {}));
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.WRITER_SOURCE_TYPE = void 0;
|
|
4
|
+
var WRITER_SOURCE_TYPE;
|
|
5
|
+
(function (WRITER_SOURCE_TYPE) {
|
|
6
|
+
WRITER_SOURCE_TYPE["JOURNAL_ARTICLE"] = "JOURNAL_ARTICLE";
|
|
7
|
+
WRITER_SOURCE_TYPE["BOOK"] = "BOOK";
|
|
8
|
+
})(WRITER_SOURCE_TYPE || (exports.WRITER_SOURCE_TYPE = WRITER_SOURCE_TYPE = {}));
|
|
@@ -22,3 +22,4 @@ __exportStar(require("./slide.schema"), exports);
|
|
|
22
22
|
__exportStar(require("./slide-content.schema"), exports);
|
|
23
23
|
__exportStar(require("./presentation-config.schema"), exports);
|
|
24
24
|
__exportStar(require("./presentation-ai-action.schema"), exports);
|
|
25
|
+
__exportStar(require("./presentation-title-page.schema"), exports);
|
|
@@ -8,6 +8,8 @@ exports.PresentationTemplateSchema = zod_1.z.object({
|
|
|
8
8
|
image: zod_1.z.string(),
|
|
9
9
|
order: zod_1.z.number(),
|
|
10
10
|
imagePlaceholder: zod_1.z.string(),
|
|
11
|
+
price: zod_1.z.number(),
|
|
12
|
+
isPremium: zod_1.z.boolean(),
|
|
11
13
|
createdAt: zod_1.z.date(),
|
|
12
14
|
updatedAt: zod_1.z.date(),
|
|
13
15
|
});
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PresentationTitlePageSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
exports.PresentationTitlePageSchema = zod_1.z.object({
|
|
6
|
+
author: zod_1.z.string().optional().nullable(),
|
|
7
|
+
createdAt: zod_1.z.coerce.date().optional().nullable(),
|
|
8
|
+
email: zod_1.z.string().email().optional().nullable(),
|
|
9
|
+
});
|
|
@@ -5,6 +5,7 @@ const zod_1 = require("zod");
|
|
|
5
5
|
const constants_1 = require("../../../constants");
|
|
6
6
|
const slide_outline_schema_1 = require("./slide-outline.schema");
|
|
7
7
|
const slide_schema_1 = require("./slide.schema");
|
|
8
|
+
const presentation_title_page_schema_1 = require("./presentation-title-page.schema");
|
|
8
9
|
exports.PresentationSchema = zod_1.z.object({
|
|
9
10
|
uuid: zod_1.z.string().uuid(),
|
|
10
11
|
prompt: zod_1.z.string(),
|
|
@@ -19,6 +20,8 @@ exports.PresentationSchema = zod_1.z.object({
|
|
|
19
20
|
slideCount: zod_1.z.number(),
|
|
20
21
|
lastContentUpdateAt: zod_1.z.date().nullable(),
|
|
21
22
|
lastPptxExportedAt: zod_1.z.date().nullable(),
|
|
23
|
+
titlePage: presentation_title_page_schema_1.PresentationTitlePageSchema.nullable(),
|
|
24
|
+
targetAudience: zod_1.z.nativeEnum(constants_1.PRESENTATION_TARGET_AUDIENCE),
|
|
22
25
|
createdAt: zod_1.z.date(),
|
|
23
26
|
updatedAt: zod_1.z.date(),
|
|
24
27
|
});
|