@purpleschool/gptbot 0.9.96 → 0.10.0

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 (344) hide show
  1. package/api/controllers/http/auth.ts +1 -0
  2. package/api/controllers/http/b2b.ts +1 -0
  3. package/api/controllers/http/index.ts +4 -0
  4. package/api/controllers/http/interior-design.ts +14 -0
  5. package/api/controllers/http/marketplace-card.ts +14 -0
  6. package/api/controllers/http/page.ts +2 -0
  7. package/api/controllers/http/payment.ts +1 -0
  8. package/api/controllers/http/product.ts +1 -0
  9. package/api/controllers/http/solving-edu-task.ts +14 -0
  10. package/api/controllers/http/subscription.ts +2 -1
  11. package/api/controllers/http/team-account.ts +21 -0
  12. package/api/routes.ts +125 -2
  13. package/build/api/controllers/http/auth.js +1 -0
  14. package/build/api/controllers/http/b2b.js +1 -0
  15. package/build/api/controllers/http/index.js +4 -0
  16. package/build/api/controllers/http/interior-design.js +16 -0
  17. package/build/api/controllers/http/marketplace-card.js +16 -0
  18. package/build/api/controllers/http/page.js +2 -0
  19. package/build/api/controllers/http/payment.js +1 -0
  20. package/build/api/controllers/http/product.js +1 -0
  21. package/build/api/controllers/http/solving-edu-task.js +16 -0
  22. package/build/api/controllers/http/subscription.js +2 -1
  23. package/build/api/controllers/http/team-account.js +23 -0
  24. package/build/api/routes.js +93 -2
  25. package/build/commands/b2b/get-b2b-documentation.command.js +99 -0
  26. package/build/commands/b2b/index.js +2 -0
  27. package/build/commands/b2b/send-text-request.command.js +2 -5
  28. package/build/commands/b2b/upload-b2b-file.command.js +12 -0
  29. package/build/commands/cabinet/get-user-statistics-by-month.command.js +4 -0
  30. package/build/commands/chat/archive-all.command.js +1 -4
  31. package/build/commands/chat/check-limit.command.js +7 -0
  32. package/build/commands/chat/create-chat.command.js +0 -1
  33. package/build/commands/chat/find-chats.command.js +1 -1
  34. package/build/commands/chat/get-last-active-chat-command.js +0 -1
  35. package/build/commands/index.js +3 -0
  36. package/build/commands/message/create-text-message.command.js +1 -0
  37. package/build/commands/page/find-pages-by-criteria.command.js +36 -0
  38. package/build/commands/page/index.js +1 -0
  39. package/build/commands/payment/find-payments-by-criteria.command.js +53 -0
  40. package/build/commands/payment/index.js +1 -0
  41. package/build/commands/product/buy-product.command.js +25 -1
  42. package/build/commands/product/index.js +1 -0
  43. package/build/commands/product/refund-product.command.js +15 -0
  44. package/build/commands/subscription/buy-subscription.command.js +24 -1
  45. package/build/commands/subscription/index.js +1 -1
  46. package/build/commands/subscription/refund-subscription.command.js +15 -0
  47. package/build/commands/subscription/upgrade-subscription.command.js +25 -1
  48. package/build/commands/team-account/accept-team-account-invite.command.js +14 -0
  49. package/build/commands/team-account/create-manual-team-product.command.js +15 -0
  50. package/build/commands/team-account/create-manual-team-subscription.command.js +16 -0
  51. package/build/commands/team-account/create-team-account.command.js +16 -0
  52. package/build/commands/team-account/find-current-team-account-products.command.js +11 -0
  53. package/build/commands/team-account/find-current-team-account-subscriptions.command.js +11 -0
  54. package/build/commands/team-account/find-team-account-members.command.js +11 -0
  55. package/build/commands/team-account/find-team-account-operations.command.js +15 -0
  56. package/build/commands/team-account/find-team-account-products.command.js +11 -0
  57. package/build/commands/team-account/find-team-account-subscriptions.command.js +11 -0
  58. package/build/commands/team-account/find-team-accounts-by-name.command.js +18 -0
  59. package/build/commands/team-account/get-my-team-account.command.js +11 -0
  60. package/build/commands/team-account/get-team-account-balance.command.js +15 -0
  61. package/build/commands/team-account/index.js +33 -0
  62. package/build/commands/team-account/invite-team-account-member.command.js +17 -0
  63. package/build/commands/team-account/refund-team-account-balance.command.js +14 -0
  64. package/build/commands/team-account/remove-team-account-member.command.js +15 -0
  65. package/build/commands/team-account/update-team-account-member.command.js +23 -0
  66. package/build/commands/team-account/update-team-account.command.js +18 -0
  67. package/build/commands/team-to-product/add-team-to-product.command.js +16 -0
  68. package/build/commands/team-to-product/get-team-to-product-by-uuid.command.js +14 -0
  69. package/build/commands/team-to-product/get-team-to-products.command.js +14 -0
  70. package/build/commands/team-to-product/index.js +20 -0
  71. package/build/commands/team-to-product/update-team-to-product.command.js +21 -0
  72. package/build/commands/team-to-subscription/add-team-to-subscription.command.js +20 -0
  73. package/build/commands/team-to-subscription/get-team-to-subscription-by-uuid.command.js +14 -0
  74. package/build/commands/team-to-subscription/get-team-to-subscriptions.command.js +14 -0
  75. package/build/commands/team-to-subscription/index.js +20 -0
  76. package/build/commands/team-to-subscription/update-team-to-subscription.command.js +31 -0
  77. package/build/commands/tools/image-editor/image-editor.command.js +1 -0
  78. package/build/commands/tools/image-editor/retry-image-editor-job.command.js +1 -0
  79. package/build/commands/tools/index.js +3 -0
  80. package/build/commands/tools/interior-design/delete-all-interior-design-jobs.command.js +8 -0
  81. package/build/commands/tools/interior-design/delete-interior-design-job-by-uuid.command.js +11 -0
  82. package/build/commands/tools/interior-design/find-interior-design-job-by-uuid.command.js +14 -0
  83. package/build/commands/tools/interior-design/find-interior-design-jobs.command.js +18 -0
  84. package/build/commands/tools/interior-design/get-interior-design-tool-config.command.js +11 -0
  85. package/build/commands/tools/interior-design/index.js +25 -0
  86. package/build/commands/tools/interior-design/interior-design.command.js +20 -0
  87. package/build/commands/tools/interior-design/retry-interior-design-job.command.js +25 -0
  88. package/build/commands/tools/interior-design/set-reaction-to-interior-design-job.command.js +28 -0
  89. package/build/commands/tools/interior-design/update-interior-design-job-title.command.js +17 -0
  90. package/build/commands/tools/marketplace-card/delete-all-marketplace-card-jobs.command.js +10 -0
  91. package/build/commands/tools/marketplace-card/delete-marketplace-card-by-uuid.command.js +13 -0
  92. package/build/commands/tools/marketplace-card/execute-marketplace-card.command.js +48 -0
  93. package/build/commands/tools/marketplace-card/find-marketplace-card-job-by-uuid.command.js +14 -0
  94. package/build/commands/tools/marketplace-card/find-marketplace-card-jobs.command.js +18 -0
  95. package/build/commands/tools/marketplace-card/get-marketplace-card-config.command.js +11 -0
  96. package/build/commands/tools/marketplace-card/index.js +25 -0
  97. package/build/commands/tools/marketplace-card/retry-marketplace-card-job.command.js +51 -0
  98. package/build/commands/tools/marketplace-card/set-reaction-to-marketplace-card.command.js +28 -0
  99. package/build/commands/tools/marketplace-card/update-marketplace-card-job-title.command.js +17 -0
  100. package/build/commands/tools/solving-edu-task/delete-all-solving-edu-task-jobs.command.js +10 -0
  101. package/build/commands/tools/solving-edu-task/delete-solving-edu-task-job-by-uuid.command.js +13 -0
  102. package/build/commands/tools/solving-edu-task/find-solving-edu-task-job-by-uuid.command.js +14 -0
  103. package/build/commands/tools/solving-edu-task/find-solving-edu-task-jobs.command.js +18 -0
  104. package/build/commands/tools/solving-edu-task/get-solving-edu-task-tool-config.command.js +11 -0
  105. package/build/commands/tools/solving-edu-task/index.js +25 -0
  106. package/build/commands/tools/solving-edu-task/retry-solving-edu-task-job.command.js +23 -0
  107. package/build/commands/tools/solving-edu-task/set-reaction-to-solving-edu-task-job.command.js +28 -0
  108. package/build/commands/tools/solving-edu-task/solving-edu-task.command.js +30 -0
  109. package/build/commands/tools/solving-edu-task/update-solving-edu-task-job-title.command.js +17 -0
  110. package/build/commands/user/get-me.command.js +2 -1
  111. package/build/commands/user/get-user-payments.command.js +3 -1
  112. package/build/constants/ai-model/enums/index.js +0 -1
  113. package/build/constants/billing/enums/billing-scope.enum.js +8 -0
  114. package/build/constants/{errors → billing/enums}/index.js +1 -2
  115. package/build/constants/billing/index.js +17 -0
  116. package/build/constants/cabinet/enums/index.js +1 -0
  117. package/build/constants/cabinet/enums/statistics-metric-type.enum.js +8 -0
  118. package/build/constants/index.js +2 -1
  119. package/build/constants/model/enums/unified-model-content-type.enum.js +2 -1
  120. package/build/constants/page/enums/index.js +1 -0
  121. package/build/constants/page/enums/page-sort-by.enum.js +8 -0
  122. package/build/constants/payment/enums/index.js +1 -0
  123. package/build/constants/payment/enums/payment-provider.enum.js +8 -0
  124. package/build/constants/product/enums/product-status.enum.js +1 -0
  125. package/build/constants/subscription/enums/subscription-feature-type.enum.js +5 -1
  126. package/build/constants/subscription/enums/subscription-status.enum.js +1 -0
  127. package/build/constants/subscription/enums/user-to-subscription-marks.enum.js +1 -0
  128. package/build/constants/team-account/enums/index.js +20 -0
  129. package/build/constants/team-account/enums/team-account-invite-status.enum.js +10 -0
  130. package/build/constants/team-account/enums/team-account-member-role.enum.js +9 -0
  131. package/build/constants/team-account/enums/team-account-member-status.enum.js +11 -0
  132. package/build/constants/team-account/enums/team-account-operation-type.enum.js +10 -0
  133. package/build/constants/team-account/index.js +17 -0
  134. package/build/constants/tool/enums/index.js +0 -1
  135. package/build/constants/transaction/enums/user-balance-status.enum.js +3 -0
  136. package/build/constants/ui-notification/enums/ui-notification-type.enum.js +1 -0
  137. package/build/constants/user/enums/user-status.js +1 -0
  138. package/build/helpers/index.js +1 -0
  139. package/build/helpers/interior-design/calculate-interior-design-price.helper.js +13 -0
  140. package/build/helpers/interior-design/index.js +17 -0
  141. package/build/models/ai-model.schema.js +0 -1
  142. package/build/models/b2b/b2b-completions-stream-chunk.schema.js +10 -0
  143. package/build/models/b2b/b2b-file-upload-response.schema.js +11 -0
  144. package/build/models/b2b/index.js +18 -0
  145. package/build/models/chat.schema.js +1 -1
  146. package/build/models/community/community-post-media-data.schema.js +1 -0
  147. package/build/models/index.js +3 -0
  148. package/build/models/json-value.schema.js +13 -0
  149. package/build/models/message.schema.js +1 -0
  150. package/build/models/payment.schema.js +8 -3
  151. package/build/models/product.schema.js +2 -0
  152. package/build/models/prompt.schema.js +0 -2
  153. package/build/models/subscription-feature.schema.js +24 -3
  154. package/build/models/subscription.schema.js +1 -0
  155. package/build/models/team-account/index.js +22 -0
  156. package/build/models/team-account/team-account-invite.schema.js +20 -0
  157. package/build/models/team-account/team-account-member.schema.js +17 -0
  158. package/build/models/team-account/team-account-operation.schema.js +12 -0
  159. package/build/models/team-account/team-account.schema.js +14 -0
  160. package/build/models/team-account/team-to-product.schema.js +21 -0
  161. package/build/models/team-account/team-to-subscription.schema.js +31 -0
  162. package/build/models/tools/image-editor/image-editor-job.schema.js +1 -0
  163. package/build/models/tools/image-editor/image-editor-model.schema.js +6 -0
  164. package/build/models/tools/image-generation/image-generation-model.schema.js +8 -5
  165. package/build/models/tools/index.js +3 -0
  166. package/build/models/tools/interior-design/index.js +19 -0
  167. package/build/models/tools/interior-design/interior-design-config.schema.js +23 -0
  168. package/build/models/tools/interior-design/interior-design-job.schema.js +27 -0
  169. package/build/models/tools/interior-design/interior-design-model.schema.js +34 -0
  170. package/build/models/tools/marketplace-card/index.js +18 -0
  171. package/build/models/tools/marketplace-card/marketplace-card-config.schema.js +30 -0
  172. package/build/models/tools/marketplace-card/marketplace-card-job.schema.js +24 -0
  173. package/build/models/tools/solving-edu-task/index.js +19 -0
  174. package/build/models/tools/solving-edu-task/solving-edu-task-config.schema.js +8 -0
  175. package/build/models/tools/solving-edu-task/solving-edu-task-job.schema.js +25 -0
  176. package/build/models/tools/solving-edu-task/solving-edu-task-model.schema.js +22 -0
  177. package/build/models/tools/video-editor/video-editor-job.schema.js +14 -1
  178. package/build/models/user-profile.schema.js +1 -0
  179. package/commands/b2b/get-b2b-documentation.command.ts +121 -0
  180. package/commands/b2b/index.ts +2 -0
  181. package/commands/b2b/send-text-request.command.ts +2 -5
  182. package/commands/b2b/upload-b2b-file.command.ts +14 -0
  183. package/commands/cabinet/get-user-statistics-by-month.command.ts +5 -1
  184. package/commands/chat/archive-all.command.ts +2 -4
  185. package/commands/chat/check-limit.command.ts +7 -0
  186. package/commands/chat/create-chat.command.ts +0 -1
  187. package/commands/chat/find-chats.command.ts +2 -5
  188. package/commands/chat/get-last-active-chat-command.ts +0 -1
  189. package/commands/index.ts +3 -0
  190. package/commands/message/create-text-message.command.ts +1 -0
  191. package/commands/page/find-pages-by-criteria.command.ts +50 -0
  192. package/commands/page/index.ts +1 -0
  193. package/commands/payment/find-payments-by-criteria.command.ts +63 -0
  194. package/commands/payment/index.ts +1 -0
  195. package/commands/product/buy-product.command.ts +27 -1
  196. package/commands/product/index.ts +1 -0
  197. package/commands/product/refund-product.command.ts +17 -0
  198. package/commands/subscription/buy-subscription.command.ts +26 -1
  199. package/commands/subscription/index.ts +1 -1
  200. package/commands/subscription/refund-subscription.command.ts +17 -0
  201. package/commands/subscription/upgrade-subscription.command.ts +27 -1
  202. package/commands/team-account/accept-team-account-invite.command.ts +16 -0
  203. package/commands/team-account/create-manual-team-product.command.ts +17 -0
  204. package/commands/team-account/create-manual-team-subscription.command.ts +18 -0
  205. package/commands/team-account/create-team-account.command.ts +18 -0
  206. package/commands/team-account/find-current-team-account-products.command.ts +10 -0
  207. package/commands/team-account/find-current-team-account-subscriptions.command.ts +10 -0
  208. package/commands/team-account/find-team-account-members.command.ts +10 -0
  209. package/commands/team-account/find-team-account-operations.command.ts +17 -0
  210. package/commands/team-account/find-team-account-products.command.ts +10 -0
  211. package/commands/team-account/find-team-account-subscriptions.command.ts +10 -0
  212. package/commands/team-account/find-team-accounts-by-name.command.ts +20 -0
  213. package/commands/team-account/get-my-team-account.command.ts +10 -0
  214. package/commands/team-account/get-team-account-balance.command.ts +14 -0
  215. package/commands/team-account/index.ts +17 -0
  216. package/commands/team-account/invite-team-account-member.command.ts +19 -0
  217. package/commands/team-account/refund-team-account-balance.command.ts +16 -0
  218. package/commands/team-account/remove-team-account-member.command.ts +17 -0
  219. package/commands/team-account/update-team-account-member.command.ts +25 -0
  220. package/commands/team-account/update-team-account.command.ts +24 -0
  221. package/commands/team-to-product/add-team-to-product.command.ts +18 -0
  222. package/commands/team-to-product/get-team-to-product-by-uuid.command.ts +16 -0
  223. package/commands/team-to-product/get-team-to-products.command.ts +16 -0
  224. package/commands/team-to-product/index.ts +4 -0
  225. package/commands/team-to-product/update-team-to-product.command.ts +26 -0
  226. package/commands/team-to-subscription/add-team-to-subscription.command.ts +22 -0
  227. package/commands/team-to-subscription/get-team-to-subscription-by-uuid.command.ts +16 -0
  228. package/commands/team-to-subscription/get-team-to-subscriptions.command.ts +16 -0
  229. package/commands/team-to-subscription/index.ts +4 -0
  230. package/commands/team-to-subscription/update-team-to-subscription.command.ts +36 -0
  231. package/commands/tools/image-editor/image-editor.command.ts +1 -0
  232. package/commands/tools/image-editor/retry-image-editor-job.command.ts +1 -0
  233. package/commands/tools/index.ts +3 -0
  234. package/commands/tools/interior-design/delete-all-interior-design-jobs.command.ts +6 -0
  235. package/commands/tools/interior-design/delete-interior-design-job-by-uuid.command.ts +11 -0
  236. package/commands/tools/interior-design/find-interior-design-job-by-uuid.command.ts +16 -0
  237. package/commands/tools/interior-design/find-interior-design-jobs.command.ts +18 -0
  238. package/commands/tools/interior-design/get-interior-design-tool-config.command.ts +10 -0
  239. package/commands/tools/interior-design/index.ts +9 -0
  240. package/commands/tools/interior-design/interior-design.command.ts +21 -0
  241. package/commands/tools/interior-design/retry-interior-design-job.command.ts +27 -0
  242. package/commands/tools/interior-design/set-reaction-to-interior-design-job.command.ts +33 -0
  243. package/commands/tools/interior-design/update-interior-design-job-title.command.ts +19 -0
  244. package/commands/tools/marketplace-card/delete-all-marketplace-card-jobs.command.ts +8 -0
  245. package/commands/tools/marketplace-card/delete-marketplace-card-by-uuid.command.ts +13 -0
  246. package/commands/tools/marketplace-card/execute-marketplace-card.command.ts +53 -0
  247. package/commands/tools/marketplace-card/find-marketplace-card-job-by-uuid.command.ts +16 -0
  248. package/commands/tools/marketplace-card/find-marketplace-card-jobs.command.ts +18 -0
  249. package/commands/tools/marketplace-card/get-marketplace-card-config.command.ts +9 -0
  250. package/commands/tools/marketplace-card/index.ts +9 -0
  251. package/commands/tools/marketplace-card/retry-marketplace-card-job.command.ts +57 -0
  252. package/commands/tools/marketplace-card/set-reaction-to-marketplace-card.command.ts +33 -0
  253. package/commands/tools/marketplace-card/update-marketplace-card-job-title.command.ts +19 -0
  254. package/commands/tools/solving-edu-task/delete-all-solving-edu-task-jobs.command.ts +8 -0
  255. package/commands/tools/solving-edu-task/delete-solving-edu-task-job-by-uuid.command.ts +13 -0
  256. package/commands/tools/solving-edu-task/find-solving-edu-task-job-by-uuid.command.ts +16 -0
  257. package/commands/tools/solving-edu-task/find-solving-edu-task-jobs.command.ts +18 -0
  258. package/commands/tools/solving-edu-task/get-solving-edu-task-tool-config.command.ts +9 -0
  259. package/commands/tools/solving-edu-task/index.ts +9 -0
  260. package/commands/tools/solving-edu-task/retry-solving-edu-task-job.command.ts +25 -0
  261. package/commands/tools/solving-edu-task/set-reaction-to-solving-edu-task-job.command.ts +33 -0
  262. package/commands/tools/solving-edu-task/solving-edu-task.command.ts +31 -0
  263. package/commands/tools/solving-edu-task/update-solving-edu-task-job-title.command.ts +19 -0
  264. package/commands/user/get-me.command.ts +2 -1
  265. package/commands/user/get-user-payments.command.ts +4 -2
  266. package/constants/ai-model/enums/index.ts +0 -1
  267. package/constants/billing/enums/billing-scope.enum.ts +4 -0
  268. package/constants/billing/enums/index.ts +1 -0
  269. package/constants/billing/index.ts +1 -0
  270. package/constants/cabinet/enums/index.ts +1 -0
  271. package/constants/cabinet/enums/statistics-metric-type.enum.ts +4 -0
  272. package/constants/index.ts +2 -1
  273. package/constants/model/enums/unified-model-content-type.enum.ts +2 -1
  274. package/constants/page/enums/index.ts +1 -0
  275. package/constants/page/enums/page-sort-by.enum.ts +4 -0
  276. package/constants/payment/enums/index.ts +1 -0
  277. package/constants/payment/enums/payment-provider.enum.ts +4 -0
  278. package/constants/product/enums/product-status.enum.ts +1 -0
  279. package/constants/subscription/enums/subscription-feature-type.enum.ts +5 -1
  280. package/constants/subscription/enums/subscription-status.enum.ts +1 -0
  281. package/constants/subscription/enums/user-to-subscription-marks.enum.ts +1 -0
  282. package/constants/team-account/enums/index.ts +4 -0
  283. package/constants/team-account/enums/team-account-invite-status.enum.ts +6 -0
  284. package/constants/team-account/enums/team-account-member-role.enum.ts +5 -0
  285. package/constants/team-account/enums/team-account-member-status.enum.ts +7 -0
  286. package/constants/team-account/enums/team-account-operation-type.enum.ts +6 -0
  287. package/constants/team-account/index.ts +1 -0
  288. package/constants/tool/enums/index.ts +0 -1
  289. package/constants/transaction/enums/user-balance-status.enum.ts +3 -0
  290. package/constants/ui-notification/enums/ui-notification-type.enum.ts +1 -0
  291. package/constants/user/enums/user-status.ts +1 -0
  292. package/helpers/index.ts +1 -0
  293. package/helpers/interior-design/calculate-interior-design-price.helper.ts +23 -0
  294. package/helpers/interior-design/index.ts +1 -0
  295. package/models/ai-model.schema.ts +3 -7
  296. package/models/b2b/b2b-completions-stream-chunk.schema.ts +10 -0
  297. package/models/b2b/b2b-file-upload-response.schema.ts +14 -0
  298. package/models/b2b/index.ts +2 -0
  299. package/models/chat.schema.ts +1 -1
  300. package/models/community/community-post-media-data.schema.ts +1 -0
  301. package/models/index.ts +3 -0
  302. package/models/json-value.schema.ts +23 -0
  303. package/models/message.schema.ts +1 -0
  304. package/models/payment.schema.ts +7 -2
  305. package/models/product.schema.ts +2 -0
  306. package/models/prompt.schema.ts +0 -2
  307. package/models/subscription-feature.schema.ts +32 -7
  308. package/models/subscription.schema.ts +7 -1
  309. package/models/team-account/index.ts +6 -0
  310. package/models/team-account/team-account-invite.schema.ts +18 -0
  311. package/models/team-account/team-account-member.schema.ts +15 -0
  312. package/models/team-account/team-account-operation.schema.ts +10 -0
  313. package/models/team-account/team-account.schema.ts +12 -0
  314. package/models/team-account/team-to-product.schema.ts +20 -0
  315. package/models/team-account/team-to-subscription.schema.ts +33 -0
  316. package/models/tools/image-editor/image-editor-job.schema.ts +1 -0
  317. package/models/tools/image-editor/image-editor-model.schema.ts +9 -0
  318. package/models/tools/image-generation/image-generation-model.schema.ts +8 -5
  319. package/models/tools/index.ts +3 -0
  320. package/models/tools/interior-design/index.ts +3 -0
  321. package/models/tools/interior-design/interior-design-config.schema.ts +29 -0
  322. package/models/tools/interior-design/interior-design-job.schema.ts +32 -0
  323. package/models/tools/interior-design/interior-design-model.schema.ts +45 -0
  324. package/models/tools/marketplace-card/index.ts +2 -0
  325. package/models/tools/marketplace-card/marketplace-card-config.schema.ts +33 -0
  326. package/models/tools/marketplace-card/marketplace-card-job.schema.ts +25 -0
  327. package/models/tools/solving-edu-task/index.ts +3 -0
  328. package/models/tools/solving-edu-task/solving-edu-task-config.schema.ts +8 -0
  329. package/models/tools/solving-edu-task/solving-edu-task-job.schema.ts +28 -0
  330. package/models/tools/solving-edu-task/solving-edu-task-model.schema.ts +25 -0
  331. package/models/tools/video-editor/video-editor-job.schema.ts +14 -1
  332. package/models/user-profile.schema.ts +1 -0
  333. package/package.json +1 -1
  334. package/build/commands/subscription/create-custom-subscription-plan.command.js +0 -24
  335. package/build/constants/ai-model/enums/ai-model-content-type.enum.js +0 -7
  336. package/build/constants/errors/errors.js +0 -4351
  337. package/build/constants/errors/verbose.js +0 -9
  338. package/build/constants/tool/enums/tool-type.enum.js +0 -12
  339. package/commands/subscription/create-custom-subscription-plan.command.ts +0 -26
  340. package/constants/ai-model/enums/ai-model-content-type.enum.ts +0 -7
  341. package/constants/errors/errors.ts +0 -4391
  342. package/constants/errors/index.ts +0 -2
  343. package/constants/errors/verbose.ts +0 -7
  344. package/constants/tool/enums/tool-type.enum.ts +0 -8
