@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.
Files changed (185) hide show
  1. package/api/controllers/http/blog.ts +0 -2
  2. package/api/controllers/http/category.ts +0 -2
  3. package/api/controllers/http/course.ts +0 -8
  4. package/api/controllers/http/page.ts +0 -2
  5. package/api/controllers/http/prompt-category.ts +0 -2
  6. package/api/controllers/http/prompt-topic.ts +0 -2
  7. package/api/controllers/http/prompt.ts +0 -2
  8. package/api/controllers/http/question.ts +0 -2
  9. package/api/controllers/http/team-account.ts +0 -1
  10. package/api/controllers/http/writer.ts +6 -0
  11. package/api/routes.ts +20 -46
  12. package/build/api/controllers/http/blog.js +0 -2
  13. package/build/api/controllers/http/category.js +0 -2
  14. package/build/api/controllers/http/course.js +0 -6
  15. package/build/api/controllers/http/page.js +0 -2
  16. package/build/api/controllers/http/prompt-category.js +0 -2
  17. package/build/api/controllers/http/prompt-topic.js +0 -2
  18. package/build/api/controllers/http/prompt.js +0 -2
  19. package/build/api/controllers/http/question.js +0 -2
  20. package/build/api/controllers/http/team-account.js +0 -1
  21. package/build/api/controllers/http/writer.js +5 -0
  22. package/build/api/routes.js +10 -23
  23. package/build/commands/blog/create-post.command.js +0 -6
  24. package/build/commands/blog/index.js +0 -2
  25. package/build/commands/blog/update-post.command.js +0 -6
  26. package/build/commands/cabinet/get-user-statistics-by-month.command.js +12 -1
  27. package/build/commands/category/create-category.command.js +0 -4
  28. package/build/commands/category/index.js +0 -2
  29. package/build/commands/category/update-category.command.js +0 -4
  30. package/build/commands/course/create-course.command.js +0 -5
  31. package/build/commands/course/index.js +0 -6
  32. package/build/commands/page/create-page.command.js +0 -5
  33. package/build/commands/page/index.js +0 -2
  34. package/build/commands/page/update-page.command.js +0 -5
  35. package/build/commands/prompt/create-prompt.command.js +0 -2
  36. package/build/commands/prompt/index.js +0 -2
  37. package/build/commands/prompt/update-prompt.command.js +0 -2
  38. package/build/commands/prompt-category/create-prompt-category.command.js +0 -3
  39. package/build/commands/prompt-category/index.js +0 -2
  40. package/build/commands/prompt-category/update-prompt-category.command.js +0 -3
  41. package/build/commands/prompt-topic/create-prompt-topic.command.js +0 -5
  42. package/build/commands/prompt-topic/index.js +0 -2
  43. package/build/commands/prompt-topic/update-prompt-topic.command.js +0 -5
  44. package/build/commands/question/create-question.command.js +0 -2
  45. package/build/commands/question/index.js +0 -2
  46. package/build/commands/question/update-question.command.js +0 -2
  47. package/build/commands/team-account/get-team-account-statistics-by-month.command.js +12 -1
  48. package/build/commands/team-account/index.js +0 -1
  49. package/build/commands/tools/presentation/create-presentation.command.js +2 -0
  50. package/build/commands/tools/presentation/generate-presentation-slides.command.js +3 -0
  51. package/build/commands/tools/presentation/update-presentation.command.js +1 -0
  52. package/build/commands/tools/writer/collect-writer-document-sources.command.js +15 -0
  53. package/build/commands/tools/writer/confirm-source-citation-metadata.command.js +19 -0
  54. package/build/commands/tools/writer/get-writer-document-sources.command.js +14 -0
  55. package/build/commands/tools/writer/index.js +4 -0
  56. package/build/commands/tools/writer/upload-writer-source.command.js +17 -0
  57. package/build/commands/unregistered-user/patch-locale.command.js +3 -3
  58. package/build/commands/user/get-me.command.js +1 -2
  59. package/build/commands/user/patch-locale.command.js +3 -3
  60. package/build/constants/cabinet/enums/index.js +0 -1
  61. package/build/constants/presentation/enums/index.js +1 -0
  62. package/build/constants/presentation/enums/presentation-target-audience.enum.js +10 -0
  63. package/build/constants/user/enums/index.js +1 -0
  64. package/build/constants/user/enums/locale.enum.js +8 -0
  65. package/build/constants/writer/enums/index.js +3 -0
  66. package/build/constants/writer/enums/writer-document-stage.enum.js +6 -0
  67. package/build/constants/writer/enums/writer-source-origin.enum.js +8 -0
  68. package/build/constants/writer/enums/writer-source-status.enum.js +9 -0
  69. package/build/constants/writer/enums/writer-source-type.enum.js +8 -0
  70. package/build/models/tools/presentation/index.js +1 -0
  71. package/build/models/tools/presentation/presentation-template.schema.js +2 -0
  72. package/build/models/tools/presentation/presentation-title-page.schema.js +9 -0
  73. package/build/models/tools/presentation/presentation.schema.js +3 -0
  74. package/build/models/tools/presentation/slide-content-edit.schema.js +36 -24
  75. package/build/models/tools/presentation/slide-content.schema.js +34 -24
  76. package/build/models/tools/writer/index.js +2 -0
  77. package/build/models/tools/writer/writer-document-type.schema.js +2 -0
  78. package/build/models/tools/writer/writer-document.schema.js +3 -0
  79. package/build/models/tools/writer/writer-source-bibliographic-metadata.schema.js +27 -0
  80. package/build/models/tools/writer/writer-source.schema.js +20 -0
  81. package/build/models/user.schema.js +2 -2
  82. package/commands/blog/create-post.command.ts +0 -6
  83. package/commands/blog/index.ts +0 -2
  84. package/commands/blog/update-post.command.ts +0 -6
  85. package/commands/cabinet/get-user-statistics-by-month.command.ts +13 -6
  86. package/commands/category/create-category.command.ts +0 -4
  87. package/commands/category/index.ts +0 -2
  88. package/commands/category/update-category.command.ts +0 -4
  89. package/commands/course/create-course.command.ts +0 -5
  90. package/commands/course/index.ts +0 -6
  91. package/commands/page/create-page.command.ts +0 -5
  92. package/commands/page/index.ts +0 -2
  93. package/commands/page/update-page.command.ts +0 -5
  94. package/commands/prompt/create-prompt.command.ts +0 -2
  95. package/commands/prompt/index.ts +0 -2
  96. package/commands/prompt/update-prompt.command.ts +0 -2
  97. package/commands/prompt-category/create-prompt-category.command.ts +0 -3
  98. package/commands/prompt-category/index.ts +0 -2
  99. package/commands/prompt-category/update-prompt-category.command.ts +0 -3
  100. package/commands/prompt-topic/create-prompt-topic.command.ts +0 -5
  101. package/commands/prompt-topic/index.ts +0 -2
  102. package/commands/prompt-topic/update-prompt-topic.command.ts +0 -5
  103. package/commands/question/create-question.command.ts +0 -2
  104. package/commands/question/index.ts +0 -2
  105. package/commands/question/update-question.command.ts +0 -2
  106. package/commands/team-account/get-team-account-statistics-by-month.command.ts +13 -6
  107. package/commands/team-account/index.ts +0 -1
  108. package/commands/tools/presentation/create-presentation.command.ts +2 -0
  109. package/commands/tools/presentation/generate-presentation-slides.command.ts +10 -1
  110. package/commands/tools/presentation/update-presentation.command.ts +1 -0
  111. package/commands/tools/writer/collect-writer-document-sources.command.ts +17 -0
  112. package/commands/tools/writer/confirm-source-citation-metadata.command.ts +21 -0
  113. package/commands/tools/writer/get-writer-document-sources.command.ts +14 -0
  114. package/commands/tools/writer/index.ts +4 -0
  115. package/commands/tools/writer/upload-writer-source.command.ts +19 -0
  116. package/commands/unregistered-user/patch-locale.command.ts +1 -1
  117. package/commands/user/get-me.command.ts +1 -2
  118. package/commands/user/patch-locale.command.ts +1 -1
  119. package/constants/cabinet/enums/index.ts +0 -1
  120. package/constants/presentation/enums/index.ts +1 -0
  121. package/constants/presentation/enums/presentation-target-audience.enum.ts +6 -0
  122. package/constants/user/enums/index.ts +1 -0
  123. package/constants/user/enums/locale.enum.ts +4 -0
  124. package/constants/writer/enums/index.ts +3 -0
  125. package/constants/writer/enums/writer-document-stage.enum.ts +8 -0
  126. package/constants/writer/enums/writer-source-origin.enum.ts +4 -0
  127. package/constants/writer/enums/writer-source-status.enum.ts +5 -0
  128. package/constants/writer/enums/writer-source-type.enum.ts +4 -0
  129. package/models/tools/presentation/index.ts +1 -0
  130. package/models/tools/presentation/presentation-template.schema.ts +2 -0
  131. package/models/tools/presentation/presentation-title-page.schema.ts +9 -0
  132. package/models/tools/presentation/presentation.schema.ts +8 -1
  133. package/models/tools/presentation/slide-content-edit.schema.ts +36 -24
  134. package/models/tools/presentation/slide-content.schema.ts +50 -40
  135. package/models/tools/writer/index.ts +2 -0
  136. package/models/tools/writer/writer-document-type.schema.ts +2 -0
  137. package/models/tools/writer/writer-document.schema.ts +3 -0
  138. package/models/tools/writer/writer-source-bibliographic-metadata.schema.ts +31 -0
  139. package/models/tools/writer/writer-source.schema.ts +20 -0
  140. package/models/user.schema.ts +1 -1
  141. package/package.json +1 -2
  142. package/build/commands/blog/create-post-translation.command.js +0 -25
  143. package/build/commands/blog/update-post-translation.command.js +0 -24
  144. package/build/commands/category/create-category-translation.command.js +0 -23
  145. package/build/commands/category/update-category-translation.command.js +0 -22
  146. package/build/commands/course/create-course-translation.command.js +0 -24
  147. package/build/commands/course/create-lesson-translation.command.js +0 -20
  148. package/build/commands/course/create-section-translation.command.js +0 -20
  149. package/build/commands/course/update-course-translation.command.js +0 -23
  150. package/build/commands/course/update-lesson-translation.command.js +0 -19
  151. package/build/commands/course/update-section-translation.command.js +0 -19
  152. package/build/commands/page/create-page-translation.command.js +0 -24
  153. package/build/commands/page/update-page-translation.command.js +0 -23
  154. package/build/commands/prompt/create-prompt-translation.command.js +0 -21
  155. package/build/commands/prompt/update-prompt-translation.command.js +0 -20
  156. package/build/commands/prompt-category/create-prompt-category-translation.command.js +0 -22
  157. package/build/commands/prompt-category/update-prompt-category-translation.command.js +0 -21
  158. package/build/commands/prompt-topic/create-prompt-topic-translation.command.js +0 -24
  159. package/build/commands/prompt-topic/update-prompt-topic-translation.command.js +0 -23
  160. package/build/commands/question/create-question-translation.command.js +0 -21
  161. package/build/commands/question/update-question-translation.command.js +0 -20
  162. package/build/commands/team-account/update-team-account-invite.command.js +0 -17
  163. package/build/constants/cabinet/enums/statistics-request-type.enum.js +0 -22
  164. package/commands/blog/create-post-translation.command.ts +0 -30
  165. package/commands/blog/update-post-translation.command.ts +0 -29
  166. package/commands/category/create-category-translation.command.ts +0 -28
  167. package/commands/category/update-category-translation.command.ts +0 -27
  168. package/commands/course/create-course-translation.command.ts +0 -29
  169. package/commands/course/create-lesson-translation.command.ts +0 -25
  170. package/commands/course/create-section-translation.command.ts +0 -25
  171. package/commands/course/update-course-translation.command.ts +0 -28
  172. package/commands/course/update-lesson-translation.command.ts +0 -24
  173. package/commands/course/update-section-translation.command.ts +0 -24
  174. package/commands/page/create-page-translation.command.ts +0 -29
  175. package/commands/page/update-page-translation.command.ts +0 -28
  176. package/commands/prompt/create-prompt-translation.command.ts +0 -26
  177. package/commands/prompt/update-prompt-translation.command.ts +0 -25
  178. package/commands/prompt-category/create-prompt-category-translation.command.ts +0 -27
  179. package/commands/prompt-category/update-prompt-category-translation.command.ts +0 -26
  180. package/commands/prompt-topic/create-prompt-topic-translation.command.ts +0 -29
  181. package/commands/prompt-topic/update-prompt-topic-translation.command.ts +0 -28
  182. package/commands/question/create-question-translation.command.ts +0 -26
  183. package/commands/question/update-question-translation.command.ts +0 -25
  184. package/commands/team-account/update-team-account-invite.command.ts +0 -22
  185. package/constants/cabinet/enums/statistics-request-type.enum.ts +0 -18
