@purpleschool/gptbot 0.12.39 → 0.12.40-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.
Files changed (195) hide show
  1. package/api/controllers/http/blog.ts +4 -0
  2. package/api/controllers/http/category.ts +4 -0
  3. package/api/controllers/http/chat-private.ts +0 -1
  4. package/api/controllers/http/chat-public.ts +0 -1
  5. package/api/controllers/http/course.ts +12 -0
  6. package/api/controllers/http/page.ts +4 -0
  7. package/api/controllers/http/prompt-category.ts +4 -0
  8. package/api/controllers/http/prompt-topic.ts +4 -0
  9. package/api/controllers/http/prompt.ts +4 -0
  10. package/api/controllers/http/question.ts +4 -0
  11. package/api/controllers/http/team-account.ts +1 -0
  12. package/api/routes.ts +68 -2
  13. package/build/api/controllers/http/blog.js +3 -0
  14. package/build/api/controllers/http/category.js +3 -0
  15. package/build/api/controllers/http/chat-private.js +0 -1
  16. package/build/api/controllers/http/chat-public.js +0 -1
  17. package/build/api/controllers/http/course.js +9 -0
  18. package/build/api/controllers/http/page.js +3 -0
  19. package/build/api/controllers/http/prompt-category.js +3 -0
  20. package/build/api/controllers/http/prompt-topic.js +3 -0
  21. package/build/api/controllers/http/prompt.js +3 -0
  22. package/build/api/controllers/http/question.js +3 -0
  23. package/build/api/controllers/http/team-account.js +1 -0
  24. package/build/api/routes.js +34 -2
  25. package/build/commands/blog/create-post-translation.command.js +23 -0
  26. package/build/commands/blog/create-post.command.js +6 -0
  27. package/build/commands/blog/get-all-post-translations.query.js +14 -0
  28. package/build/commands/blog/index.js +3 -0
  29. package/build/commands/blog/update-post-translation.command.js +23 -0
  30. package/build/commands/blog/update-post.command.js +6 -0
  31. package/build/commands/cabinet/get-user-statistics-by-month.command.js +6 -13
  32. package/build/commands/cabinet/get-user-statistics-overview.command.js +5 -1
  33. package/build/commands/category/create-category-translation.command.js +21 -0
  34. package/build/commands/category/create-category.command.js +4 -0
  35. package/build/commands/category/get-all-category-translations.query.js +14 -0
  36. package/build/commands/category/index.js +3 -0
  37. package/build/commands/category/update-category-translation.command.js +21 -0
  38. package/build/commands/category/update-category.command.js +4 -0
  39. package/build/commands/chat/index.js +0 -1
  40. package/build/commands/course/create-course-translation.command.js +22 -0
  41. package/build/commands/course/create-course.command.js +5 -0
  42. package/build/commands/course/create-lesson-translation.command.js +18 -0
  43. package/build/commands/course/create-section-translation.command.js +18 -0
  44. package/build/commands/course/get-all-course-translations.query.js +14 -0
  45. package/build/commands/course/get-all-lesson-translations.query.js +14 -0
  46. package/build/commands/course/get-all-section-translations.query.js +14 -0
  47. package/build/commands/course/index.js +9 -0
  48. package/build/commands/course/update-course-translation.command.js +22 -0
  49. package/build/commands/course/update-lesson-translation.command.js +18 -0
  50. package/build/commands/course/update-section-translation.command.js +18 -0
  51. package/build/commands/page/create-page-translation.command.js +23 -0
  52. package/build/commands/page/create-page.command.js +6 -0
  53. package/build/commands/page/find-page.command.js +10 -2
  54. package/build/commands/page/get-all-page-translations.query.js +14 -0
  55. package/build/commands/page/index.js +3 -0
  56. package/build/commands/page/update-page-translation.command.js +23 -0
  57. package/build/commands/page/update-page.command.js +5 -0
  58. package/build/commands/prompt/create-prompt-translation.command.js +19 -0
  59. package/build/commands/prompt/create-prompt.command.js +2 -0
  60. package/build/commands/prompt/get-all-prompt-translations.query.js +14 -0
  61. package/build/commands/prompt/index.js +3 -0
  62. package/build/commands/prompt/update-prompt-translation.command.js +19 -0
  63. package/build/commands/prompt/update-prompt.command.js +2 -0
  64. package/build/commands/prompt-category/create-prompt-category-translation.command.js +20 -0
  65. package/build/commands/prompt-category/create-prompt-category.command.js +3 -0
  66. package/build/commands/prompt-category/get-all-prompt-category-translations.query.js +14 -0
  67. package/build/commands/prompt-category/index.js +3 -0
  68. package/build/commands/prompt-category/update-prompt-category-translation.command.js +20 -0
  69. package/build/commands/prompt-category/update-prompt-category.command.js +3 -0
  70. package/build/commands/prompt-topic/create-prompt-topic-translation.command.js +22 -0
  71. package/build/commands/prompt-topic/create-prompt-topic.command.js +5 -0
  72. package/build/commands/prompt-topic/get-all-prompt-topic-translations.query.js +14 -0
  73. package/build/commands/prompt-topic/index.js +3 -0
  74. package/build/commands/prompt-topic/update-prompt-topic-translation.command.js +22 -0
  75. package/build/commands/prompt-topic/update-prompt-topic.command.js +5 -0
  76. package/build/commands/question/create-question-translation.command.js +19 -0
  77. package/build/commands/question/create-question.command.js +2 -0
  78. package/build/commands/question/get-all-question-translations.query.js +14 -0
  79. package/build/commands/question/index.js +3 -0
  80. package/build/commands/question/update-question-translation.command.js +19 -0
  81. package/build/commands/question/update-question.command.js +2 -0
  82. package/build/commands/team-account/get-team-account-statistics-by-month.command.js +6 -13
  83. package/build/commands/team-account/get-team-account-statistics-overview.command.js +5 -1
  84. package/build/commands/team-account/index.js +1 -0
  85. package/build/commands/team-account/update-team-account-invite.command.js +17 -0
  86. package/build/commands/unregistered-user/patch-locale.command.js +3 -3
  87. package/build/commands/user/get-me.command.js +2 -1
  88. package/build/commands/user/patch-locale.command.js +3 -3
  89. package/build/constants/cabinet/enums/index.js +1 -0
  90. package/build/constants/cabinet/enums/statistics-request-type.enum.js +22 -0
  91. package/build/constants/subscription/enums/index.js +1 -0
  92. package/build/constants/subscription/enums/subscription-balance-field.enum.js +8 -0
  93. package/build/constants/tool/enums/index.js +0 -1
  94. package/build/constants/user/enums/index.js +0 -1
  95. package/build/models/category-translation.schema.js +16 -0
  96. package/build/models/course-translation.schema.js +17 -0
  97. package/build/models/index.js +10 -0
  98. package/build/models/lesson-translation.schema.js +13 -0
  99. package/build/models/page-translation.schema.js +18 -0
  100. package/build/models/post-translation.schema.js +18 -0
  101. package/build/models/prompt-category-translation.schema.js +18 -0
  102. package/build/models/prompt-topic-translation.schema.js +20 -0
  103. package/build/models/prompt-translation.schema.js +14 -0
  104. package/build/models/question-translation.schema.js +14 -0
  105. package/build/models/section-translation.schema.js +13 -0
  106. package/build/models/user.schema.js +2 -2
  107. package/commands/blog/create-post-translation.command.ts +28 -0
  108. package/commands/blog/create-post.command.ts +6 -0
  109. package/commands/blog/get-all-post-translations.query.ts +16 -0
  110. package/commands/blog/index.ts +3 -0
  111. package/commands/blog/update-post-translation.command.ts +28 -0
  112. package/commands/blog/update-post.command.ts +6 -0
  113. package/commands/cabinet/get-user-statistics-by-month.command.ts +7 -14
  114. package/commands/cabinet/get-user-statistics-overview.command.ts +6 -2
  115. package/commands/category/create-category-translation.command.ts +26 -0
  116. package/commands/category/create-category.command.ts +4 -0
  117. package/commands/category/get-all-category-translations.query.ts +16 -0
  118. package/commands/category/index.ts +3 -0
  119. package/commands/category/update-category-translation.command.ts +26 -0
  120. package/commands/category/update-category.command.ts +4 -0
  121. package/commands/chat/index.ts +0 -1
  122. package/commands/course/create-course-translation.command.ts +27 -0
  123. package/commands/course/create-course.command.ts +5 -0
  124. package/commands/course/create-lesson-translation.command.ts +23 -0
  125. package/commands/course/create-section-translation.command.ts +23 -0
  126. package/commands/course/get-all-course-translations.query.ts +16 -0
  127. package/commands/course/get-all-lesson-translations.query.ts +16 -0
  128. package/commands/course/get-all-section-translations.query.ts +16 -0
  129. package/commands/course/index.ts +9 -0
  130. package/commands/course/update-course-translation.command.ts +27 -0
  131. package/commands/course/update-lesson-translation.command.ts +23 -0
  132. package/commands/course/update-section-translation.command.ts +23 -0
  133. package/commands/page/create-page-translation.command.ts +28 -0
  134. package/commands/page/create-page.command.ts +6 -0
  135. package/commands/page/find-page.command.ts +15 -2
  136. package/commands/page/get-all-page-translations.query.ts +16 -0
  137. package/commands/page/index.ts +3 -0
  138. package/commands/page/update-page-translation.command.ts +28 -0
  139. package/commands/page/update-page.command.ts +5 -0
  140. package/commands/prompt/create-prompt-translation.command.ts +24 -0
  141. package/commands/prompt/create-prompt.command.ts +2 -0
  142. package/commands/prompt/get-all-prompt-translations.query.ts +16 -0
  143. package/commands/prompt/index.ts +3 -0
  144. package/commands/prompt/update-prompt-translation.command.ts +24 -0
  145. package/commands/prompt/update-prompt.command.ts +2 -0
  146. package/commands/prompt-category/create-prompt-category-translation.command.ts +25 -0
  147. package/commands/prompt-category/create-prompt-category.command.ts +3 -0
  148. package/commands/prompt-category/get-all-prompt-category-translations.query.ts +16 -0
  149. package/commands/prompt-category/index.ts +3 -0
  150. package/commands/prompt-category/update-prompt-category-translation.command.ts +25 -0
  151. package/commands/prompt-category/update-prompt-category.command.ts +3 -0
  152. package/commands/prompt-topic/create-prompt-topic-translation.command.ts +27 -0
  153. package/commands/prompt-topic/create-prompt-topic.command.ts +5 -0
  154. package/commands/prompt-topic/get-all-prompt-topic-translations.query.ts +16 -0
  155. package/commands/prompt-topic/index.ts +3 -0
  156. package/commands/prompt-topic/update-prompt-topic-translation.command.ts +27 -0
  157. package/commands/prompt-topic/update-prompt-topic.command.ts +5 -0
  158. package/commands/question/create-question-translation.command.ts +24 -0
  159. package/commands/question/create-question.command.ts +2 -0
  160. package/commands/question/get-all-question-translations.query.ts +16 -0
  161. package/commands/question/index.ts +3 -0
  162. package/commands/question/update-question-translation.command.ts +24 -0
  163. package/commands/question/update-question.command.ts +2 -0
  164. package/commands/team-account/get-team-account-statistics-by-month.command.ts +7 -14
  165. package/commands/team-account/get-team-account-statistics-overview.command.ts +6 -2
  166. package/commands/team-account/index.ts +1 -0
  167. package/commands/team-account/update-team-account-invite.command.ts +22 -0
  168. package/commands/unregistered-user/patch-locale.command.ts +1 -1
  169. package/commands/user/get-me.command.ts +2 -1
  170. package/commands/user/patch-locale.command.ts +1 -1
  171. package/constants/cabinet/enums/index.ts +1 -0
  172. package/constants/cabinet/enums/statistics-request-type.enum.ts +18 -0
  173. package/constants/subscription/enums/index.ts +1 -0
  174. package/constants/subscription/enums/subscription-balance-field.enum.ts +4 -0
  175. package/constants/tool/enums/index.ts +0 -1
  176. package/constants/user/enums/index.ts +0 -1
  177. package/models/category-translation.schema.ts +14 -0
  178. package/models/course-translation.schema.ts +15 -0
  179. package/models/index.ts +10 -0
  180. package/models/lesson-translation.schema.ts +11 -0
  181. package/models/page-translation.schema.ts +16 -0
  182. package/models/post-translation.schema.ts +16 -0
  183. package/models/prompt-category-translation.schema.ts +13 -0
  184. package/models/prompt-topic-translation.schema.ts +15 -0
  185. package/models/prompt-translation.schema.ts +12 -0
  186. package/models/question-translation.schema.ts +12 -0
  187. package/models/section-translation.schema.ts +11 -0
  188. package/models/user.schema.ts +1 -1
  189. package/package.json +2 -1
  190. package/build/commands/chat/calculate-chat-price.command.js +0 -18
  191. package/build/constants/tool/enums/job-request-origin.enum.js +0 -8
  192. package/build/constants/user/enums/locale.enum.js +0 -8
  193. package/commands/chat/calculate-chat-price.command.ts +0 -19
  194. package/constants/tool/enums/job-request-origin.enum.ts +0 -4
  195. package/constants/user/enums/locale.enum.ts +0 -4
