@purpleschool/gptbot 0.12.3 → 0.12.4-stage-2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (151) hide show
  1. package/api/controllers/http/blog.ts +2 -0
  2. package/api/controllers/http/category.ts +2 -0
  3. package/api/controllers/http/course.ts +8 -0
  4. package/api/controllers/http/page.ts +2 -0
  5. package/api/controllers/http/prompt-category.ts +2 -0
  6. package/api/controllers/http/prompt-topic.ts +2 -0
  7. package/api/controllers/http/prompt.ts +2 -0
  8. package/api/controllers/http/question.ts +2 -0
  9. package/api/controllers/http/team-account.ts +1 -0
  10. package/api/routes.ts +46 -0
  11. package/build/api/controllers/http/blog.js +2 -0
  12. package/build/api/controllers/http/category.js +2 -0
  13. package/build/api/controllers/http/course.js +6 -0
  14. package/build/api/controllers/http/page.js +2 -0
  15. package/build/api/controllers/http/prompt-category.js +2 -0
  16. package/build/api/controllers/http/prompt-topic.js +2 -0
  17. package/build/api/controllers/http/prompt.js +2 -0
  18. package/build/api/controllers/http/question.js +2 -0
  19. package/build/api/controllers/http/team-account.js +1 -0
  20. package/build/api/routes.js +23 -0
  21. package/build/commands/blog/create-post-translation.command.js +25 -0
  22. package/build/commands/blog/create-post.command.js +6 -0
  23. package/build/commands/blog/index.js +2 -0
  24. package/build/commands/blog/update-post-translation.command.js +24 -0
  25. package/build/commands/blog/update-post.command.js +6 -0
  26. package/build/commands/cabinet/get-user-statistics-by-month.command.js +6 -13
  27. package/build/commands/cabinet/get-user-statistics-overview.command.js +5 -1
  28. package/build/commands/category/create-category-translation.command.js +23 -0
  29. package/build/commands/category/create-category.command.js +4 -0
  30. package/build/commands/category/index.js +2 -0
  31. package/build/commands/category/update-category-translation.command.js +22 -0
  32. package/build/commands/category/update-category.command.js +4 -0
  33. package/build/commands/course/create-course-translation.command.js +24 -0
  34. package/build/commands/course/create-course.command.js +5 -0
  35. package/build/commands/course/create-lesson-translation.command.js +20 -0
  36. package/build/commands/course/create-section-translation.command.js +20 -0
  37. package/build/commands/course/index.js +6 -0
  38. package/build/commands/course/update-course-translation.command.js +23 -0
  39. package/build/commands/course/update-lesson-translation.command.js +19 -0
  40. package/build/commands/course/update-section-translation.command.js +19 -0
  41. package/build/commands/page/create-page-translation.command.js +24 -0
  42. package/build/commands/page/create-page.command.js +5 -0
  43. package/build/commands/page/index.js +2 -0
  44. package/build/commands/page/update-page-translation.command.js +23 -0
  45. package/build/commands/page/update-page.command.js +5 -0
  46. package/build/commands/prompt/create-prompt-translation.command.js +21 -0
  47. package/build/commands/prompt/create-prompt.command.js +2 -0
  48. package/build/commands/prompt/index.js +2 -0
  49. package/build/commands/prompt/update-prompt-translation.command.js +20 -0
  50. package/build/commands/prompt/update-prompt.command.js +2 -0
  51. package/build/commands/prompt-category/create-prompt-category-translation.command.js +22 -0
  52. package/build/commands/prompt-category/create-prompt-category.command.js +3 -0
  53. package/build/commands/prompt-category/index.js +2 -0
  54. package/build/commands/prompt-category/update-prompt-category-translation.command.js +21 -0
  55. package/build/commands/prompt-category/update-prompt-category.command.js +3 -0
  56. package/build/commands/prompt-topic/create-prompt-topic-translation.command.js +24 -0
  57. package/build/commands/prompt-topic/create-prompt-topic.command.js +5 -0
  58. package/build/commands/prompt-topic/index.js +2 -0
  59. package/build/commands/prompt-topic/update-prompt-topic-translation.command.js +23 -0
  60. package/build/commands/prompt-topic/update-prompt-topic.command.js +5 -0
  61. package/build/commands/question/create-question-translation.command.js +21 -0
  62. package/build/commands/question/create-question.command.js +2 -0
  63. package/build/commands/question/index.js +2 -0
  64. package/build/commands/question/update-question-translation.command.js +20 -0
  65. package/build/commands/question/update-question.command.js +2 -0
  66. package/build/commands/team-account/get-team-account-statistics-by-month.command.js +6 -13
  67. package/build/commands/team-account/get-team-account-statistics-overview.command.js +5 -1
  68. package/build/commands/team-account/index.js +1 -0
  69. package/build/commands/team-account/update-team-account-invite.command.js +17 -0
  70. package/build/commands/tools/writer/discard-writer-source.command.js +16 -0
  71. package/build/commands/tools/writer/index.js +1 -0
  72. package/build/commands/tools/writer/update-writer-document-outline.command.js +1 -0
  73. package/build/commands/unregistered-user/patch-locale.command.js +3 -3
  74. package/build/commands/user/get-me.command.js +2 -1
  75. package/build/commands/user/patch-locale.command.js +3 -3
  76. package/build/constants/cabinet/enums/index.js +1 -0
  77. package/build/constants/cabinet/enums/statistics-request-type.enum.js +22 -0
  78. package/build/constants/subscription/enums/index.js +1 -0
  79. package/build/constants/subscription/enums/subscription-balance-field.enum.js +8 -0
  80. package/build/constants/tool/enums/index.js +0 -1
  81. package/build/constants/user/enums/index.js +0 -1
  82. package/build/models/tools/writer/writer-source.schema.js +1 -0
  83. package/build/models/user.schema.js +2 -2
  84. package/commands/blog/create-post-translation.command.ts +30 -0
  85. package/commands/blog/create-post.command.ts +6 -0
  86. package/commands/blog/index.ts +2 -0
  87. package/commands/blog/update-post-translation.command.ts +29 -0
  88. package/commands/blog/update-post.command.ts +6 -0
  89. package/commands/cabinet/get-user-statistics-by-month.command.ts +7 -14
  90. package/commands/cabinet/get-user-statistics-overview.command.ts +6 -2
  91. package/commands/category/create-category-translation.command.ts +28 -0
  92. package/commands/category/create-category.command.ts +4 -0
  93. package/commands/category/index.ts +2 -0
  94. package/commands/category/update-category-translation.command.ts +27 -0
  95. package/commands/category/update-category.command.ts +4 -0
  96. package/commands/course/create-course-translation.command.ts +29 -0
  97. package/commands/course/create-course.command.ts +5 -0
  98. package/commands/course/create-lesson-translation.command.ts +25 -0
  99. package/commands/course/create-section-translation.command.ts +25 -0
  100. package/commands/course/index.ts +6 -0
  101. package/commands/course/update-course-translation.command.ts +28 -0
  102. package/commands/course/update-lesson-translation.command.ts +24 -0
  103. package/commands/course/update-section-translation.command.ts +24 -0
  104. package/commands/page/create-page-translation.command.ts +29 -0
  105. package/commands/page/create-page.command.ts +5 -0
  106. package/commands/page/index.ts +2 -0
  107. package/commands/page/update-page-translation.command.ts +28 -0
  108. package/commands/page/update-page.command.ts +5 -0
  109. package/commands/prompt/create-prompt-translation.command.ts +26 -0
  110. package/commands/prompt/create-prompt.command.ts +2 -0
  111. package/commands/prompt/index.ts +2 -0
  112. package/commands/prompt/update-prompt-translation.command.ts +25 -0
  113. package/commands/prompt/update-prompt.command.ts +2 -0
  114. package/commands/prompt-category/create-prompt-category-translation.command.ts +27 -0
  115. package/commands/prompt-category/create-prompt-category.command.ts +3 -0
  116. package/commands/prompt-category/index.ts +2 -0
  117. package/commands/prompt-category/update-prompt-category-translation.command.ts +26 -0
  118. package/commands/prompt-category/update-prompt-category.command.ts +3 -0
  119. package/commands/prompt-topic/create-prompt-topic-translation.command.ts +29 -0
  120. package/commands/prompt-topic/create-prompt-topic.command.ts +5 -0
  121. package/commands/prompt-topic/index.ts +2 -0
  122. package/commands/prompt-topic/update-prompt-topic-translation.command.ts +28 -0
  123. package/commands/prompt-topic/update-prompt-topic.command.ts +5 -0
  124. package/commands/question/create-question-translation.command.ts +26 -0
  125. package/commands/question/create-question.command.ts +2 -0
  126. package/commands/question/index.ts +2 -0
  127. package/commands/question/update-question-translation.command.ts +25 -0
  128. package/commands/question/update-question.command.ts +2 -0
  129. package/commands/team-account/get-team-account-statistics-by-month.command.ts +7 -14
  130. package/commands/team-account/get-team-account-statistics-overview.command.ts +6 -2
  131. package/commands/team-account/index.ts +1 -0
  132. package/commands/team-account/update-team-account-invite.command.ts +22 -0
  133. package/commands/tools/writer/discard-writer-source.command.ts +18 -0
  134. package/commands/tools/writer/index.ts +1 -0
  135. package/commands/tools/writer/update-writer-document-outline.command.ts +1 -0
  136. package/commands/unregistered-user/patch-locale.command.ts +1 -1
  137. package/commands/user/get-me.command.ts +2 -1
  138. package/commands/user/patch-locale.command.ts +1 -1
  139. package/constants/cabinet/enums/index.ts +1 -0
  140. package/constants/cabinet/enums/statistics-request-type.enum.ts +18 -0
  141. package/constants/subscription/enums/index.ts +1 -0
  142. package/constants/subscription/enums/subscription-balance-field.enum.ts +4 -0
  143. package/constants/tool/enums/index.ts +0 -1
  144. package/constants/user/enums/index.ts +0 -1
  145. package/models/tools/writer/writer-source.schema.ts +1 -0
  146. package/models/user.schema.ts +1 -1
  147. package/package.json +2 -1
  148. package/build/constants/tool/enums/job-request-origin.enum.js +0 -8
  149. package/build/constants/user/enums/locale.enum.js +0 -8
  150. package/constants/tool/enums/job-request-origin.enum.ts +0 -4
  151. package/constants/user/enums/locale.enum.ts +0 -4