@@ -2,6 +2,7 @@ export const AUTH_CONTROLLER = 'auth' as const;
2
2
 
3
3
  export const AUTH_ROUTES = {
4
4
  REGISTER: 'register',
5
+ ADMIN_LOGIN: 'admin/login',
5
6
  LOGIN: 'login',
6
7
  VK_LOGIN: 'vk/login',
7
8
  YANDEX_LOGIN: 'yandex/login',
@@ -6,6 +6,7 @@ export const B2B_ROUTES = {
6
6
  SEND_TEXT_REQUEST: 'completions',
7
7
  SEND_IMAGE_REQUEST: 'image/generation',
8
8
  GET_B2B_IMAGE_JOB: (uuid: string) => `image/generation/jobs/${uuid}`,
9
+ DOCUMENTATION: 'documentation',
9
10
  FILE_UPLOAD: 'file/upload',
10
11
  BALANCE_TOP_UP: 'balance/top-up',
11
12
  } as const;
@@ -56,3 +56,7 @@ export * from './b2b';
56
56
  export * from './community';
57
57
  export * from './user-profile';
58
58
  export * from './image-generation';
59
+ export * from './marketplace-card';
60
+ export * from './interior-design';
61
+ export * from './solving-edu-task';
62
+ export * from './team-account';
@@ -0,0 +1,14 @@
1
+ export const INTERIOR_DESIGN_CONTROLLER_PRIVATE = 'private/tools/interior-design' as const;
2
+ export const INTERIOR_DESIGN_CONTROLLER_PUBLIC = 'public/tools/interior-design' as const;
3
+
4
+ export const INTERIOR_DESIGN_ROUTES = {
5
+ CONFIG: 'config',
6
+ EXECUTE: 'execute',
7
+ GET_JOBS: 'jobs',
8
+ GET_JOB: (uuid: string) => `jobs/${uuid}`,
9
+ UPDATE: (uuid: string) => `jobs/${uuid}`,
10
+ SET_REACTION: (uuid: string) => `jobs/${uuid}/reaction`,
11
+ DELETE: (uuid: string) => `jobs/${uuid}`,
12
+ DELETE_ALL: 'jobs',
13
+ RETRY: (uuid: string) => `jobs/${uuid}/retry`,
14
+ } as const;
@@ -0,0 +1,14 @@
1
+ export const MARKETPLACE_CARD_CONTROLLER_PRIVATE = 'private/tools/marketplace-card' as const;
2
+ export const MARKETPLACE_CARD_CONTROLLER_PUBLIC = 'public/tools/marketplace-card' as const;
3
+
4
+ export const MARKETPLACE_CARD_ROUTES = {
5
+ CONFIG: 'config',
6
+ EXECUTE: 'execute',
7
+ GET_JOBS: 'jobs',
8
+ GET_JOB: (uuid: string) => `jobs/${uuid}`,
9
+ SET_REACTION: (uuid: string) => `jobs/${uuid}/reaction`,
10
+ DELETE: (uuid: string) => `jobs/${uuid}`,
11
+ RETRY: (uuid: string) => `jobs/${uuid}/retry`,
12
+ UPDATE: (uuid: string) => `jobs/${uuid}`,
13
+ DELETE_ALL: 'jobs',
14
+ } as const;
@@ -5,5 +5,7 @@ export const PAGE_ROUTES = {
5
5
  GET_ALL: 'all',
6
6
  FIND_BY_ALIAS: (alias: string) => `by/alias/${alias}`,
7
7
  GET_ALL_WITH_RELATIONS: 'by/all',
8
+ FIND_BY_CRITERIA: 'criteria',
9
+ FIND_BY_CRITERIA_WITH_RELATIONS: 'criteria/with-relations',
8
10
  MODEL_PAGES: 'by/type/model',
9
11
  } as const;
@@ -3,4 +3,5 @@ export const PAYMENT_CONTROLLER = 'payment' as const;
3
3
  export const PAYMENT_ROUTES = {
4
4
  HISTORY: 'history',
5
5
  REFUND: 'refund',
6
+ FIND_BY_CRITERIA: 'criteria',
6
7
  } as const;
@@ -8,4 +8,5 @@ export const PRODUCT_ROUTES = {
8
8
  BUY: (uuid: string) => `${uuid}/buy`,
9
9
  FAST_BUY: `fast/buy`,
10
10
  MY: 'my',
11
+ REFUND: (uuid: string) => `${uuid}/refund`,
11
12
  } as const;
@@ -0,0 +1,14 @@
1
+ export const SOLVING_EDU_TASK_CONTROLLER_PRIVATE = 'private/tools/solving-edu-task' as const;
2
+ export const SOLVING_EDU_TASK_CONTROLLER_PUBLIC = 'public/tools/solving-edu-task' as const;
3
+
4
+ export const SOLVING_EDU_TASK_ROUTES = {
5
+ CONFIG: 'config',
6
+ EXECUTE: 'execute',
7
+ GET_JOBS: 'jobs',
8
+ GET_JOB: (uuid: string) => `jobs/${uuid}`,
9
+ UPDATE: (uuid: string) => `jobs/${uuid}`,
10
+ SET_REACTION: (uuid: string) => `jobs/${uuid}/reaction`,
11
+ DELETE: (uuid: string) => `jobs/${uuid}`,
12
+ DELETE_ALL: 'jobs',
13
+ RETRY: (uuid: string) => `jobs/${uuid}/retry`,
14
+ } as const;
@@ -5,6 +5,7 @@ export const SUBSCRIPTION_PUBLIC_CONTROLLER = 'subscription/public' as const;
5
5
  export const SUBSCRIPTION_ROUTES = {
6
6
  FIND_BY_UUID: 'by/uuid',
7
7
  GET_ALL: 'all',
8
+ CUSTOM_ALL: 'custom/all',
8
9
  BUY: (uuid: string) => `${uuid}/buy`,
9
10
  FAST_BUY: 'fast/buy',
10
11
  GET_MY: 'my',
@@ -14,8 +15,8 @@ export const SUBSCRIPTION_ROUTES = {
14
15
  GET_AVAILABLE_DOWNGRADES: 'available-downgrades',
15
16
  UPGRADE: 'upgrade',
16
17
  DOWNGRADE: 'downgrade',
17
- CREATE_CUSTOM: 'custom',
18
18
  FREE: 'free',
19
19
  SUMMARY: 'summary',
20
20
  RECOVER_PAST_DUE: (uuid: string) => `${uuid}/recover-past-due`,
21
+ REFUND: (uuid: string) => `${uuid}/refund`,
21
22
  } as const;
@@ -0,0 +1,21 @@
1
+ export const TEAM_ACCOUNT_CONTROLLER = 'private/team-account' as const;
2
+
3
+ export const TEAM_ACCOUNT_ROUTES = {
4
+ CREATE: '',
5
+ UPDATE_ME: 'me',
6
+ UPDATE_MEMBER: 'members',
7
+ INVITE_MEMBER: 'invite',
8
+ REMOVE_MEMBER: 'members/remove',
9
+ ACCEPT_INVITE: 'invite/accept',
10
+ GET_ME: 'me',
11
+ GET_MEMBERS: 'members',
12
+ GET_OPERATIONS: 'operations',
13
+ GET_PRODUCTS: 'products',
14
+ GET_SUBSCRIPTIONS: 'subscriptions',
15
+ GET_CURRENT_PRODUCTS: 'products/current',
16
+ GET_CURRENT_SUBSCRIPTIONS: 'subscriptions/current',
17
+ GET_BALANCE: 'balance',
18
+ CREATE_MANUAL_SUBSCRIPTION: 'manual/subscription',
19
+ CREATE_MANUAL_PRODUCT: 'manual/product',
20
+ ADMIN_FIND_BY_NAME: 'admin',
21
+ } as const;
package/api/routes.ts CHANGED
@@ -6,6 +6,7 @@ export const REST_API = {
6
6
  AUTH: {
7
7
  REGISTER: `${ROOT}/${CONTROLLERS.AUTH_CONTROLLER}/${CONTROLLERS.AUTH_ROUTES.REGISTER}`,
8
8
  LOGIN: `${ROOT}/${CONTROLLERS.AUTH_CONTROLLER}/${CONTROLLERS.AUTH_ROUTES.LOGIN}`,
9
+ ADMIN_LOGIN: `${ROOT}/${CONTROLLERS.AUTH_CONTROLLER}/${CONTROLLERS.AUTH_ROUTES.ADMIN_LOGIN}`,
9
10
  VK_LOGIN: `${ROOT}/${CONTROLLERS.AUTH_CONTROLLER}/${CONTROLLERS.AUTH_ROUTES.VK_LOGIN}`,
10
11
  YANDEX_LOGIN: `${ROOT}/${CONTROLLERS.AUTH_CONTROLLER}/${CONTROLLERS.AUTH_ROUTES.YANDEX_LOGIN}`,
11
12
  CREATE_USER: `${ROOT}/${CONTROLLERS.AUTH_CONTROLLER}/${CONTROLLERS.AUTH_ROUTES.CREATE_USER}`,
@@ -52,6 +53,8 @@ export const REST_API = {
52
53
  GET_BY_ALIAS: (alias: string): string =>
53
54
  `${ROOT}/${CONTROLLERS.PAGE_CONTROLLER}/${CONTROLLERS.PAGE_ROUTES.FIND_BY_ALIAS(alias)}`,
54
55
  GET_BY_ALL_WITH_RELATIONS: `${ROOT}/${CONTROLLERS.PAGE_CONTROLLER}/${CONTROLLERS.PAGE_ROUTES.GET_ALL_WITH_RELATIONS}`,
56
+ FIND_BY_CRITERIA: `${ROOT}/${CONTROLLERS.PAGE_CONTROLLER}/${CONTROLLERS.PAGE_ROUTES.FIND_BY_CRITERIA}`,
57
+ FIND_BY_CRITERIA_WITH_RELATIONS: `${ROOT}/${CONTROLLERS.PAGE_CONTROLLER}/${CONTROLLERS.PAGE_ROUTES.FIND_BY_CRITERIA_WITH_RELATIONS}`,
55
58
  MODEL_PAGES: `${ROOT}/${CONTROLLERS.PAGE_CONTROLLER}/${CONTROLLERS.PAGE_ROUTES.MODEL_PAGES}`,
56
59
  },
57
60
  CATEGORY: {
@@ -144,15 +147,17 @@ export const REST_API = {
144
147
  BUY: (uuid: string) =>
145
148
  `${ROOT}/${CONTROLLERS.PRODUCT_PRIVATE_CONTROLLER}/${CONTROLLERS.PRODUCT_ROUTES.BUY(uuid)}`,
146
149
  MY: `${ROOT}/${CONTROLLERS.PRODUCT_PRIVATE_CONTROLLER}/${CONTROLLERS.PRODUCT_ROUTES.MY}`,
150
+ REFUND: (uuid: string) =>
151
+ `${ROOT}/${CONTROLLERS.PRODUCT_PRIVATE_CONTROLLER}/${CONTROLLERS.PRODUCT_ROUTES.REFUND(uuid)}`,
147
152
  },
148
153
  SUBSCRIPTION_PUBLIC: {
149
154
  GET: `${ROOT}/${CONTROLLERS.SUBSCRIPTION_PUBLIC_CONTROLLER}/${CONTROLLERS.SUBSCRIPTION_ROUTES.GET_ALL}`,
155
+ CUSTOM_ALL: `${ROOT}/${CONTROLLERS.SUBSCRIPTION_PUBLIC_CONTROLLER}/${CONTROLLERS.SUBSCRIPTION_ROUTES.CUSTOM_ALL}`,
150
156
  GET_BY_UUID: (uuid: string): string =>
151
157
  `${ROOT}/${CONTROLLERS.SUBSCRIPTION_PUBLIC_CONTROLLER}/${CONTROLLERS.SUBSCRIPTION_ROUTES.FIND_BY_UUID}/${uuid}`,
152
158
  FAST_BUY: (uuid: string) =>
153
159
  `${ROOT}/${CONTROLLERS.SUBSCRIPTION_PUBLIC_CONTROLLER}/${CONTROLLERS.SUBSCRIPTION_ROUTES.FAST_BUY}/${uuid}`,
154
160
  FREE: `${ROOT}/${CONTROLLERS.SUBSCRIPTION_PUBLIC_CONTROLLER}/${CONTROLLERS.SUBSCRIPTION_ROUTES.FREE}`,
155
- CREATE_CUSTOM: `${ROOT}/${CONTROLLERS.SUBSCRIPTION_PUBLIC_CONTROLLER}/${CONTROLLERS.SUBSCRIPTION_ROUTES.CREATE_CUSTOM}`,
156
161
  },
157
162
  SUBSCRIPTION_PRIVATE: {
158
163
  GET: `${ROOT}/${CONTROLLERS.SUBSCRIPTION_PRIVATE_CONTROLLER}/${CONTROLLERS.SUBSCRIPTION_ROUTES.GET_ALL}`,
@@ -172,10 +177,30 @@ export const REST_API = {
172
177
  `${ROOT}/${CONTROLLERS.SUBSCRIPTION_PRIVATE_CONTROLLER}/${uuid}/${CONTROLLERS.SUBSCRIPTION_ROUTES.DOWNGRADE}`,
173
178
  GET_AVAILABLE_UPGRADES: `${ROOT}/${CONTROLLERS.SUBSCRIPTION_PRIVATE_CONTROLLER}/${CONTROLLERS.SUBSCRIPTION_ROUTES.GET_AVAILABLE_UPGRADES}`,
174
179
  GET_AVAILABLE_DOWNGRADES: `${ROOT}/${CONTROLLERS.SUBSCRIPTION_PRIVATE_CONTROLLER}/${CONTROLLERS.SUBSCRIPTION_ROUTES.GET_AVAILABLE_DOWNGRADES}`,
175
- CREATE_CUSTOM: `${ROOT}/${CONTROLLERS.SUBSCRIPTION_PRIVATE_CONTROLLER}/${CONTROLLERS.SUBSCRIPTION_ROUTES.CREATE_CUSTOM}`,
176
180
  SUMMARY: `${ROOT}/${CONTROLLERS.SUBSCRIPTION_PRIVATE_CONTROLLER}/${CONTROLLERS.SUBSCRIPTION_ROUTES.SUMMARY}`,
177
181
  RECOVER_PAST_DUE: (uuid: string) =>
178
182
  `${ROOT}/${CONTROLLERS.SUBSCRIPTION_PRIVATE_CONTROLLER}/${CONTROLLERS.SUBSCRIPTION_ROUTES.RECOVER_PAST_DUE(uuid)}`,
183
+ REFUND: (uuid: string) =>
184
+ `${ROOT}/${CONTROLLERS.SUBSCRIPTION_PRIVATE_CONTROLLER}/${CONTROLLERS.SUBSCRIPTION_ROUTES.REFUND(uuid)}`,
185
+ },
186
+ TEAM_ACCOUNT: {
187
+ CREATE: `${ROOT}/${CONTROLLERS.TEAM_ACCOUNT_CONTROLLER}/${CONTROLLERS.TEAM_ACCOUNT_ROUTES.CREATE}`,
188
+ UPDATE_ME: `${ROOT}/${CONTROLLERS.TEAM_ACCOUNT_CONTROLLER}/${CONTROLLERS.TEAM_ACCOUNT_ROUTES.UPDATE_ME}`,
189
+ UPDATE_MEMBER: `${ROOT}/${CONTROLLERS.TEAM_ACCOUNT_CONTROLLER}/${CONTROLLERS.TEAM_ACCOUNT_ROUTES.UPDATE_MEMBER}`,
190
+ INVITE_MEMBER: `${ROOT}/${CONTROLLERS.TEAM_ACCOUNT_CONTROLLER}/${CONTROLLERS.TEAM_ACCOUNT_ROUTES.INVITE_MEMBER}`,
191
+ REMOVE_MEMBER: `${ROOT}/${CONTROLLERS.TEAM_ACCOUNT_CONTROLLER}/${CONTROLLERS.TEAM_ACCOUNT_ROUTES.REMOVE_MEMBER}`,
192
+ ACCEPT_INVITE: `${ROOT}/${CONTROLLERS.TEAM_ACCOUNT_CONTROLLER}/${CONTROLLERS.TEAM_ACCOUNT_ROUTES.ACCEPT_INVITE}`,
193
+ GET_ME: `${ROOT}/${CONTROLLERS.TEAM_ACCOUNT_CONTROLLER}/${CONTROLLERS.TEAM_ACCOUNT_ROUTES.GET_ME}`,
194
+ GET_MEMBERS: `${ROOT}/${CONTROLLERS.TEAM_ACCOUNT_CONTROLLER}/${CONTROLLERS.TEAM_ACCOUNT_ROUTES.GET_MEMBERS}`,
195
+ GET_OPERATIONS: `${ROOT}/${CONTROLLERS.TEAM_ACCOUNT_CONTROLLER}/${CONTROLLERS.TEAM_ACCOUNT_ROUTES.GET_OPERATIONS}`,
196
+ GET_PRODUCTS: `${ROOT}/${CONTROLLERS.TEAM_ACCOUNT_CONTROLLER}/${CONTROLLERS.TEAM_ACCOUNT_ROUTES.GET_PRODUCTS}`,
197
+ GET_SUBSCRIPTIONS: `${ROOT}/${CONTROLLERS.TEAM_ACCOUNT_CONTROLLER}/${CONTROLLERS.TEAM_ACCOUNT_ROUTES.GET_SUBSCRIPTIONS}`,
198
+ GET_CURRENT_PRODUCTS: `${ROOT}/${CONTROLLERS.TEAM_ACCOUNT_CONTROLLER}/${CONTROLLERS.TEAM_ACCOUNT_ROUTES.GET_CURRENT_PRODUCTS}`,
199
+ GET_CURRENT_SUBSCRIPTIONS: `${ROOT}/${CONTROLLERS.TEAM_ACCOUNT_CONTROLLER}/${CONTROLLERS.TEAM_ACCOUNT_ROUTES.GET_CURRENT_SUBSCRIPTIONS}`,
200
+ GET_BALANCE: `${ROOT}/${CONTROLLERS.TEAM_ACCOUNT_CONTROLLER}/${CONTROLLERS.TEAM_ACCOUNT_ROUTES.GET_BALANCE}`,
201
+ CREATE_MANUAL_SUBSCRIPTION: `${ROOT}/${CONTROLLERS.TEAM_ACCOUNT_CONTROLLER}/${CONTROLLERS.TEAM_ACCOUNT_ROUTES.CREATE_MANUAL_SUBSCRIPTION}`,
202
+ CREATE_MANUAL_PRODUCT: `${ROOT}/${CONTROLLERS.TEAM_ACCOUNT_CONTROLLER}/${CONTROLLERS.TEAM_ACCOUNT_ROUTES.CREATE_MANUAL_PRODUCT}`,
203
+ ADMIN_FIND_BY_NAME: `${ROOT}/${CONTROLLERS.TEAM_ACCOUNT_CONTROLLER}/${CONTROLLERS.TEAM_ACCOUNT_ROUTES.ADMIN_FIND_BY_NAME}`,
179
204
  },
180
205
  FILES: {
181
206
  UPLOAD_FILE: `${ROOT}/${CONTROLLERS.FILE_CONTROLLER}/${CONTROLLERS.FILE_ROUTES.UPLOAD_FILE}`,
@@ -751,6 +776,38 @@ export const REST_API = {
751
776
  RETRY: (uuid: string) =>
752
777
  `${ROOT}/${CONTROLLERS.VIDEO_EDITOR_CONTROLLER_PRIVATE}/${CONTROLLERS.VIDEO_EDITOR_ROUTES.RETRY(uuid)}`,
753
778
  },
779
+ INTERIOR_DESIGN_PUBLIC: {
780
+ CONFIG: `${ROOT}/${CONTROLLERS.INTERIOR_DESIGN_CONTROLLER_PUBLIC}/${CONTROLLERS.INTERIOR_DESIGN_ROUTES.CONFIG}`,
781
+ EXECUTE: `${ROOT}/${CONTROLLERS.INTERIOR_DESIGN_CONTROLLER_PUBLIC}/${CONTROLLERS.INTERIOR_DESIGN_ROUTES.EXECUTE}`,
782
+ GET_JOBS: `${ROOT}/${CONTROLLERS.INTERIOR_DESIGN_CONTROLLER_PUBLIC}/${CONTROLLERS.INTERIOR_DESIGN_ROUTES.GET_JOBS}`,
783
+ GET_JOB: (uuid: string) =>
784
+ `${ROOT}/${CONTROLLERS.INTERIOR_DESIGN_CONTROLLER_PUBLIC}/${CONTROLLERS.INTERIOR_DESIGN_ROUTES.GET_JOB(uuid)}`,
785
+ UPDATE: (uuid: string) =>
786
+ `${ROOT}/${CONTROLLERS.INTERIOR_DESIGN_CONTROLLER_PUBLIC}/${CONTROLLERS.INTERIOR_DESIGN_ROUTES.UPDATE(uuid)}`,
787
+ SET_REACTION: (uuid: string) =>
788
+ `${ROOT}/${CONTROLLERS.INTERIOR_DESIGN_CONTROLLER_PUBLIC}/${CONTROLLERS.INTERIOR_DESIGN_ROUTES.SET_REACTION(uuid)}`,
789
+ DELETE: (uuid: string) =>
790
+ `${ROOT}/${CONTROLLERS.INTERIOR_DESIGN_CONTROLLER_PUBLIC}/${CONTROLLERS.INTERIOR_DESIGN_ROUTES.DELETE(uuid)}`,
791
+ DELETE_ALL: `${ROOT}/${CONTROLLERS.INTERIOR_DESIGN_CONTROLLER_PUBLIC}/${CONTROLLERS.INTERIOR_DESIGN_ROUTES.DELETE_ALL}`,
792
+ RETRY: (uuid: string) =>
793
+ `${ROOT}/${CONTROLLERS.INTERIOR_DESIGN_CONTROLLER_PUBLIC}/${CONTROLLERS.INTERIOR_DESIGN_ROUTES.RETRY(uuid)}`,
794
+ },
795
+ INTERIOR_DESIGN_PRIVATE: {
796
+ CONFIG: `${ROOT}/${CONTROLLERS.INTERIOR_DESIGN_CONTROLLER_PRIVATE}/${CONTROLLERS.INTERIOR_DESIGN_ROUTES.CONFIG}`,
797
+ EXECUTE: `${ROOT}/${CONTROLLERS.INTERIOR_DESIGN_CONTROLLER_PRIVATE}/${CONTROLLERS.INTERIOR_DESIGN_ROUTES.EXECUTE}`,
798
+ GET_JOBS: `${ROOT}/${CONTROLLERS.INTERIOR_DESIGN_CONTROLLER_PRIVATE}/${CONTROLLERS.INTERIOR_DESIGN_ROUTES.GET_JOBS}`,
799
+ GET_JOB: (uuid: string) =>
800
+ `${ROOT}/${CONTROLLERS.INTERIOR_DESIGN_CONTROLLER_PRIVATE}/${CONTROLLERS.INTERIOR_DESIGN_ROUTES.GET_JOB(uuid)}`,
801
+ UPDATE: (uuid: string) =>
802
+ `${ROOT}/${CONTROLLERS.INTERIOR_DESIGN_CONTROLLER_PRIVATE}/${CONTROLLERS.INTERIOR_DESIGN_ROUTES.UPDATE(uuid)}`,
803
+ SET_REACTION: (uuid: string) =>
804
+ `${ROOT}/${CONTROLLERS.INTERIOR_DESIGN_CONTROLLER_PRIVATE}/${CONTROLLERS.INTERIOR_DESIGN_ROUTES.SET_REACTION(uuid)}`,
805
+ DELETE: (uuid: string) =>
806
+ `${ROOT}/${CONTROLLERS.INTERIOR_DESIGN_CONTROLLER_PRIVATE}/${CONTROLLERS.INTERIOR_DESIGN_ROUTES.DELETE(uuid)}`,
807
+ DELETE_ALL: `${ROOT}/${CONTROLLERS.INTERIOR_DESIGN_CONTROLLER_PRIVATE}/${CONTROLLERS.INTERIOR_DESIGN_ROUTES.DELETE_ALL}`,
808
+ RETRY: (uuid: string) =>
809
+ `${ROOT}/${CONTROLLERS.INTERIOR_DESIGN_CONTROLLER_PRIVATE}/${CONTROLLERS.INTERIOR_DESIGN_ROUTES.RETRY(uuid)}`,
810
+ },
754
811
  MESSAGE_PUBLIC: {
755
812
  FIND_BY_UUID: (uuid: string) =>
756
813
  `${ROOT}/${CONTROLLERS.MESSAGE_CONTROLLER_PUBLIC}/${CONTROLLERS.MESSAGE_PUBLIC_ROUTES.FIND_BY_UUID(uuid)}`,
@@ -827,6 +884,7 @@ export const REST_API = {
827
884
  PAYMENT: {
828
885
  HISTORY: `${ROOT}/${CONTROLLERS.PAYMENT_CONTROLLER}/${CONTROLLERS.PAYMENT_ROUTES.HISTORY}`,
829
886
  REFUND: `${ROOT}/${CONTROLLERS.PAYMENT_CONTROLLER}/${CONTROLLERS.PAYMENT_ROUTES.REFUND}`,
887
+ FIND_BY_CRITERIA: `${ROOT}/${CONTROLLERS.PAYMENT_CONTROLLER}/${CONTROLLERS.PAYMENT_ROUTES.FIND_BY_CRITERIA}`,
830
888
  },
831
889
  COURSE: {
832
890
  FIND_BY_UUID: `${ROOT}/${CONTROLLERS.COURSE_CONTROLLER}/${CONTROLLERS.COURSE_ROUTES.FIND_BY_UUID}`,
@@ -868,6 +926,7 @@ export const REST_API = {
868
926
  SEND_IMAGE_REQUEST: `${ROOT}/${CONTROLLERS.B2B_CONTROLLER}/${CONTROLLERS.B2B_ROUTES.SEND_IMAGE_REQUEST}`,
869
927
  GET_B2B_IMAGE_JOB: (uuid: string) =>
870
928
  `${ROOT}/${CONTROLLERS.B2B_CONTROLLER}/${CONTROLLERS.B2B_ROUTES.GET_B2B_IMAGE_JOB(uuid)}`,
929
+ DOCUMENTATION: `${ROOT}/${CONTROLLERS.B2B_CONTROLLER}/${CONTROLLERS.B2B_ROUTES.DOCUMENTATION}`,
871
930
  FILE_UPLOAD: `${ROOT}/${CONTROLLERS.B2B_CONTROLLER}/${CONTROLLERS.B2B_ROUTES.FILE_UPLOAD}`,
872
931
  BALANCE_TOP_UP: `${ROOT}/${CONTROLLERS.B2B_CONTROLLER}/${CONTROLLERS.B2B_ROUTES.BALANCE_TOP_UP}`,
873
932
  },
@@ -941,4 +1000,68 @@ export const REST_API = {
941
1000
  RETRY: (uuid: string) =>
942
1001
  `${ROOT}/${CONTROLLERS.IMAGE_GENERATION_CONTROLLER_PRIVATE}/${CONTROLLERS.IMAGE_GENERATION_ROUTES.RETRY(uuid)}`,
943
1002
  },
1003
+ MARKETPLACE_CARD_CONTROLLER_PRIVATE: {
1004
+ CONFIG: `${ROOT}/${CONTROLLERS.MARKETPLACE_CARD_CONTROLLER_PRIVATE}/${CONTROLLERS.MARKETPLACE_CARD_ROUTES.CONFIG}`,
1005
+ EXECUTE: `${ROOT}/${CONTROLLERS.MARKETPLACE_CARD_CONTROLLER_PRIVATE}/${CONTROLLERS.MARKETPLACE_CARD_ROUTES.EXECUTE}`,
1006
+ GET_JOBS: `${ROOT}/${CONTROLLERS.MARKETPLACE_CARD_CONTROLLER_PRIVATE}/${CONTROLLERS.MARKETPLACE_CARD_ROUTES.GET_JOBS}`,
1007
+ GET_JOB: (uuid: string) =>
1008
+ `${ROOT}/${CONTROLLERS.MARKETPLACE_CARD_CONTROLLER_PRIVATE}/${CONTROLLERS.MARKETPLACE_CARD_ROUTES.GET_JOB(uuid)}`,
1009
+ UPDATE: (uuid: string) =>
1010
+ `${ROOT}/${CONTROLLERS.MARKETPLACE_CARD_CONTROLLER_PRIVATE}/${CONTROLLERS.MARKETPLACE_CARD_ROUTES.UPDATE(uuid)}`,
1011
+ SET_REACTION: (uuid: string) =>
1012
+ `${ROOT}/${CONTROLLERS.MARKETPLACE_CARD_CONTROLLER_PRIVATE}/${CONTROLLERS.MARKETPLACE_CARD_ROUTES.SET_REACTION(uuid)}`,
1013
+ DELETE: (uuid: string) =>
1014
+ `${ROOT}/${CONTROLLERS.MARKETPLACE_CARD_CONTROLLER_PRIVATE}/${CONTROLLERS.MARKETPLACE_CARD_ROUTES.DELETE(uuid)}`,
1015
+ DELETE_ALL: `${ROOT}/${CONTROLLERS.MARKETPLACE_CARD_CONTROLLER_PRIVATE}/${CONTROLLERS.MARKETPLACE_CARD_ROUTES.DELETE_ALL}`,
1016
+ RETRY: (uuid: string) =>
1017
+ `${ROOT}/${CONTROLLERS.MARKETPLACE_CARD_CONTROLLER_PRIVATE}/${CONTROLLERS.MARKETPLACE_CARD_ROUTES.RETRY(uuid)}`,
1018
+ },
1019
+ MARKETPLACE_CARD_CONTROLLER_PUBLIC: {
1020
+ CONFIG: `${ROOT}/${CONTROLLERS.MARKETPLACE_CARD_CONTROLLER_PUBLIC}/${CONTROLLERS.MARKETPLACE_CARD_ROUTES.CONFIG}`,
1021
+ EXECUTE: `${ROOT}/${CONTROLLERS.MARKETPLACE_CARD_CONTROLLER_PUBLIC}/${CONTROLLERS.MARKETPLACE_CARD_ROUTES.EXECUTE}`,
1022
+ GET_JOBS: `${ROOT}/${CONTROLLERS.MARKETPLACE_CARD_CONTROLLER_PUBLIC}/${CONTROLLERS.MARKETPLACE_CARD_ROUTES.GET_JOBS}`,
1023
+ GET_JOB: (uuid: string) =>
1024
+ `${ROOT}/${CONTROLLERS.MARKETPLACE_CARD_CONTROLLER_PUBLIC}/${CONTROLLERS.MARKETPLACE_CARD_ROUTES.GET_JOB(uuid)}`,
1025
+ UPDATE: (uuid: string) =>
1026
+ `${ROOT}/${CONTROLLERS.MARKETPLACE_CARD_CONTROLLER_PUBLIC}/${CONTROLLERS.MARKETPLACE_CARD_ROUTES.UPDATE(uuid)}`,
1027
+ SET_REACTION: (uuid: string) =>
1028
+ `${ROOT}/${CONTROLLERS.MARKETPLACE_CARD_CONTROLLER_PUBLIC}/${CONTROLLERS.MARKETPLACE_CARD_ROUTES.SET_REACTION(uuid)}`,
1029
+ DELETE: (uuid: string) =>
1030
+ `${ROOT}/${CONTROLLERS.MARKETPLACE_CARD_CONTROLLER_PUBLIC}/${CONTROLLERS.MARKETPLACE_CARD_ROUTES.DELETE(uuid)}`,
1031
+ DELETE_ALL: `${ROOT}/${CONTROLLERS.MARKETPLACE_CARD_CONTROLLER_PUBLIC}/${CONTROLLERS.MARKETPLACE_CARD_ROUTES.DELETE_ALL}`,
1032
+ RETRY: (uuid: string) =>
1033
+ `${ROOT}/${CONTROLLERS.MARKETPLACE_CARD_CONTROLLER_PUBLIC}/${CONTROLLERS.MARKETPLACE_CARD_ROUTES.RETRY(uuid)}`,
1034
+ },
1035
+ SOLVING_EDU_TASK_PRIVATE: {
1036
+ CONFIG: `${ROOT}/${CONTROLLERS.SOLVING_EDU_TASK_CONTROLLER_PRIVATE}/${CONTROLLERS.SOLVING_EDU_TASK_ROUTES.CONFIG}`,
1037
+ EXECUTE: `${ROOT}/${CONTROLLERS.SOLVING_EDU_TASK_CONTROLLER_PRIVATE}/${CONTROLLERS.SOLVING_EDU_TASK_ROUTES.EXECUTE}`,
1038
+ GET_JOBS: `${ROOT}/${CONTROLLERS.SOLVING_EDU_TASK_CONTROLLER_PRIVATE}/${CONTROLLERS.SOLVING_EDU_TASK_ROUTES.GET_JOBS}`,
1039
+ GET_JOB: (uuid: string) =>
1040
+ `${ROOT}/${CONTROLLERS.SOLVING_EDU_TASK_CONTROLLER_PRIVATE}/${CONTROLLERS.SOLVING_EDU_TASK_ROUTES.GET_JOB(uuid)}`,
1041
+ UPDATE: (uuid: string) =>
1042
+ `${ROOT}/${CONTROLLERS.SOLVING_EDU_TASK_CONTROLLER_PRIVATE}/${CONTROLLERS.SOLVING_EDU_TASK_ROUTES.UPDATE(uuid)}`,
1043
+ SET_REACTION: (uuid: string) =>
1044
+ `${ROOT}/${CONTROLLERS.SOLVING_EDU_TASK_CONTROLLER_PRIVATE}/${CONTROLLERS.SOLVING_EDU_TASK_ROUTES.SET_REACTION(uuid)}`,
1045
+ DELETE: (uuid: string) =>
1046
+ `${ROOT}/${CONTROLLERS.SOLVING_EDU_TASK_CONTROLLER_PRIVATE}/${CONTROLLERS.SOLVING_EDU_TASK_ROUTES.DELETE(uuid)}`,
1047
+ DELETE_ALL: `${ROOT}/${CONTROLLERS.SOLVING_EDU_TASK_CONTROLLER_PRIVATE}/${CONTROLLERS.SOLVING_EDU_TASK_ROUTES.DELETE_ALL}`,
1048
+ RETRY: (uuid: string) =>
1049
+ `${ROOT}/${CONTROLLERS.SOLVING_EDU_TASK_CONTROLLER_PRIVATE}/${CONTROLLERS.SOLVING_EDU_TASK_ROUTES.RETRY(uuid)}`,
1050
+ },
1051
+ SOLVING_EDU_TASK_PUBLIC: {
1052
+ CONFIG: `${ROOT}/${CONTROLLERS.SOLVING_EDU_TASK_CONTROLLER_PUBLIC}/${CONTROLLERS.SOLVING_EDU_TASK_ROUTES.CONFIG}`,
1053
+ EXECUTE: `${ROOT}/${CONTROLLERS.SOLVING_EDU_TASK_CONTROLLER_PUBLIC}/${CONTROLLERS.SOLVING_EDU_TASK_ROUTES.EXECUTE}`,
1054
+ GET_JOBS: `${ROOT}/${CONTROLLERS.SOLVING_EDU_TASK_CONTROLLER_PUBLIC}/${CONTROLLERS.SOLVING_EDU_TASK_ROUTES.GET_JOBS}`,
1055
+ GET_JOB: (uuid: string) =>
1056
+ `${ROOT}/${CONTROLLERS.SOLVING_EDU_TASK_CONTROLLER_PUBLIC}/${CONTROLLERS.SOLVING_EDU_TASK_ROUTES.GET_JOB(uuid)}`,
1057
+ UPDATE: (uuid: string) =>
1058
+ `${ROOT}/${CONTROLLERS.SOLVING_EDU_TASK_CONTROLLER_PUBLIC}/${CONTROLLERS.SOLVING_EDU_TASK_ROUTES.UPDATE(uuid)}`,
1059
+ SET_REACTION: (uuid: string) =>
1060
+ `${ROOT}/${CONTROLLERS.SOLVING_EDU_TASK_CONTROLLER_PUBLIC}/${CONTROLLERS.SOLVING_EDU_TASK_ROUTES.SET_REACTION(uuid)}`,
1061
+ DELETE: (uuid: string) =>
1062
+ `${ROOT}/${CONTROLLERS.SOLVING_EDU_TASK_CONTROLLER_PUBLIC}/${CONTROLLERS.SOLVING_EDU_TASK_ROUTES.DELETE(uuid)}`,
1063
+ DELETE_ALL: `${ROOT}/${CONTROLLERS.SOLVING_EDU_TASK_CONTROLLER_PUBLIC}/${CONTROLLERS.SOLVING_EDU_TASK_ROUTES.DELETE_ALL}`,
1064
+ RETRY: (uuid: string) =>
1065
+ `${ROOT}/${CONTROLLERS.SOLVING_EDU_TASK_CONTROLLER_PUBLIC}/${CONTROLLERS.SOLVING_EDU_TASK_ROUTES.RETRY(uuid)}`,
1066
+ },
944
1067
  } as const;
@@ -4,6 +4,7 @@ exports.AUTH_ROUTES = exports.AUTH_CONTROLLER = void 0;
4
4
  exports.AUTH_CONTROLLER = 'auth';
5
5
  exports.AUTH_ROUTES = {
6
6
  REGISTER: 'register',
7
+ ADMIN_LOGIN: 'admin/login',
7
8
  LOGIN: 'login',
8
9
  VK_LOGIN: 'vk/login',
9
10
  YANDEX_LOGIN: 'yandex/login',
@@ -8,6 +8,7 @@ exports.B2B_ROUTES = {
8
8
  SEND_TEXT_REQUEST: 'completions',
9
9
  SEND_IMAGE_REQUEST: 'image/generation',
10
10
  GET_B2B_IMAGE_JOB: (uuid) => `image/generation/jobs/${uuid}`,
11
+ DOCUMENTATION: 'documentation',
11
12
  FILE_UPLOAD: 'file/upload',
12
13
  BALANCE_TOP_UP: 'balance/top-up',
13
14
  };
@@ -72,3 +72,7 @@ __exportStar(require("./b2b"), exports);
72
72
  __exportStar(require("./community"), exports);
73
73
  __exportStar(require("./user-profile"), exports);
74
74
  __exportStar(require("./image-generation"), exports);
75
+ __exportStar(require("./marketplace-card"), exports);
76
+ __exportStar(require("./interior-design"), exports);
77
+ __exportStar(require("./solving-edu-task"), exports);
78
+ __exportStar(require("./team-account"), exports);
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.INTERIOR_DESIGN_ROUTES = exports.INTERIOR_DESIGN_CONTROLLER_PUBLIC = exports.INTERIOR_DESIGN_CONTROLLER_PRIVATE = void 0;
4
+ exports.INTERIOR_DESIGN_CONTROLLER_PRIVATE = 'private/tools/interior-design';
5
+ exports.INTERIOR_DESIGN_CONTROLLER_PUBLIC = 'public/tools/interior-design';
6
+ exports.INTERIOR_DESIGN_ROUTES = {
7
+ CONFIG: 'config',
8
+ EXECUTE: 'execute',
9
+ GET_JOBS: 'jobs',
10
+ GET_JOB: (uuid) => `jobs/${uuid}`,
11
+ UPDATE: (uuid) => `jobs/${uuid}`,
12
+ SET_REACTION: (uuid) => `jobs/${uuid}/reaction`,
13
+ DELETE: (uuid) => `jobs/${uuid}`,
14
+ DELETE_ALL: 'jobs',
15
+ RETRY: (uuid) => `jobs/${uuid}/retry`,
16
+ };
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.MARKETPLACE_CARD_ROUTES = exports.MARKETPLACE_CARD_CONTROLLER_PUBLIC = exports.MARKETPLACE_CARD_CONTROLLER_PRIVATE = void 0;
4
+ exports.MARKETPLACE_CARD_CONTROLLER_PRIVATE = 'private/tools/marketplace-card';
5
+ exports.MARKETPLACE_CARD_CONTROLLER_PUBLIC = 'public/tools/marketplace-card';
6
+ exports.MARKETPLACE_CARD_ROUTES = {
7
+ CONFIG: 'config',
8
+ EXECUTE: 'execute',
9
+ GET_JOBS: 'jobs',
10
+ GET_JOB: (uuid) => `jobs/${uuid}`,
11
+ SET_REACTION: (uuid) => `jobs/${uuid}/reaction`,
12
+ DELETE: (uuid) => `jobs/${uuid}`,
13
+ RETRY: (uuid) => `jobs/${uuid}/retry`,
14
+ UPDATE: (uuid) => `jobs/${uuid}`,
15
+ DELETE_ALL: 'jobs',
16
+ };
@@ -7,5 +7,7 @@ exports.PAGE_ROUTES = {
7
7
  GET_ALL: 'all',
8
8
  FIND_BY_ALIAS: (alias) => `by/alias/${alias}`,
9
9
  GET_ALL_WITH_RELATIONS: 'by/all',
10
+ FIND_BY_CRITERIA: 'criteria',
11
+ FIND_BY_CRITERIA_WITH_RELATIONS: 'criteria/with-relations',
10
12
  MODEL_PAGES: 'by/type/model',
11
13
  };
@@ -5,4 +5,5 @@ exports.PAYMENT_CONTROLLER = 'payment';
5
5
  exports.PAYMENT_ROUTES = {
6
6
  HISTORY: 'history',
7
7
  REFUND: 'refund',
8
+ FIND_BY_CRITERIA: 'criteria',
8
9
  };
@@ -9,4 +9,5 @@ exports.PRODUCT_ROUTES = {
9
9
  BUY: (uuid) => `${uuid}/buy`,
10
10
  FAST_BUY: `fast/buy`,
11
11
  MY: 'my',
12
+ REFUND: (uuid) => `${uuid}/refund`,
12
13
  };
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SOLVING_EDU_TASK_ROUTES = exports.SOLVING_EDU_TASK_CONTROLLER_PUBLIC = exports.SOLVING_EDU_TASK_CONTROLLER_PRIVATE = void 0;
4
+ exports.SOLVING_EDU_TASK_CONTROLLER_PRIVATE = 'private/tools/solving-edu-task';
5
+ exports.SOLVING_EDU_TASK_CONTROLLER_PUBLIC = 'public/tools/solving-edu-task';
6
+ exports.SOLVING_EDU_TASK_ROUTES = {
7
+ CONFIG: 'config',
8
+ EXECUTE: 'execute',
9
+ GET_JOBS: 'jobs',
10
+ GET_JOB: (uuid) => `jobs/${uuid}`,
11
+ UPDATE: (uuid) => `jobs/${uuid}`,
12
+ SET_REACTION: (uuid) => `jobs/${uuid}/reaction`,
13
+ DELETE: (uuid) => `jobs/${uuid}`,
14
+ DELETE_ALL: 'jobs',
15
+ RETRY: (uuid) => `jobs/${uuid}/retry`,
16
+ };
@@ -6,6 +6,7 @@ exports.SUBSCRIPTION_PUBLIC_CONTROLLER = 'subscription/public';
6
6
  exports.SUBSCRIPTION_ROUTES = {
7
7
  FIND_BY_UUID: 'by/uuid',
8
8
  GET_ALL: 'all',
9
+ CUSTOM_ALL: 'custom/all',
9
10
  BUY: (uuid) => `${uuid}/buy`,
10
11
  FAST_BUY: 'fast/buy',
11
12
  GET_MY: 'my',
@@ -15,8 +16,8 @@ exports.SUBSCRIPTION_ROUTES = {
15
16
  GET_AVAILABLE_DOWNGRADES: 'available-downgrades',
16
17
  UPGRADE: 'upgrade',
17
18
  DOWNGRADE: 'downgrade',
18
- CREATE_CUSTOM: 'custom',
19
19
  FREE: 'free',
20
20
  SUMMARY: 'summary',
21
21
  RECOVER_PAST_DUE: (uuid) => `${uuid}/recover-past-due`,
22
+ REFUND: (uuid) => `${uuid}/refund`,
22
23
  };
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TEAM_ACCOUNT_ROUTES = exports.TEAM_ACCOUNT_CONTROLLER = void 0;
4
+ exports.TEAM_ACCOUNT_CONTROLLER = 'private/team-account';
5
+ exports.TEAM_ACCOUNT_ROUTES = {
6
+ CREATE: '',
7
+ UPDATE_ME: 'me',
8
+ UPDATE_MEMBER: 'members',
9
+ INVITE_MEMBER: 'invite',
10
+ REMOVE_MEMBER: 'members/remove',
11
+ ACCEPT_INVITE: 'invite/accept',
12
+ GET_ME: 'me',
13
+ GET_MEMBERS: 'members',
14
+ GET_OPERATIONS: 'operations',
15
+ GET_PRODUCTS: 'products',
16
+ GET_SUBSCRIPTIONS: 'subscriptions',
17
+ GET_CURRENT_PRODUCTS: 'products/current',
18
+ GET_CURRENT_SUBSCRIPTIONS: 'subscriptions/current',
19
+ GET_BALANCE: 'balance',
20
+ CREATE_MANUAL_SUBSCRIPTION: 'manual/subscription',
21
+ CREATE_MANUAL_PRODUCT: 'manual/product',
22
+ ADMIN_FIND_BY_NAME: 'admin',
23
+ };