@@ -10,6 +10,9 @@ var CreatePromptCategoryCommand;
10
10
  (function (CreatePromptCategoryCommand) {
11
11
  CreatePromptCategoryCommand.RequestSchema = models_1.PromptCategorySchema.omit({
12
12
  uuid: true,
13
+ title: true,
14
+ metaTitle: true,
15
+ metaDescription: true,
13
16
  createdAt: true,
14
17
  updatedAt: true,
15
18
  });
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GetAllPromptCategoryTranslationsQuery = void 0;
4
+ const zod_1 = require("zod");
5
+ const models_1 = require("../../models");
6
+ var GetAllPromptCategoryTranslationsQuery;
7
+ (function (GetAllPromptCategoryTranslationsQuery) {
8
+ GetAllPromptCategoryTranslationsQuery.RequestParamSchema = zod_1.z.object({
9
+ uuid: zod_1.z.string().uuid(),
10
+ });
11
+ GetAllPromptCategoryTranslationsQuery.ResponseSchema = zod_1.z.object({
12
+ data: zod_1.z.array(models_1.PromptCategoryTranslationSchema),
13
+ });
14
+ })(GetAllPromptCategoryTranslationsQuery || (exports.GetAllPromptCategoryTranslationsQuery = GetAllPromptCategoryTranslationsQuery = {}));
@@ -15,8 +15,11 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./create-prompt-category.command"), exports);
18
+ __exportStar(require("./create-prompt-category-translation.command"), exports);
18
19
  __exportStar(require("./delete-prompt-category.command"), exports);
19
20
  __exportStar(require("./update-prompt-category.command"), exports);
21
+ __exportStar(require("./update-prompt-category-translation.command"), exports);
20
22
  __exportStar(require("./find-all-prompt-categories.command"), exports);
23
+ __exportStar(require("./get-all-prompt-category-translations.query"), exports);
21
24
  __exportStar(require("./find-prompt-category-by-alias.command"), exports);
22
25
  __exportStar(require("./find-prompt-category-by-uuid.command"), exports);
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UpdatePromptCategoryTranslationCommand = void 0;
4
+ const zod_1 = require("zod");
5
+ const models_1 = require("../../models");
6
+ var UpdatePromptCategoryTranslationCommand;
7
+ (function (UpdatePromptCategoryTranslationCommand) {
8
+ UpdatePromptCategoryTranslationCommand.RequestSchema = models_1.PromptCategoryTranslationSchema.pick({
9
+ title: true,
10
+ metaTitle: true,
11
+ metaDescription: true,
12
+ }).partial();
13
+ UpdatePromptCategoryTranslationCommand.RequestParamSchema = zod_1.z.object({
14
+ uuid: zod_1.z.string().uuid(),
15
+ translationUuid: zod_1.z.string().uuid(),
16
+ });
17
+ UpdatePromptCategoryTranslationCommand.ResponseSchema = zod_1.z.object({
18
+ data: models_1.PromptCategoryTranslationSchema,
19
+ });
20
+ })(UpdatePromptCategoryTranslationCommand || (exports.UpdatePromptCategoryTranslationCommand = UpdatePromptCategoryTranslationCommand = {}));
@@ -10,6 +10,9 @@ var UpdatePromptCategoryCommand;
10
10
  (function (UpdatePromptCategoryCommand) {
11
11
  UpdatePromptCategoryCommand.RequestSchema = models_1.PromptCategorySchema.omit({
12
12
  uuid: true,
13
+ title: true,
14
+ metaTitle: true,
15
+ metaDescription: true,
13
16
  createdAt: true,
14
17
  updatedAt: true,
15
18
  }).partial();
@@ -0,0 +1,22 @@
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
+ var CreatePromptTopicTranslationCommand;
7
+ (function (CreatePromptTopicTranslationCommand) {
8
+ CreatePromptTopicTranslationCommand.RequestSchema = models_1.PromptTopicTranslationSchema.pick({
9
+ title: true,
10
+ content: true,
11
+ metaTitle: true,
12
+ metaDescription: true,
13
+ seoText: true,
14
+ locale: true,
15
+ });
16
+ CreatePromptTopicTranslationCommand.RequestParamSchema = zod_1.z.object({
17
+ uuid: zod_1.z.string().uuid(),
18
+ });
19
+ CreatePromptTopicTranslationCommand.ResponseSchema = zod_1.z.object({
20
+ data: models_1.PromptTopicTranslationSchema,
21
+ });
22
+ })(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
  });
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GetAllPromptTopicTranslationsQuery = void 0;
4
+ const zod_1 = require("zod");
5
+ const models_1 = require("../../models");
6
+ var GetAllPromptTopicTranslationsQuery;
7
+ (function (GetAllPromptTopicTranslationsQuery) {
8
+ GetAllPromptTopicTranslationsQuery.RequestParamSchema = zod_1.z.object({
9
+ uuid: zod_1.z.string().uuid(),
10
+ });
11
+ GetAllPromptTopicTranslationsQuery.ResponseSchema = zod_1.z.object({
12
+ data: zod_1.z.array(models_1.PromptTopicTranslationSchema),
13
+ });
14
+ })(GetAllPromptTopicTranslationsQuery || (exports.GetAllPromptTopicTranslationsQuery = GetAllPromptTopicTranslationsQuery = {}));
@@ -15,9 +15,12 @@ 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);
25
+ __exportStar(require("./get-all-prompt-topic-translations.query"), exports);
23
26
  __exportStar(require("./find-prompt-topic-by-uuid.command"), exports);
@@ -0,0 +1,22 @@
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
+ var UpdatePromptTopicTranslationCommand;
7
+ (function (UpdatePromptTopicTranslationCommand) {
8
+ UpdatePromptTopicTranslationCommand.RequestSchema = models_1.PromptTopicTranslationSchema.pick({
9
+ title: true,
10
+ content: true,
11
+ metaTitle: true,
12
+ metaDescription: true,
13
+ seoText: true,
14
+ }).partial();
15
+ UpdatePromptTopicTranslationCommand.RequestParamSchema = zod_1.z.object({
16
+ uuid: zod_1.z.string().uuid(),
17
+ translationUuid: zod_1.z.string().uuid(),
18
+ });
19
+ UpdatePromptTopicTranslationCommand.ResponseSchema = zod_1.z.object({
20
+ data: models_1.PromptTopicTranslationSchema,
21
+ });
22
+ })(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,19 @@
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
+ var CreateQuestionTranslationCommand;
7
+ (function (CreateQuestionTranslationCommand) {
8
+ CreateQuestionTranslationCommand.RequestSchema = models_1.QuestionTranslationSchema.pick({
9
+ question: true,
10
+ answer: true,
11
+ locale: true,
12
+ });
13
+ CreateQuestionTranslationCommand.RequestParamSchema = zod_1.z.object({
14
+ uuid: zod_1.z.string().uuid(),
15
+ });
16
+ CreateQuestionTranslationCommand.ResponseSchema = zod_1.z.object({
17
+ data: models_1.QuestionTranslationSchema,
18
+ });
19
+ })(CreateQuestionTranslationCommand || (exports.CreateQuestionTranslationCommand = CreateQuestionTranslationCommand = {}));
@@ -9,6 +9,8 @@ var CreateQuestionCommand;
9
9
  uuid: true,
10
10
  createdAt: true,
11
11
  updatedAt: true,
12
+ question: true,
13
+ answer: true,
12
14
  });
13
15
  CreateQuestionCommand.ResponseSchema = zod_1.z.object({
14
16
  data: models_1.QuestionSchema,
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GetAllQuestionTranslationsQuery = void 0;
4
+ const zod_1 = require("zod");
5
+ const models_1 = require("../../models");
6
+ var GetAllQuestionTranslationsQuery;
7
+ (function (GetAllQuestionTranslationsQuery) {
8
+ GetAllQuestionTranslationsQuery.RequestParamSchema = zod_1.z.object({
9
+ uuid: zod_1.z.string().uuid(),
10
+ });
11
+ GetAllQuestionTranslationsQuery.ResponseSchema = zod_1.z.object({
12
+ data: zod_1.z.array(models_1.QuestionTranslationSchema),
13
+ });
14
+ })(GetAllQuestionTranslationsQuery || (exports.GetAllQuestionTranslationsQuery = GetAllQuestionTranslationsQuery = {}));
@@ -15,6 +15,9 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./create-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);
21
+ __exportStar(require("./get-all-question-translations.query"), exports);
20
22
  __exportStar(require("./update-question.command"), exports);
23
+ __exportStar(require("./update-question-translation.command"), exports);
@@ -0,0 +1,19 @@
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
+ var UpdateQuestionTranslationCommand;
7
+ (function (UpdateQuestionTranslationCommand) {
8
+ UpdateQuestionTranslationCommand.RequestSchema = models_1.QuestionTranslationSchema.pick({
9
+ question: true,
10
+ answer: true,
11
+ }).partial();
12
+ UpdateQuestionTranslationCommand.RequestParamSchema = zod_1.z.object({
13
+ uuid: zod_1.z.string().uuid(),
14
+ translationUuid: zod_1.z.string().uuid(),
15
+ });
16
+ UpdateQuestionTranslationCommand.ResponseSchema = zod_1.z.object({
17
+ data: models_1.QuestionTranslationSchema,
18
+ });
19
+ })(UpdateQuestionTranslationCommand || (exports.UpdateQuestionTranslationCommand = UpdateQuestionTranslationCommand = {}));
@@ -9,6 +9,8 @@ var UpdateQuestionCommand;
9
9
  createdAt: true,
10
10
  updatedAt: true,
11
11
  uuid: true,
12
+ question: true,
13
+ answer: true,
12
14
  }).partial();