@@ -1,7 +1,7 @@
1
1
  import { z } from 'zod';
2
2
  import { UserToSubscriptionSchema } from './user-to-subscription.schema';
3
3
  import { UserToProductSchema } from './user-to-product.schema';
4
- import { LOCALE } from '../constants';
4
+ import { LOCALE } from '@purpleschool/rugpt-lib-common';
5
5
 
6
6
  export const UserSchema = z.object({
7
7
  uuid: z.string().uuid(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@purpleschool/gptbot",
3
- "version": "0.12.3",
3
+ "version": "0.12.4-stage-2",
4
4
  "description": "",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",
@@ -12,6 +12,7 @@
12
12
  "author": "",
13
13
  "license": "ISC",
14
14
  "dependencies": {
15
+ "@purpleschool/rugpt-lib-common": "^0.0.21",
15
16
  "zod": "^3.25.67"
16
17
  }
17
18
  }
@@ -1,8 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.JOB_REQUEST_ORIGIN = void 0;
4
- var JOB_REQUEST_ORIGIN;
5
- (function (JOB_REQUEST_ORIGIN) {
6
- JOB_REQUEST_ORIGIN["API"] = "api";
7
- JOB_REQUEST_ORIGIN["B2B"] = "b2b";
8
- })(JOB_REQUEST_ORIGIN || (exports.JOB_REQUEST_ORIGIN = JOB_REQUEST_ORIGIN = {}));
@@ -1,8 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.LOCALE = void 0;
4
- var LOCALE;
5
- (function (LOCALE) {
6
- LOCALE["RU"] = "ru";
7
- LOCALE["EN"] = "en";
8
- })(LOCALE || (exports.LOCALE = LOCALE = {}));
@@ -1,4 +0,0 @@
1
- export enum JOB_REQUEST_ORIGIN {
2
- API = 'api',
3
- B2B = 'b2b',
4
- }
@@ -1,4 +0,0 @@
1
- export enum LOCALE {
2
- RU = 'ru',
3
- EN = 'en',
4
- }