@@ -1,20 +0,0 @@
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 = {}));
@@ -1,20 +0,0 @@
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 = {}));
@@ -1,23 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.UpdateCourseTranslationCommand = void 0;
4
- const zod_1 = require("zod");
5
- const models_1 = require("../../models");
6
- 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 = {}));
@@ -1,19 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.UpdateLessonTranslationCommand = void 0;
4
- const zod_1 = require("zod");
5
- const models_1 = require("../../models");
6
- 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 = {}));
@@ -1,19 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.UpdateSectionTranslationCommand = void 0;
4
- const zod_1 = require("zod");
5
- const models_1 = require("../../models");
6
- 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 = {}));
@@ -1,24 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.CreatePageTranslationCommand = void 0;
4
- const models_1 = require("../../models");
5
- const zod_1 = require("zod");
6
- 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 = {}));
@@ -1,23 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.UpdatePageTranslationCommand = void 0;
4
- const models_1 = require("../../models");
5
- const zod_1 = require("zod");
6
- 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 = {}));
@@ -1,21 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.CreatePromptTranslationCommand = void 0;
4
- const zod_1 = require("zod");
5
- const models_1 = require("../../models");
6
- 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 = {}));
@@ -1,20 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.UpdatePromptTranslationCommand = void 0;
4
- const zod_1 = require("zod");
5
- const models_1 = require("../../models");
6
- 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 = {}));
@@ -1,22 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.CreatePromptCategoryTranslationCommand = void 0;
4
- const zod_1 = require("zod");
5
- const models_1 = require("../../models");
6
- 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 = {}));
@@ -1,21 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.UpdatePromptCategoryTranslationCommand = void 0;
4
- const zod_1 = require("zod");
5
- const models_1 = require("../../models");
6
- 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 = {}));
@@ -1,24 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.CreatePromptTopicTranslationCommand = void 0;
4
- const zod_1 = require("zod");
5
- const models_1 = require("../../models");
6
- 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 = {}));
@@ -1,23 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.UpdatePromptTopicTranslationCommand = void 0;
4
- const zod_1 = require("zod");
5
- const models_1 = require("../../models");
6
- 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 = {}));
@@ -1,21 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.CreateQuestionTranslationCommand = void 0;
4
- const models_1 = require("../../models");
5
- const zod_1 = require("zod");
6
- 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 = {}));
@@ -1,20 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.UpdateQuestionTranslationCommand = void 0;
4
- const models_1 = require("../../models");
5
- const zod_1 = require("zod");
6
- 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 = {}));
@@ -1,17 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.UpdateTeamAccountInviteCommand = void 0;
4
- const zod_1 = require("zod");
5
- const models_1 = require("../../models");
6
- var UpdateTeamAccountInviteCommand;
7
- (function (UpdateTeamAccountInviteCommand) {
8
- UpdateTeamAccountInviteCommand.RequestParam = zod_1.z.object({
9
- uuid: zod_1.z.string().uuid(),
10
- });
11
- UpdateTeamAccountInviteCommand.RequestSchema = zod_1.z.object({
12
- limit: zod_1.z.number().int().positive().nullable(),
13
- });
14
- UpdateTeamAccountInviteCommand.ResponseSchema = zod_1.z.object({
15
- data: models_1.TeamAccountInviteResponseSchema,
16
- });
17
- })(UpdateTeamAccountInviteCommand || (exports.UpdateTeamAccountInviteCommand = UpdateTeamAccountInviteCommand = {}));
@@ -1,22 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.STATISTICS_REQUEST_TYPE = void 0;
4
- var STATISTICS_REQUEST_TYPE;
5
- (function (STATISTICS_REQUEST_TYPE) {
6
- STATISTICS_REQUEST_TYPE["IMAGE"] = "IMAGE";
7
- STATISTICS_REQUEST_TYPE["VIDEO"] = "VIDEO";
8
- STATISTICS_REQUEST_TYPE["PRESENTATION"] = "PRESENTATION";
9
- STATISTICS_REQUEST_TYPE["TEXT"] = "TEXT";
10
- STATISTICS_REQUEST_TYPE["AUDIO"] = "AUDIO";
11
- STATISTICS_REQUEST_TYPE["PARAPHRASE"] = "PARAPHRASE";
12
- STATISTICS_REQUEST_TYPE["WRITER"] = "WRITER";
13
- STATISTICS_REQUEST_TYPE["PRESENTATION_AI_ACTION"] = "PRESENTATION_AI_ACTION";
14
- STATISTICS_REQUEST_TYPE["WRITER_ACTION"] = "WRITER_ACTION";
15
- STATISTICS_REQUEST_TYPE["VIDEO_EDITOR"] = "VIDEO_EDITOR";
16
- STATISTICS_REQUEST_TYPE["MUSIC"] = "MUSIC";
17
- STATISTICS_REQUEST_TYPE["MUSIC_ACTION"] = "MUSIC_ACTION";
18
- STATISTICS_REQUEST_TYPE["INTERIOR_DESIGN"] = "INTERIOR_DESIGN";
19
- STATISTICS_REQUEST_TYPE["MARKETPLACE_CARD"] = "MARKETPLACE_CARD";
20
- STATISTICS_REQUEST_TYPE["SOLVING_EDU_TASK"] = "SOLVING_EDU_TASK";
21
- STATISTICS_REQUEST_TYPE["SPELL_CORRECTOR"] = "SPELL_CORRECTOR";
22
- })(STATISTICS_REQUEST_TYPE || (exports.STATISTICS_REQUEST_TYPE = STATISTICS_REQUEST_TYPE = {}));
@@ -1,30 +0,0 @@
1
- import { PostSchema } from '../../models';
2
- import { z } from 'zod';
3
- import { LOCALE } from '@purpleschool/rugpt-lib-common';
4
-
5
- export namespace CreatePostTranslationCommand {
6
- export const RequestSchema = PostSchema.pick({
7
- title: true,
8
- content: true,
9
- author: true,
10
- contentPreview: true,
11
- metaTitle: true,
12
- metaDescription: true,
13
- }).extend({
14
- locale: z.nativeEnum(LOCALE),
15
- });
16
-
17
- export type Request = z.infer<typeof RequestSchema>;
18
-
19
- export const RequestParamSchema = z.object({
20
- uuid: z.string().uuid(),
21
- });
22
-
23
- export type RequestParam = z.infer<typeof RequestParamSchema>;
24
-
25
- export const ResponseSchema = z.object({
26
- data: PostSchema,
27
- });
28
-
29
- export type Response = z.infer<typeof ResponseSchema>;
30
- }
@@ -1,29 +0,0 @@
1
- import { PostSchema } from '../../models';
2
- import { z } from 'zod';
3
- import { LOCALE } from '@purpleschool/rugpt-lib-common';
4
-
5
- export namespace UpdatePostTranslationCommand {
6
- export const RequestSchema = PostSchema.pick({
7
- title: true,
8
- content: true,
9
- author: true,
10
- contentPreview: true,
11
- metaTitle: true,
12
- metaDescription: true,
13
- }).partial();
14
-
15
- export type Request = z.infer<typeof RequestSchema>;
16
-
17
- export const RequestParamSchema = z.object({
18
- uuid: z.string().uuid(),
19
- locale: z.nativeEnum(LOCALE),
20
- });
21
-
22
- export type RequestParam = z.infer<typeof RequestParamSchema>;
23
-
24
- export const ResponseSchema = z.object({
25
- data: PostSchema,
26
- });
27
-
28
- export type Response = z.infer<typeof ResponseSchema>;
29
- }
@@ -1,28 +0,0 @@
1
- import { z } from 'zod';
2
- import { CategorySchema } from '../../models';
3
- import { LOCALE } from '@purpleschool/rugpt-lib-common';
4
-
5
- export namespace CreateCategoryTranslationCommand {
6
- export const RequestSchema = CategorySchema.pick({
7
- name: true,
8
- prompt: true,
9
- placeholder: true,
10
- seoName: true,
11
- }).extend({
12
- locale: z.nativeEnum(LOCALE),
13
- });
14
-
15
- export type Request = z.infer<typeof RequestSchema>;
16
-
17
- export const RequestParamSchema = z.object({
18
- uuid: z.string().uuid(),
19
- });
20
-
21
- export type RequestParam = z.infer<typeof RequestParamSchema>;
22
-
23
- export const ResponseSchema = z.object({
24
- data: CategorySchema,
25
- });
26
-
27
- export type Response = z.infer<typeof ResponseSchema>;
28
- }
@@ -1,27 +0,0 @@
1
- import { z } from 'zod';
2
- import { CategorySchema } from '../../models';
3
- import { LOCALE } from '@purpleschool/rugpt-lib-common';
4
-
5
- export namespace UpdateCategoryTranslationCommand {
6
- export const RequestSchema = CategorySchema.pick({
7
- name: true,
8
- prompt: true,
9
- placeholder: true,
10
- seoName: true,
11
- }).partial();
12
-
13
- export type Request = z.infer<typeof RequestSchema>;
14
-
15
- export const RequestParamSchema = z.object({
16
- uuid: z.string().uuid(),
17
- locale: z.nativeEnum(LOCALE),
18
- });
19
-
20
- export type RequestParam = z.infer<typeof RequestParamSchema>;
21
-
22
- export const ResponseSchema = z.object({
23
- data: CategorySchema,
24
- });
25
-
26
- export type Response = z.infer<typeof ResponseSchema>;
27
- }
@@ -1,29 +0,0 @@
1
- import { z } from 'zod';
2
- import { CourseSchema } from '../../models';
3
- import { LOCALE } from '@purpleschool/rugpt-lib-common';
4
-
5
- export namespace CreateCourseTranslationCommand {
6
- export const RequestSchema = CourseSchema.pick({
7
- title: true,
8
- subtitle: true,
9
- prerequisites: true,
10
- description: true,
11
- skills: true,
12
- }).extend({
13
- locale: z.nativeEnum(LOCALE),
14
- });
15
-
16
- export type Request = z.infer<typeof RequestSchema>;
17
-
18
- export const RequestParamSchema = z.object({
19
- uuid: z.string().uuid(),
20
- });
21
-
22
- export type RequestParam = z.infer<typeof RequestParamSchema>;
23
-
24
- export const ResponseSchema = z.object({
25
- data: CourseSchema,
26
- });
27
-
28
- export type Response = z.infer<typeof ResponseSchema>;
29
- }
@@ -1,25 +0,0 @@
1
- import { z } from 'zod';
2
- import { LessonSchema } from '../../models';
3
- import { LOCALE } from '@purpleschool/rugpt-lib-common';
4
-
5
- export namespace CreateLessonTranslationCommand {
6
- export const RequestSchema = LessonSchema.pick({
7
- title: true,
8
- }).extend({
9
- locale: z.nativeEnum(LOCALE),
10
- });
11
-
12
- export type Request = z.infer<typeof RequestSchema>;
13
-
14
- export const RequestParamSchema = z.object({
15
- uuid: z.string().uuid(),
16
- });
17
-
18
- export type RequestParam = z.infer<typeof RequestParamSchema>;
19
-
20
- export const ResponseSchema = z.object({
21
- data: LessonSchema,
22
- });
23
-
24
- export type Response = z.infer<typeof ResponseSchema>;
25
- }
@@ -1,25 +0,0 @@
1
- import { z } from 'zod';
2
- import { SectionSchema } from '../../models';
3
- import { LOCALE } from '@purpleschool/rugpt-lib-common';
4
-
5
- export namespace CreateSectionTranslationCommand {
6
- export const RequestSchema = SectionSchema.pick({
7
- title: true,
8
- }).extend({
9
- locale: z.nativeEnum(LOCALE),
10
- });
11
-
12
- export type Request = z.infer<typeof RequestSchema>;
13
-
14
- export const RequestParamSchema = z.object({
15
- uuid: z.string().uuid(),
16
- });
17
-
18
- export type RequestParam = z.infer<typeof RequestParamSchema>;
19
-
20
- export const ResponseSchema = z.object({
21
- data: SectionSchema,
22
- });
23
-
24
- export type Response = z.infer<typeof ResponseSchema>;
25
- }
@@ -1,28 +0,0 @@
1
- import { z } from 'zod';
2
- import { CourseSchema } from '../../models';
3
- import { LOCALE } from '@purpleschool/rugpt-lib-common';
4
-
5
- export namespace UpdateCourseTranslationCommand {
6
- export const RequestSchema = CourseSchema.pick({
7
- title: true,
8
- subtitle: true,
9
- prerequisites: true,
10
- description: true,
11
- skills: true,
12
- }).partial();
13
-
14
- export type Request = z.infer<typeof RequestSchema>;
15
-
16
- export const RequestParamSchema = z.object({
17
- uuid: z.string().uuid(),
18
- locale: z.nativeEnum(LOCALE),
19
- });
20
-
21
- export type RequestParam = z.infer<typeof RequestParamSchema>;
22
-
23
- export const ResponseSchema = z.object({
24
- data: CourseSchema,
25
- });
26
-
27
- export type Response = z.infer<typeof ResponseSchema>;
28
- }
@@ -1,24 +0,0 @@
1
- import { z } from 'zod';
2
- import { LessonSchema } from '../../models';
3
- import { LOCALE } from '@purpleschool/rugpt-lib-common';
4
-
5
- export namespace UpdateLessonTranslationCommand {
6
- export const RequestSchema = LessonSchema.pick({
7
- title: true,
8
- }).partial();
9
-
10
- export type Request = z.infer<typeof RequestSchema>;
11
-
12
- export const RequestParamSchema = z.object({
13
- uuid: z.string().uuid(),
14
- locale: z.nativeEnum(LOCALE),
15
- });
16
-
17
- export type RequestParam = z.infer<typeof RequestParamSchema>;
18
-
19
- export const ResponseSchema = z.object({
20
- data: LessonSchema,
21
- });
22
-
23
- export type Response = z.infer<typeof ResponseSchema>;
24
- }