13
15
  UpdateQuestionCommand.RequestParamSchema = zod_1.z.object({
14
16
  uuid: zod_1.z.string().uuid(),
@@ -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
- origin: zod_1.z.nativeEnum(constants_1.JOB_REQUEST_ORIGIN).default(constants_1.JOB_REQUEST_ORIGIN.API).optional(),
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
- 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(),
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
- origin: zod_1.z.nativeEnum(constants_1.JOB_REQUEST_ORIGIN).default(constants_1.JOB_REQUEST_ORIGIN.API).optional(),
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({
@@ -18,6 +18,7 @@ __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);
21
22
  __exportStar(require("./accept-team-account-invite.command"), exports);
22
23
  __exportStar(require("./remove-team-account-member.command"), exports);
23
24
  __exportStar(require("./leave-team-account-member.command"), exports);
@@ -0,0 +1,17 @@
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 = {}));
@@ -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 constants_1 = require("../../constants");
5
+ const rugpt_lib_common_1 = require("@purpleschool/rugpt-lib-common");
6
6
  var PatchUnregisteredUserLocaleCommand;
7
7
  (function (PatchUnregisteredUserLocaleCommand) {
8
8
  PatchUnregisteredUserLocaleCommand.RequestSchema = zod_1.z.object({
9
- locale: zod_1.z.nativeEnum(constants_1.LOCALE),
9
+ locale: zod_1.z.nativeEnum(rugpt_lib_common_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(constants_1.LOCALE),
13
+ locale: zod_1.z.nativeEnum(rugpt_lib_common_1.LOCALE),
14
14
  }),
15
15
  });
16
16
  })(PatchUnregisteredUserLocaleCommand || (exports.PatchUnregisteredUserLocaleCommand = PatchUnregisteredUserLocaleCommand = {}));
@@ -4,6 +4,7 @@ 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");
7
8
  var GetMeCommand;
8
9
  (function (GetMeCommand) {
9
10
  GetMeCommand.RequestSchema = zod_1.z.object({});
@@ -17,7 +18,7 @@ var GetMeCommand;
17
18
  telegramId: zod_1.z.number().nullable(),
18
19
  telegramUserName: zod_1.z.string().nullable(),
19
20
  webmasterId: zod_1.z.string().uuid().nullable(),
20
- locale: zod_1.z.nativeEnum(constants_1.LOCALE),
21
+ locale: zod_1.z.nativeEnum(rugpt_lib_common_1.LOCALE),
21
22
  profile: models_1.UserProfileResponseSchema,
22
23
  }),
23
24
  });
@@ -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 constants_1 = require("../../constants");
5
+ const rugpt_lib_common_1 = require("@purpleschool/rugpt-lib-common");
6
6
  var PatchUserLocaleCommand;
7
7
  (function (PatchUserLocaleCommand) {
8
8
  PatchUserLocaleCommand.RequestSchema = zod_1.z.object({
9
- locale: zod_1.z.nativeEnum(constants_1.LOCALE),
9
+ locale: zod_1.z.nativeEnum(rugpt_lib_common_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(constants_1.LOCALE),
13
+ locale: zod_1.z.nativeEnum(rugpt_lib_common_1.LOCALE),
14
14
  }),
15
15
  });
16
16
  })(PatchUserLocaleCommand || (exports.PatchUserLocaleCommand = PatchUserLocaleCommand = {}));
@@ -16,3 +16,4 @@ 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);
@@ -0,0 +1,22 @@
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 = {}));
@@ -15,6 +15,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./subscription-action.enum"), exports);
18
+ __exportStar(require("./subscription-balance-field.enum"), exports);
18
19
  __exportStar(require("./subscription-feature-type.enum"), exports);
19
20
  __exportStar(require("./subscription-plan.enum"), exports);
20
21
  __exportStar(require("./subscription-status.enum"), exports);
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SUBSCRIPTION_BALANCE_FIELD = void 0;
4
+ var SUBSCRIPTION_BALANCE_FIELD;
5
+ (function (SUBSCRIPTION_BALANCE_FIELD) {
6
+ SUBSCRIPTION_BALANCE_FIELD["TOKEN_BALANCE"] = "tokenBalance";
7
+ SUBSCRIPTION_BALANCE_FIELD["CARRIED_OVER_TOKEN_BALANCE"] = "carriedOverTokenBalance";
8
+ })(SUBSCRIPTION_BALANCE_FIELD || (exports.SUBSCRIPTION_BALANCE_FIELD = SUBSCRIPTION_BALANCE_FIELD = {}));
@@ -17,7 +17,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./tool-content-type.enum"), exports);
18
18
  __exportStar(require("./tool-group.enum"), exports);
19
19
  __exportStar(require("./tool-job-status.enum"), exports);
20
- __exportStar(require("./job-request-origin.enum"), exports);
21
20
  __exportStar(require("./tool-type.enum"), exports);
22
21
  __exportStar(require("./tool-workspace-item-slot.enum"), exports);
23
22
  __exportStar(require("./tool-workspace-status.enum"), exports);
@@ -18,4 +18,3 @@ __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);
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CategoryTranslationSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ const rugpt_lib_common_1 = require("@purpleschool/rugpt-lib-common");
6
+ exports.CategoryTranslationSchema = zod_1.z.object({
7
+ uuid: zod_1.z.string().uuid(),
8
+ categoryId: zod_1.z.string().uuid(),
9
+ locale: zod_1.z.nativeEnum(rugpt_lib_common_1.LOCALE),
10
+ name: zod_1.z.string().min(3).max(16384),
11
+ prompt: zod_1.z.nullable(zod_1.z.string().min(3).max(16384)),
12
+ placeholder: zod_1.z.nullable(zod_1.z.string()),
13
+ seoName: zod_1.z.string().min(3).max(16384),
14
+ createdAt: zod_1.z.date(),
15
+ updatedAt: zod_1.z.date(),
16
+ });
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CourseTranslationSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ const rugpt_lib_common_1 = require("@purpleschool/rugpt-lib-common");
6
+ exports.CourseTranslationSchema = zod_1.z.object({
7
+ uuid: zod_1.z.string().uuid(),
8
+ courseId: zod_1.z.string().uuid(),
9
+ locale: zod_1.z.nativeEnum(rugpt_lib_common_1.LOCALE),
10
+ title: zod_1.z.string(),
11
+ subtitle: zod_1.z.string(),
12
+ prerequisites: zod_1.z.string(),
13
+ description: zod_1.z.string(),
14
+ skills: zod_1.z.array(zod_1.z.string()),
15
+ createdAt: zod_1.z.date(),
16
+ updatedAt: zod_1.z.date(),
17
+ });
@@ -20,11 +20,13 @@ __exportStar(require("./ai-model-formatted.schema"), exports);
20
20
  __exportStar(require("./ai-model.schema"), exports);
21
21
  __exportStar(require("./ai-vendor.schema"), exports);
22
22
  __exportStar(require("./category.schema"), exports);
23
+ __exportStar(require("./category-translation.schema"), exports);
23
24
  __exportStar(require("./chat-with-messages.schema"), exports);
24
25
  __exportStar(require("./chat.schema"), exports);
25
26
  __exportStar(require("./cloud-payments-receipt.schema"), exports);
26
27
  __exportStar(require("./course-author.schema"), exports);
27
28
  __exportStar(require("./course.schema"), exports);
29
+ __exportStar(require("./course-translation.schema"), exports);
28
30
  __exportStar(require("./date.schema"), exports);
29
31
  __exportStar(require("./feedback.schema"), exports);
30
32
  __exportStar(require("./file.schema"), exports);
@@ -32,19 +34,24 @@ __exportStar(require("./key-value.schema"), exports);
32
34
  __exportStar(require("./form-submission.schema"), exports);
33
35
  __exportStar(require("./icon-variants.schema"), exports);
34
36
  __exportStar(require("./lesson.schema"), exports);
37
+ __exportStar(require("./lesson-translation.schema"), exports);
35
38
  __exportStar(require("./message.schema"), exports);
36
39
  __exportStar(require("./midjourney-job.schema"), exports);
37
40
  __exportStar(require("./order.schema"), exports);
38
41
  __exportStar(require("./page.schema"), exports);
42
+ __exportStar(require("./page-translation.schema"), exports);
39
43
  __exportStar(require("./payment-history-item.schema"), exports);
40
44
  __exportStar(require("./payment.schema"), exports);
41
45
  __exportStar(require("./invoice-for-payment.schema"), exports);
42
46
  __exportStar(require("./post.schema"), exports);
47
+ __exportStar(require("./post-translation.schema"), exports);
43
48
  __exportStar(require("./product.schema"), exports);
44
49
  __exportStar(require("./promocode.schema"), exports);
45
50
  __exportStar(require("./question.schema"), exports);
51
+ __exportStar(require("./question-translation.schema"), exports);
46
52
  __exportStar(require("./referral-bonus.schema"), exports);
47
53
  __exportStar(require("./section.schema"), exports);
54
+ __exportStar(require("./section-translation.schema"), exports);
48
55
  __exportStar(require("./subscription-feature.schema"), exports);
49
56
  __exportStar(require("./team-subscription-feature.schema"), exports);
50
57
  __exportStar(require("./subscription-upgrade-schema"), exports);
@@ -63,8 +70,11 @@ __exportStar(require("./utm.schema"), exports);
63
70
  __exportStar(require("./ui-notification.schema"), exports);
64
71
  __exportStar(require("./review.schema"), exports);
65
72
  __exportStar(require("./prompt-category.schema"), exports);
73
+ __exportStar(require("./prompt-category-translation.schema"), exports);
66
74
  __exportStar(require("./prompt-topic.schema"), exports);
75
+ __exportStar(require("./prompt-topic-translation.schema"), exports);
67
76
  __exportStar(require("./prompt.schema"), exports);
77
+ __exportStar(require("./prompt-translation.schema"), exports);
68
78
  __exportStar(require("./folder.schema"), exports);
69
79
  __exportStar(require("./filters.schema"), exports);
70
80
  __exportStar(require("./users-filter-notification.schema"), exports);
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.LessonTranslationSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ const rugpt_lib_common_1 = require("@purpleschool/rugpt-lib-common");
6
+ exports.LessonTranslationSchema = zod_1.z.object({
7
+ uuid: zod_1.z.string().uuid(),
8
+ lessonId: zod_1.z.string().uuid(),
9
+ locale: zod_1.z.nativeEnum(rugpt_lib_common_1.LOCALE),
10
+ title: zod_1.z.string(),
11
+ createdAt: zod_1.z.date(),
12
+ updatedAt: zod_1.z.date(),
13
+ });
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PageTranslationSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ const rugpt_lib_common_1 = require("@purpleschool/rugpt-lib-common");
6
+ exports.PageTranslationSchema = zod_1.z.object({
7
+ uuid: zod_1.z.string().uuid(),
8
+ pageId: zod_1.z.string().uuid(),
9
+ locale: zod_1.z.nativeEnum(rugpt_lib_common_1.LOCALE),
10
+ metaTitle: zod_1.z.string().min(3).max(16384),
11
+ metaDescription: zod_1.z.string().min(3).max(16384),
12
+ title: zod_1.z.string().min(3).max(16384),
13
+ subTitle: zod_1.z.string().min(3).max(16384),
14
+ seoTextMd: zod_1.z.string().min(3).max(16384),
15
+ toolTitle: zod_1.z.string().nullable(),
16
+ createdAt: zod_1.z.date(),
17
+ updatedAt: zod_1.z.date(),
18
+ });
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PostTranslationSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ const rugpt_lib_common_1 = require("@purpleschool/rugpt-lib-common");
6
+ exports.PostTranslationSchema = zod_1.z.object({
7
+ uuid: zod_1.z.string().uuid(),
8
+ postId: zod_1.z.string().uuid(),
9
+ locale: zod_1.z.nativeEnum(rugpt_lib_common_1.LOCALE),
10
+ title: zod_1.z.string(),
11
+ content: zod_1.z.string(),
12
+ author: zod_1.z.string(),
13
+ contentPreview: zod_1.z.nullable(zod_1.z.string()),
14
+ metaTitle: zod_1.z.nullable(zod_1.z.string()),
15
+ metaDescription: zod_1.z.nullable(zod_1.z.string()),
16
+ createdAt: zod_1.z.date(),
17
+ updatedAt: zod_1.z.date(),
18
+ });
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.PromptCategoryTranslationSchema = void 0;
7
+ const zod_1 = __importDefault(require("zod"));
8
+ const rugpt_lib_common_1 = require("@purpleschool/rugpt-lib-common");
9
+ exports.PromptCategoryTranslationSchema = zod_1.default.object({
10
+ uuid: zod_1.default.string().uuid(),
11
+ promptCategoryId: zod_1.default.string().uuid(),
12
+ locale: zod_1.default.nativeEnum(rugpt_lib_common_1.LOCALE),
13
+ title: zod_1.default.string(),
14
+ metaTitle: zod_1.default.string().nullable(),
15
+ metaDescription: zod_1.default.string().nullable(),
16
+ createdAt: zod_1.default.date(),
17
+ updatedAt: zod_1.default.date(),
18
+ });