@purpleschool/multisite 0.0.2 → 0.0.4

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 (295) hide show
  1. package/api/controller/http/ai-proxy.ts +6 -0
  2. package/api/controller/http/auth.ts +14 -0
  3. package/api/controller/http/cloud-payments.ts +5 -0
  4. package/api/controller/http/file.ts +6 -0
  5. package/api/controller/http/health.ts +3 -0
  6. package/api/controller/http/image-editor.ts +15 -0
  7. package/api/controller/http/image-generation.ts +15 -0
  8. package/api/controller/http/index.ts +16 -0
  9. package/api/controller/http/marketplace-card.ts +15 -0
  10. package/api/controller/http/page-question.ts +9 -0
  11. package/api/controller/http/page.ts +12 -0
  12. package/api/controller/http/payment.ts +5 -0
  13. package/api/controller/http/product.ts +7 -0
  14. package/api/controller/http/subscription.ts +7 -0
  15. package/api/controller/http/transaction.ts +5 -0
  16. package/api/controller/http/unregistered-user.ts +1 -0
  17. package/api/controller/http/user.ts +5 -0
  18. package/api/controller/index.ts +1 -0
  19. package/api/index.ts +2 -0
  20. package/api/routes.ts +109 -0
  21. package/build/api/controller/http/index.d.ts +1 -0
  22. package/build/api/controller/http/index.d.ts.map +1 -1
  23. package/build/api/controller/http/index.js +1 -0
  24. package/build/api/controller/http/marketplace-card.d.ts +15 -0
  25. package/build/api/controller/http/marketplace-card.d.ts.map +1 -0
  26. package/build/api/controller/http/marketplace-card.js +17 -0
  27. package/build/api/routes.d.ts +23 -0
  28. package/build/api/routes.d.ts.map +1 -1
  29. package/build/api/routes.js +23 -0
  30. package/build/commands/index.d.ts +1 -0
  31. package/build/commands/index.d.ts.map +1 -1
  32. package/build/commands/index.js +1 -0
  33. package/build/commands/marketplace-card/execute-marketplace-card.command.d.ts +155 -0
  34. package/build/commands/marketplace-card/execute-marketplace-card.command.d.ts.map +1 -0
  35. package/build/commands/marketplace-card/execute-marketplace-card.command.js +12 -0
  36. package/build/commands/marketplace-card/index.d.ts +7 -0
  37. package/build/commands/marketplace-card/index.d.ts.map +1 -0
  38. package/build/commands/marketplace-card/index.js +22 -0
  39. package/build/commands/marketplace-card/retry-marketplace-card-job.command.d.ts +163 -0
  40. package/build/commands/marketplace-card/retry-marketplace-card-job.command.d.ts.map +1 -0
  41. package/build/commands/marketplace-card/retry-marketplace-card-job.command.js +25 -0
  42. package/build/commands/marketplace-card/set-reaction-to-marketplace-card-job.command.d.ts +143 -0
  43. package/build/commands/marketplace-card/set-reaction-to-marketplace-card-job.command.d.ts.map +1 -0
  44. package/build/commands/marketplace-card/set-reaction-to-marketplace-card-job.command.js +19 -0
  45. package/build/commands/marketplace-card/soft-delete-marketplace-card-job-by-uuid.command.d.ts +20 -0
  46. package/build/commands/marketplace-card/soft-delete-marketplace-card-job-by-uuid.command.d.ts.map +1 -0
  47. package/build/commands/marketplace-card/soft-delete-marketplace-card-job-by-uuid.command.js +13 -0
  48. package/build/commands/marketplace-card/soft-delete-marketplace-card-jobs-by-criteria.command.d.ts +12 -0
  49. package/build/commands/marketplace-card/soft-delete-marketplace-card-jobs-by-criteria.command.d.ts.map +1 -0
  50. package/build/commands/marketplace-card/soft-delete-marketplace-card-jobs-by-criteria.command.js +10 -0
  51. package/build/commands/marketplace-card/update-marketplace-card-job-title.command.d.ts +139 -0
  52. package/build/commands/marketplace-card/update-marketplace-card-job-title.command.d.ts.map +1 -0
  53. package/build/commands/marketplace-card/update-marketplace-card-job-title.command.js +17 -0
  54. package/build/constants/errors/errors.d.ts +90 -0
  55. package/build/constants/errors/errors.d.ts.map +1 -1
  56. package/build/constants/errors/errors.js +91 -0
  57. package/build/constants/tools/enums/index.d.ts +1 -0
  58. package/build/constants/tools/enums/index.d.ts.map +1 -1
  59. package/build/constants/tools/enums/index.js +1 -0
  60. package/build/constants/tools/enums/marketplace-card-strategy.enum.d.ts +7 -0
  61. package/build/constants/tools/enums/marketplace-card-strategy.enum.d.ts.map +1 -0
  62. package/build/constants/tools/enums/marketplace-card-strategy.enum.js +10 -0
  63. package/build/constants/tools/enums/tool-type.enum.d.ts +2 -1
  64. package/build/constants/tools/enums/tool-type.enum.d.ts.map +1 -1
  65. package/build/constants/tools/enums/tool-type.enum.js +1 -0
  66. package/build/models/index.d.ts +1 -0
  67. package/build/models/index.d.ts.map +1 -1
  68. package/build/models/index.js +1 -0
  69. package/build/models/marketplace-card/index.d.ts +7 -0
  70. package/build/models/marketplace-card/index.d.ts.map +1 -0
  71. package/build/models/marketplace-card/index.js +22 -0
  72. package/build/models/marketplace-card/marketplace-card-config.schema.d.ts +203 -0
  73. package/build/models/marketplace-card/marketplace-card-config.schema.d.ts.map +1 -0
  74. package/build/models/marketplace-card/marketplace-card-config.schema.js +10 -0
  75. package/build/models/marketplace-card/marketplace-card-job-request-params.schema.d.ts +34 -0
  76. package/build/models/marketplace-card/marketplace-card-job-request-params.schema.d.ts.map +1 -0
  77. package/build/models/marketplace-card/marketplace-card-job-request-params.schema.js +15 -0
  78. package/build/models/marketplace-card/marketplace-card-job.schema.d.ts +74 -0
  79. package/build/models/marketplace-card/marketplace-card-job.schema.d.ts.map +1 -0
  80. package/build/models/marketplace-card/marketplace-card-job.schema.js +28 -0
  81. package/build/models/marketplace-card/marketplace-card-model-params.schema.d.ts +30 -0
  82. package/build/models/marketplace-card/marketplace-card-model-params.schema.d.ts.map +1 -0
  83. package/build/models/marketplace-card/marketplace-card-model-params.schema.js +11 -0
  84. package/build/models/marketplace-card/marketplace-card-model.schema.d.ts +123 -0
  85. package/build/models/marketplace-card/marketplace-card-model.schema.d.ts.map +1 -0
  86. package/build/models/marketplace-card/marketplace-card-model.schema.js +15 -0
  87. package/build/models/marketplace-card/marketplace-card-style-preset.schema.d.ts +19 -0
  88. package/build/models/marketplace-card/marketplace-card-style-preset.schema.d.ts.map +1 -0
  89. package/build/models/marketplace-card/marketplace-card-style-preset.schema.js +10 -0
  90. package/build/queries/index.d.ts +1 -0
  91. package/build/queries/index.d.ts.map +1 -1
  92. package/build/queries/index.js +1 -0
  93. package/build/queries/marketplace-card/find-marketplace-card-jobs.command.d.ts +160 -0
  94. package/build/queries/marketplace-card/find-marketplace-card-jobs.command.d.ts.map +1 -0
  95. package/build/queries/marketplace-card/find-marketplace-card-jobs.command.js +21 -0
  96. package/build/queries/marketplace-card/get-marketplace-card-config.command.d.ts +273 -0
  97. package/build/queries/marketplace-card/get-marketplace-card-config.command.d.ts.map +1 -0
  98. package/build/queries/marketplace-card/get-marketplace-card-config.command.js +11 -0
  99. package/build/queries/marketplace-card/get-marketplace-card-job.command.d.ts +131 -0
  100. package/build/queries/marketplace-card/get-marketplace-card-job.command.d.ts.map +1 -0
  101. package/build/queries/marketplace-card/get-marketplace-card-job.command.js +14 -0
  102. package/build/queries/marketplace-card/get-marketplace-card-price.command.d.ts +30 -0
  103. package/build/queries/marketplace-card/get-marketplace-card-price.command.d.ts.map +1 -0
  104. package/build/queries/marketplace-card/get-marketplace-card-price.command.js +15 -0
  105. package/build/queries/marketplace-card/index.d.ts +5 -0
  106. package/build/queries/marketplace-card/index.d.ts.map +1 -0
  107. package/build/queries/marketplace-card/index.js +20 -0
  108. package/commands/auth/create-user.command.ts +18 -0
  109. package/commands/auth/index.ts +9 -0
  110. package/commands/auth/login.command.ts +17 -0
  111. package/commands/auth/register.command.ts +20 -0
  112. package/commands/auth/reset-password.command.ts +19 -0
  113. package/commands/auth/restore-password.command.ts +16 -0
  114. package/commands/auth/verify-email-retry.command.ts +17 -0
  115. package/commands/auth/verify-email.command.ts +18 -0
  116. package/commands/auth/vk-login.command.ts +21 -0
  117. package/commands/auth/yandex-login.command.ts +19 -0
  118. package/commands/file/index.ts +1 -0
  119. package/commands/file/upload-file.command.ts +9 -0
  120. package/commands/image-editor/execute-image-editor.command.ts +18 -0
  121. package/commands/image-editor/index.ts +7 -0
  122. package/commands/image-editor/proxy-image-editor-callback.command.ts +15 -0
  123. package/commands/image-editor/retry-image-editor-job.command.ts +17 -0
  124. package/commands/image-editor/set-reaction-to-image-editor-job.command.ts +18 -0
  125. package/commands/image-editor/soft-delete-image-editor-job-by-uuid.command.ts +8 -0
  126. package/commands/image-editor/soft-delete-image-editor-jobs-by-criteria.command.ts +8 -0
  127. package/commands/image-editor/update-image-editor-job-title.command.ts +16 -0
  128. package/commands/image-generation/execute-image-generation.command.ts +19 -0
  129. package/commands/image-generation/index.ts +7 -0
  130. package/commands/image-generation/proxy-image-generation-callback.command.ts +21 -0
  131. package/commands/image-generation/retry-image-generation-job.command.ts +19 -0
  132. package/commands/image-generation/set-reaction-to-image-generation-job.command.ts +28 -0
  133. package/commands/image-generation/soft-delete-image-generation-job-by-uuid.command.ts +9 -0
  134. package/commands/image-generation/soft-delete-image-generation-jobs-by-criteria.command.ts +9 -0
  135. package/commands/image-generation/update-image-generation-job-title.command.ts +16 -0
  136. package/commands/index.ts +11 -0
  137. package/commands/marketplace-card/execute-marketplace-card.command.ts +12 -0
  138. package/commands/marketplace-card/index.ts +6 -0
  139. package/commands/marketplace-card/retry-marketplace-card-job.command.ts +27 -0
  140. package/commands/marketplace-card/set-reaction-to-marketplace-card-job.command.ts +21 -0
  141. package/commands/marketplace-card/soft-delete-marketplace-card-job-by-uuid.command.ts +13 -0
  142. package/commands/marketplace-card/soft-delete-marketplace-card-jobs-by-criteria.command.ts +8 -0
  143. package/commands/marketplace-card/update-marketplace-card-job-title.command.ts +19 -0
  144. package/commands/page/create-page-question.command.ts +18 -0
  145. package/commands/page/create-page.command.ts +18 -0
  146. package/commands/page/delete-page-question.command.ts +14 -0
  147. package/commands/page/delete-page.command.ts +12 -0
  148. package/commands/page/find-page-by-alias.command.ts +28 -0
  149. package/commands/page/find-page-by-criteria.command.ts +24 -0
  150. package/commands/page/find-page.command.ts +22 -0
  151. package/commands/page/index.ts +9 -0
  152. package/commands/page/update-page-question.command.ts +24 -0
  153. package/commands/page/update-page.command.ts +24 -0
  154. package/commands/payment/cloud-payments.command.ts +53 -0
  155. package/commands/payment/index.ts +1 -0
  156. package/commands/product/buy-product.command.ts +19 -0
  157. package/commands/product/index.ts +1 -0
  158. package/commands/subscription/buy-subscription.command.ts +19 -0
  159. package/commands/subscription/index.ts +1 -0
  160. package/commands/transaction/index.ts +1 -0
  161. package/commands/transaction/write-off.command.ts +19 -0
  162. package/commands/unregistered-user/index.ts +1 -0
  163. package/commands/unregistered-user/upsert-unregistered-user.command.ts +16 -0
  164. package/constants/common/enums/index.ts +1 -0
  165. package/constants/common/enums/user-reaction.enum.ts +4 -0
  166. package/constants/common/index.ts +1 -0
  167. package/constants/email/email-endpoint.ts +1 -0
  168. package/constants/email/index.ts +2 -0
  169. package/constants/email/subjects.ts +12 -0
  170. package/constants/errors/errors.ts +682 -0
  171. package/constants/errors/index.ts +1 -0
  172. package/constants/files/enums/file-type.enum.ts +3 -0
  173. package/constants/files/enums/index.ts +1 -0
  174. package/constants/files/index.ts +1 -0
  175. package/constants/image-editor/enums/image-editing-strategy.enum.ts +9 -0
  176. package/constants/image-editor/enums/image-editor-model-type.enum.ts +5 -0
  177. package/constants/image-editor/enums/index.ts +2 -0
  178. package/constants/image-editor/index.ts +1 -0
  179. package/constants/image-generation/enums/image-generation-model-strategy.enum.ts +15 -0
  180. package/constants/image-generation/enums/image-generation-resolution.enum.ts +5 -0
  181. package/constants/image-generation/enums/index.ts +2 -0
  182. package/constants/image-generation/index.ts +1 -0
  183. package/constants/index.ts +15 -0
  184. package/constants/order/enums/index.ts +2 -0
  185. package/constants/order/enums/order-status.enum.ts +5 -0
  186. package/constants/order/enums/order-type.enum.ts +3 -0
  187. package/constants/order/index.ts +1 -0
  188. package/constants/page/enums/page-type.enum.ts +5 -0
  189. package/constants/page/index.ts +1 -0
  190. package/constants/payment/enums/index.ts +1 -0
  191. package/constants/payment/enums/payment-status.enum.ts +3 -0
  192. package/constants/payment/index.ts +1 -0
  193. package/constants/subscription/free-subscription-id.constant.ts +1 -0
  194. package/constants/subscription/index.ts +1 -0
  195. package/constants/tools/enums/index.ts +5 -0
  196. package/constants/tools/enums/job-request-origin.enum.ts +3 -0
  197. package/constants/tools/enums/job-status.enum.ts +5 -0
  198. package/constants/tools/enums/marketplace-card-strategy.enum.ts +6 -0
  199. package/constants/tools/enums/tool-model-status.enum.ts +4 -0
  200. package/constants/tools/enums/tool-type.enum.ts +5 -0
  201. package/constants/tools/index.ts +1 -0
  202. package/constants/transaction/enums/index.ts +1 -0
  203. package/constants/transaction/enums/transaction-status.enum.ts +5 -0
  204. package/constants/transaction/index.ts +1 -0
  205. package/constants/user/enums/index.ts +3 -0
  206. package/constants/user/enums/signup-method.enum.ts +6 -0
  207. package/constants/user/enums/user-role.enum.ts +5 -0
  208. package/constants/user/enums/user-status.enum.ts +5 -0
  209. package/constants/user/index.ts +1 -0
  210. package/constants/user-to-product/enums/index.ts +1 -0
  211. package/constants/user-to-product/enums/user-to-product-status.enum.ts +3 -0
  212. package/constants/user-to-product/index.ts +1 -0
  213. package/constants/user-to-subscription/enums/index.ts +1 -0
  214. package/constants/user-to-subscription/enums/user-to-subscription-status.enum.ts +3 -0
  215. package/constants/user-to-subscription/index.ts +1 -0
  216. package/index.ts +5 -0
  217. package/models/cloud-payments-widget-data.schema.ts +18 -0
  218. package/models/cloud-payments-widget.schema.ts +15 -0
  219. package/models/common/attached-file.schema.ts +13 -0
  220. package/models/common/icon-variants.schema.ts +12 -0
  221. package/models/common/index.ts +4 -0
  222. package/models/common/json-value.schema.ts +10 -0
  223. package/models/common/receipt.schema.ts +19 -0
  224. package/models/file.schema.ts +13 -0
  225. package/models/image-editor/image-editor-config.schema.ts +10 -0
  226. package/models/image-editor/image-editor-job-params.schema.ts +12 -0
  227. package/models/image-editor/image-editor-job-request-params.schema.ts +9 -0
  228. package/models/image-editor/image-editor-job.schema.ts +30 -0
  229. package/models/image-editor/image-editor-model-params.schema.ts +18 -0
  230. package/models/image-editor/image-editor-model.schema.ts +28 -0
  231. package/models/image-editor/image-editor-pricing-rule.schema.ts +14 -0
  232. package/models/image-editor/image-editor-prompt-group.schema.ts +13 -0
  233. package/models/image-editor/image-editor-system-prompt.schema.ts +20 -0
  234. package/models/image-editor/index.ts +9 -0
  235. package/models/image-generation/image-generation-config.schema.ts +10 -0
  236. package/models/image-generation/image-generation-job-attempt.schema.ts +11 -0
  237. package/models/image-generation/image-generation-job-params.schema.ts +11 -0
  238. package/models/image-generation/image-generation-job-request-params.schema.ts +10 -0
  239. package/models/image-generation/image-generation-job.schema.ts +30 -0
  240. package/models/image-generation/image-generation-model-params.schema.ts +22 -0
  241. package/models/image-generation/image-generation-model.schema.ts +28 -0
  242. package/models/image-generation/image-generation-preset.schema.ts +10 -0
  243. package/models/image-generation/image-generation-pricing-rule.schema.ts +19 -0
  244. package/models/image-generation/image-generation-vendor.schema.ts +9 -0
  245. package/models/image-generation/index.ts +10 -0
  246. package/models/index.ts +13 -0
  247. package/models/marketplace-card/index.ts +6 -0
  248. package/models/marketplace-card/marketplace-card-config.schema.ts +10 -0
  249. package/models/marketplace-card/marketplace-card-job-request-params.schema.ts +15 -0
  250. package/models/marketplace-card/marketplace-card-job.schema.ts +28 -0
  251. package/models/marketplace-card/marketplace-card-model-params.schema.ts +11 -0
  252. package/models/marketplace-card/marketplace-card-model.schema.ts +16 -0
  253. package/models/marketplace-card/marketplace-card-style-preset.schema.ts +10 -0
  254. package/models/page-question.schema.ts +10 -0
  255. package/models/page.schema.ts +40 -0
  256. package/models/product.schema.ts +10 -0
  257. package/models/subscription.schema.ts +12 -0
  258. package/models/tools/index.ts +1 -0
  259. package/models/tools/vendor.schema.ts +11 -0
  260. package/models/user.schema.ts +11 -0
  261. package/package.json +1 -7
  262. package/queries/file/find-files.command.ts +20 -0
  263. package/queries/file/get-file.command.ts +14 -0
  264. package/queries/file/index.ts +2 -0
  265. package/queries/image-editor/find-image-editor-jobs.command.ts +20 -0
  266. package/queries/image-editor/get-image-editor-config.command.ts +9 -0
  267. package/queries/image-editor/get-image-editor-job.command.ts +14 -0
  268. package/queries/image-editor/get-image-editor-price.command.ts +17 -0
  269. package/queries/image-editor/index.ts +4 -0
  270. package/queries/image-generation/find-image-generation-jobs.command.ts +20 -0
  271. package/queries/image-generation/get-image-generation-config.command.ts +9 -0
  272. package/queries/image-generation/get-image-generation-job.command.ts +14 -0
  273. package/queries/image-generation/get-image-generation-price.command.ts +19 -0
  274. package/queries/image-generation/index.ts +4 -0
  275. package/queries/index.ts +9 -0
  276. package/queries/marketplace-card/find-marketplace-card-jobs.command.ts +21 -0
  277. package/queries/marketplace-card/get-marketplace-card-config.command.ts +9 -0
  278. package/queries/marketplace-card/get-marketplace-card-job.command.ts +14 -0
  279. package/queries/marketplace-card/get-marketplace-card-price.command.ts +15 -0
  280. package/queries/marketplace-card/index.ts +4 -0
  281. package/queries/page/find-all-page-questions.query.ts +14 -0
  282. package/queries/page/find-page-question-by-uuid.query.ts +16 -0
  283. package/queries/page/find-page-questions-by-page-id.query.ts +16 -0
  284. package/queries/page/index.ts +3 -0
  285. package/queries/payment/get-payment-history.command.ts +17 -0
  286. package/queries/payment/index.ts +1 -0
  287. package/queries/product/find-products.command.ts +9 -0
  288. package/queries/product/index.ts +1 -0
  289. package/queries/subscription/find-subscriptions.command.ts +9 -0
  290. package/queries/subscription/index.ts +1 -0
  291. package/queries/user/get-my-products.command.ts +19 -0
  292. package/queries/user/get-my-subscriptions.command.ts +21 -0
  293. package/queries/user/get-user.command.ts +14 -0
  294. package/queries/user/index.ts +3 -0
  295. package/tsconfig.json +104 -0
@@ -0,0 +1,273 @@
1
+ import { z } from 'zod';
2
+ export declare namespace GetMarketplaceCardConfigCommand {
3
+ const ResponseSchema: z.ZodObject<{
4
+ data: z.ZodObject<{
5
+ styles: z.ZodArray<z.ZodObject<{
6
+ uuid: z.ZodString;
7
+ previewImageUrl: z.ZodString;
8
+ order: z.ZodNumber;
9
+ isActive: z.ZodBoolean;
10
+ }, "strip", z.ZodTypeAny, {
11
+ uuid: string;
12
+ order: number;
13
+ previewImageUrl: string;
14
+ isActive: boolean;
15
+ }, {
16
+ uuid: string;
17
+ order: number;
18
+ previewImageUrl: string;
19
+ isActive: boolean;
20
+ }>, "many">;
21
+ models: z.ZodArray<z.ZodObject<{
22
+ uuid: z.ZodString;
23
+ price: z.ZodNumber;
24
+ params: z.ZodObject<{
25
+ imageAttachment: z.ZodObject<{
26
+ supported: z.ZodBoolean;
27
+ maxImages: z.ZodNumber;
28
+ acceptedTypes: z.ZodArray<z.ZodString, "many">;
29
+ }, "strip", z.ZodTypeAny, {
30
+ supported: boolean;
31
+ maxImages: number;
32
+ acceptedTypes: string[];
33
+ }, {
34
+ supported: boolean;
35
+ maxImages: number;
36
+ acceptedTypes: string[];
37
+ }>;
38
+ }, "strip", z.ZodTypeAny, {
39
+ imageAttachment: {
40
+ supported: boolean;
41
+ maxImages: number;
42
+ acceptedTypes: string[];
43
+ };
44
+ }, {
45
+ imageAttachment: {
46
+ supported: boolean;
47
+ maxImages: number;
48
+ acceptedTypes: string[];
49
+ };
50
+ }>;
51
+ iconVariants: z.ZodObject<{
52
+ light: z.ZodObject<{
53
+ png: z.ZodOptional<z.ZodString>;
54
+ svg: z.ZodOptional<z.ZodString>;
55
+ }, "strip", z.ZodTypeAny, {
56
+ png?: string | undefined;
57
+ svg?: string | undefined;
58
+ }, {
59
+ png?: string | undefined;
60
+ svg?: string | undefined;
61
+ }>;
62
+ dark: z.ZodObject<{
63
+ png: z.ZodOptional<z.ZodString>;
64
+ svg: z.ZodOptional<z.ZodString>;
65
+ }, "strip", z.ZodTypeAny, {
66
+ png?: string | undefined;
67
+ svg?: string | undefined;
68
+ }, {
69
+ png?: string | undefined;
70
+ svg?: string | undefined;
71
+ }>;
72
+ }, "strip", z.ZodTypeAny, {
73
+ light: {
74
+ png?: string | undefined;
75
+ svg?: string | undefined;
76
+ };
77
+ dark: {
78
+ png?: string | undefined;
79
+ svg?: string | undefined;
80
+ };
81
+ }, {
82
+ light: {
83
+ png?: string | undefined;
84
+ svg?: string | undefined;
85
+ };
86
+ dark: {
87
+ png?: string | undefined;
88
+ svg?: string | undefined;
89
+ };
90
+ }>;
91
+ maxPromptLength: z.ZodNumber;
92
+ supportsImageAttachment: z.ZodBoolean;
93
+ maxAttachedImages: z.ZodNumber;
94
+ }, "strip", z.ZodTypeAny, {
95
+ price: number;
96
+ uuid: string;
97
+ params: {
98
+ imageAttachment: {
99
+ supported: boolean;
100
+ maxImages: number;
101
+ acceptedTypes: string[];
102
+ };
103
+ };
104
+ maxPromptLength: number;
105
+ iconVariants: {
106
+ light: {
107
+ png?: string | undefined;
108
+ svg?: string | undefined;
109
+ };
110
+ dark: {
111
+ png?: string | undefined;
112
+ svg?: string | undefined;
113
+ };
114
+ };
115
+ supportsImageAttachment: boolean;
116
+ maxAttachedImages: number;
117
+ }, {
118
+ price: number;
119
+ uuid: string;
120
+ params: {
121
+ imageAttachment: {
122
+ supported: boolean;
123
+ maxImages: number;
124
+ acceptedTypes: string[];
125
+ };
126
+ };
127
+ maxPromptLength: number;
128
+ iconVariants: {
129
+ light: {
130
+ png?: string | undefined;
131
+ svg?: string | undefined;
132
+ };
133
+ dark: {
134
+ png?: string | undefined;
135
+ svg?: string | undefined;
136
+ };
137
+ };
138
+ supportsImageAttachment: boolean;
139
+ maxAttachedImages: number;
140
+ }>, "many">;
141
+ }, "strip", z.ZodTypeAny, {
142
+ models: {
143
+ price: number;
144
+ uuid: string;
145
+ params: {
146
+ imageAttachment: {
147
+ supported: boolean;
148
+ maxImages: number;
149
+ acceptedTypes: string[];
150
+ };
151
+ };
152
+ maxPromptLength: number;
153
+ iconVariants: {
154
+ light: {
155
+ png?: string | undefined;
156
+ svg?: string | undefined;
157
+ };
158
+ dark: {
159
+ png?: string | undefined;
160
+ svg?: string | undefined;
161
+ };
162
+ };
163
+ supportsImageAttachment: boolean;
164
+ maxAttachedImages: number;
165
+ }[];
166
+ styles: {
167
+ uuid: string;
168
+ order: number;
169
+ previewImageUrl: string;
170
+ isActive: boolean;
171
+ }[];
172
+ }, {
173
+ models: {
174
+ price: number;
175
+ uuid: string;
176
+ params: {
177
+ imageAttachment: {
178
+ supported: boolean;
179
+ maxImages: number;
180
+ acceptedTypes: string[];
181
+ };
182
+ };
183
+ maxPromptLength: number;
184
+ iconVariants: {
185
+ light: {
186
+ png?: string | undefined;
187
+ svg?: string | undefined;
188
+ };
189
+ dark: {
190
+ png?: string | undefined;
191
+ svg?: string | undefined;
192
+ };
193
+ };
194
+ supportsImageAttachment: boolean;
195
+ maxAttachedImages: number;
196
+ }[];
197
+ styles: {
198
+ uuid: string;
199
+ order: number;
200
+ previewImageUrl: string;
201
+ isActive: boolean;
202
+ }[];
203
+ }>;
204
+ }, "strip", z.ZodTypeAny, {
205
+ data: {
206
+ models: {
207
+ price: number;
208
+ uuid: string;
209
+ params: {
210
+ imageAttachment: {
211
+ supported: boolean;
212
+ maxImages: number;
213
+ acceptedTypes: string[];
214
+ };
215
+ };
216
+ maxPromptLength: number;
217
+ iconVariants: {
218
+ light: {
219
+ png?: string | undefined;
220
+ svg?: string | undefined;
221
+ };
222
+ dark: {
223
+ png?: string | undefined;
224
+ svg?: string | undefined;
225
+ };
226
+ };
227
+ supportsImageAttachment: boolean;
228
+ maxAttachedImages: number;
229
+ }[];
230
+ styles: {
231
+ uuid: string;
232
+ order: number;
233
+ previewImageUrl: string;
234
+ isActive: boolean;
235
+ }[];
236
+ };
237
+ }, {
238
+ data: {
239
+ models: {
240
+ price: number;
241
+ uuid: string;
242
+ params: {
243
+ imageAttachment: {
244
+ supported: boolean;
245
+ maxImages: number;
246
+ acceptedTypes: string[];
247
+ };
248
+ };
249
+ maxPromptLength: number;
250
+ iconVariants: {
251
+ light: {
252
+ png?: string | undefined;
253
+ svg?: string | undefined;
254
+ };
255
+ dark: {
256
+ png?: string | undefined;
257
+ svg?: string | undefined;
258
+ };
259
+ };
260
+ supportsImageAttachment: boolean;
261
+ maxAttachedImages: number;
262
+ }[];
263
+ styles: {
264
+ uuid: string;
265
+ order: number;
266
+ previewImageUrl: string;
267
+ isActive: boolean;
268
+ }[];
269
+ };
270
+ }>;
271
+ type Response = z.infer<typeof ResponseSchema>;
272
+ }
273
+ //# sourceMappingURL=get-marketplace-card-config.command.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-marketplace-card-config.command.d.ts","sourceRoot":"","sources":["../../../queries/marketplace-card/get-marketplace-card-config.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,yBAAiB,+BAA+B,CAAC;IACtC,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAEzB,CAAC;IACH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GetMarketplaceCardConfigCommand = void 0;
4
+ const zod_1 = require("zod");
5
+ const models_1 = require("../../models");
6
+ var GetMarketplaceCardConfigCommand;
7
+ (function (GetMarketplaceCardConfigCommand) {
8
+ GetMarketplaceCardConfigCommand.ResponseSchema = zod_1.z.object({
9
+ data: models_1.MarketplaceCardConfigSchema,
10
+ });
11
+ })(GetMarketplaceCardConfigCommand || (exports.GetMarketplaceCardConfigCommand = GetMarketplaceCardConfigCommand = {}));
@@ -0,0 +1,131 @@
1
+ import { z } from 'zod';
2
+ export declare namespace GetMarketplaceCardJobCommand {
3
+ const RequestParamSchema: z.ZodObject<{
4
+ uuid: z.ZodString;
5
+ }, "strip", z.ZodTypeAny, {
6
+ uuid: string;
7
+ }, {
8
+ uuid: string;
9
+ }>;
10
+ type RequestParam = z.infer<typeof RequestParamSchema>;
11
+ const ResponseSchema: z.ZodObject<{
12
+ data: z.ZodObject<{
13
+ uuid: z.ZodString;
14
+ status: z.ZodNativeEnum<typeof import("../..").JOB_STATUS>;
15
+ error: z.ZodNullable<z.ZodString>;
16
+ title: z.ZodString;
17
+ subtitle: z.ZodNullable<z.ZodString>;
18
+ reaction: z.ZodNullable<z.ZodNativeEnum<typeof import("../..").USER_REACTION>>;
19
+ advantages: z.ZodArray<z.ZodString, "many">;
20
+ tags: z.ZodArray<z.ZodString, "many">;
21
+ stylePresetId: z.ZodNullable<z.ZodString>;
22
+ isCustom: z.ZodBoolean;
23
+ customStylePrompt: z.ZodNullable<z.ZodString>;
24
+ inputImages: z.ZodArray<z.ZodObject<{
25
+ uuid: z.ZodString;
26
+ url: z.ZodString;
27
+ }, "strip", z.ZodTypeAny, {
28
+ uuid: string;
29
+ url: string;
30
+ }, {
31
+ uuid: string;
32
+ url: string;
33
+ }>, "many">;
34
+ resultImages: z.ZodNullable<z.ZodArray<z.ZodString, "many">>;
35
+ backgroundDescription: z.ZodNullable<z.ZodString>;
36
+ price: z.ZodNumber;
37
+ createdAt: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodDate]>>;
38
+ updatedAt: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodDate]>>;
39
+ }, "strip", z.ZodTypeAny, {
40
+ price: number;
41
+ uuid: string;
42
+ status: import("../..").JOB_STATUS;
43
+ title: string;
44
+ error: string | null;
45
+ reaction: import("../..").USER_REACTION | null;
46
+ subtitle: string | null;
47
+ advantages: string[];
48
+ tags: string[];
49
+ stylePresetId: string | null;
50
+ isCustom: boolean;
51
+ customStylePrompt: string | null;
52
+ inputImages: {
53
+ uuid: string;
54
+ url: string;
55
+ }[];
56
+ backgroundDescription: string | null;
57
+ resultImages: string[] | null;
58
+ createdAt?: string | Date | undefined;
59
+ updatedAt?: string | Date | undefined;
60
+ }, {
61
+ price: number;
62
+ uuid: string;
63
+ status: import("../..").JOB_STATUS;
64
+ title: string;
65
+ error: string | null;
66
+ reaction: import("../..").USER_REACTION | null;
67
+ subtitle: string | null;
68
+ advantages: string[];
69
+ tags: string[];
70
+ stylePresetId: string | null;
71
+ isCustom: boolean;
72
+ customStylePrompt: string | null;
73
+ inputImages: {
74
+ uuid: string;
75
+ url: string;
76
+ }[];
77
+ backgroundDescription: string | null;
78
+ resultImages: string[] | null;
79
+ createdAt?: string | Date | undefined;
80
+ updatedAt?: string | Date | undefined;
81
+ }>;
82
+ }, "strip", z.ZodTypeAny, {
83
+ data: {
84
+ price: number;
85
+ uuid: string;
86
+ status: import("../..").JOB_STATUS;
87
+ title: string;
88
+ error: string | null;
89
+ reaction: import("../..").USER_REACTION | null;
90
+ subtitle: string | null;
91
+ advantages: string[];
92
+ tags: string[];
93
+ stylePresetId: string | null;
94
+ isCustom: boolean;
95
+ customStylePrompt: string | null;
96
+ inputImages: {
97
+ uuid: string;
98
+ url: string;
99
+ }[];
100
+ backgroundDescription: string | null;
101
+ resultImages: string[] | null;
102
+ createdAt?: string | Date | undefined;
103
+ updatedAt?: string | Date | undefined;
104
+ };
105
+ }, {
106
+ data: {
107
+ price: number;
108
+ uuid: string;
109
+ status: import("../..").JOB_STATUS;
110
+ title: string;
111
+ error: string | null;
112
+ reaction: import("../..").USER_REACTION | null;
113
+ subtitle: string | null;
114
+ advantages: string[];
115
+ tags: string[];
116
+ stylePresetId: string | null;
117
+ isCustom: boolean;
118
+ customStylePrompt: string | null;
119
+ inputImages: {
120
+ uuid: string;
121
+ url: string;
122
+ }[];
123
+ backgroundDescription: string | null;
124
+ resultImages: string[] | null;
125
+ createdAt?: string | Date | undefined;
126
+ updatedAt?: string | Date | undefined;
127
+ };
128
+ }>;
129
+ type Response = z.infer<typeof ResponseSchema>;
130
+ }
131
+ //# sourceMappingURL=get-marketplace-card-job.command.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-marketplace-card-job.command.d.ts","sourceRoot":"","sources":["../../../queries/marketplace-card/get-marketplace-card-job.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,yBAAiB,4BAA4B,CAAC;IACnC,MAAM,kBAAkB;;;;;;MAE7B,CAAC;IACH,KAAY,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;IAEvD,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAEzB,CAAC;IACH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GetMarketplaceCardJobCommand = void 0;
4
+ const zod_1 = require("zod");
5
+ const models_1 = require("../../models");
6
+ var GetMarketplaceCardJobCommand;
7
+ (function (GetMarketplaceCardJobCommand) {
8
+ GetMarketplaceCardJobCommand.RequestParamSchema = zod_1.z.object({
9
+ uuid: zod_1.z.string().uuid(),
10
+ });
11
+ GetMarketplaceCardJobCommand.ResponseSchema = zod_1.z.object({
12
+ data: models_1.MarketplaceCardJobSchema,
13
+ });
14
+ })(GetMarketplaceCardJobCommand || (exports.GetMarketplaceCardJobCommand = GetMarketplaceCardJobCommand = {}));
@@ -0,0 +1,30 @@
1
+ import { z } from 'zod';
2
+ export declare namespace GetMarketplaceCardPriceCommand {
3
+ const RequestSchema: z.ZodObject<{
4
+ modelId: z.ZodOptional<z.ZodString>;
5
+ }, "strip", z.ZodTypeAny, {
6
+ modelId?: string | undefined;
7
+ }, {
8
+ modelId?: string | undefined;
9
+ }>;
10
+ type Request = z.infer<typeof RequestSchema>;
11
+ const ResponseSchema: z.ZodObject<{
12
+ data: z.ZodObject<{
13
+ price: z.ZodNumber;
14
+ }, "strip", z.ZodTypeAny, {
15
+ price: number;
16
+ }, {
17
+ price: number;
18
+ }>;
19
+ }, "strip", z.ZodTypeAny, {
20
+ data: {
21
+ price: number;
22
+ };
23
+ }, {
24
+ data: {
25
+ price: number;
26
+ };
27
+ }>;
28
+ type Response = z.infer<typeof ResponseSchema>;
29
+ }
30
+ //# sourceMappingURL=get-marketplace-card-price.command.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-marketplace-card-price.command.d.ts","sourceRoot":"","sources":["../../../queries/marketplace-card/get-marketplace-card-price.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,yBAAiB,8BAA8B,CAAC;IACrC,MAAM,aAAa;;;;;;MAExB,CAAC;IACH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc;;;;;;;;;;;;;;;;MAIzB,CAAC;IACH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GetMarketplaceCardPriceCommand = void 0;
4
+ const zod_1 = require("zod");
5
+ var GetMarketplaceCardPriceCommand;
6
+ (function (GetMarketplaceCardPriceCommand) {
7
+ GetMarketplaceCardPriceCommand.RequestSchema = zod_1.z.object({
8
+ modelId: zod_1.z.string().uuid().optional(),
9
+ });
10
+ GetMarketplaceCardPriceCommand.ResponseSchema = zod_1.z.object({
11
+ data: zod_1.z.object({
12
+ price: zod_1.z.number().int().nonnegative(),
13
+ }),
14
+ });
15
+ })(GetMarketplaceCardPriceCommand || (exports.GetMarketplaceCardPriceCommand = GetMarketplaceCardPriceCommand = {}));
@@ -0,0 +1,5 @@
1
+ export * from './get-marketplace-card-config.command';
2
+ export * from './get-marketplace-card-price.command';
3
+ export * from './get-marketplace-card-job.command';
4
+ export * from './find-marketplace-card-jobs.command';
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../queries/marketplace-card/index.ts"],"names":[],"mappings":"AAAA,cAAc,uCAAuC,CAAC;AACtD,cAAc,sCAAsC,CAAC;AACrD,cAAc,oCAAoC,CAAC;AACnD,cAAc,sCAAsC,CAAC"}
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./get-marketplace-card-config.command"), exports);
18
+ __exportStar(require("./get-marketplace-card-price.command"), exports);
19
+ __exportStar(require("./get-marketplace-card-job.command"), exports);
20
+ __exportStar(require("./find-marketplace-card-jobs.command"), exports);
@@ -0,0 +1,18 @@
1
+ import { z } from 'zod';
2
+ import { UserSchema } from '../../models';
3
+
4
+ export namespace CreateUserCommand {
5
+ export const RequestSchema = UserSchema.pick({
6
+ email: true,
7
+ });
8
+
9
+ export type Request = z.infer<typeof RequestSchema>;
10
+
11
+ export const ResponseSchema = z.object({
12
+ data: z.object({
13
+ uuid: z.string().uuid(),
14
+ }),
15
+ });
16
+
17
+ export type Response = z.infer<typeof ResponseSchema>;
18
+ }
@@ -0,0 +1,9 @@
1
+ export * from './login.command';
2
+ export * from './register.command';
3
+ export * from './create-user.command';
4
+ export * from './restore-password.command';
5
+ export * from './reset-password.command';
6
+ export * from './verify-email.command';
7
+ export * from './verify-email-retry.command';
8
+ export * from './vk-login.command';
9
+ export * from './yandex-login.command';
@@ -0,0 +1,17 @@
1
+ import { z } from 'zod';
2
+ import { UserSchema } from '../../models';
3
+
4
+ export namespace LoginCommand {
5
+ export const RequestSchema = UserSchema.pick({
6
+ email: true,
7
+ password: true,
8
+ });
9
+ export type Request = z.infer<typeof RequestSchema>;
10
+
11
+ export const ResponseSchema = z.object({
12
+ data: z.object({
13
+ accessToken: z.string(),
14
+ }),
15
+ });
16
+ export type Response = z.infer<typeof ResponseSchema>;
17
+ }
@@ -0,0 +1,20 @@
1
+ import { z } from 'zod';
2
+ import { UserSchema } from '../../models';
3
+
4
+ export namespace RegisterCommand {
5
+ export const RequestSchema = UserSchema.pick({
6
+ email: true,
7
+ password: true,
8
+ }).extend({
9
+ partnerId: z.string().uuid().optional(),
10
+ marketingConsent: z.boolean().default(false),
11
+ });
12
+ export type Request = z.infer<typeof RequestSchema>;
13
+
14
+ export const ResponseSchema = z.object({
15
+ data: z.object({
16
+ accessToken: z.string(),
17
+ }),
18
+ });
19
+ export type Response = z.infer<typeof ResponseSchema>;
20
+ }
@@ -0,0 +1,19 @@
1
+ import { z } from 'zod';
2
+
3
+ export namespace ResetPasswordCommand {
4
+ export const RequestSchema = z.object({
5
+ userId: z.string().uuid(),
6
+ restoreToken: z.string().min(6),
7
+ newPassword: z.string().min(6).max(128),
8
+ });
9
+
10
+ export type Request = z.infer<typeof RequestSchema>;
11
+
12
+ export const ResponseSchema = z.object({
13
+ data: z.object({
14
+ accessToken: z.string(),
15
+ }),
16
+ });
17
+
18
+ export type Response = z.infer<typeof ResponseSchema>;
19
+ }
@@ -0,0 +1,16 @@
1
+ import { z } from 'zod';
2
+ import { UserSchema } from '../../models';
3
+
4
+ export namespace RestorePasswordCommand {
5
+ export const RequestSchema = UserSchema.pick({
6
+ email: true,
7
+ });
8
+ export type Request = z.infer<typeof RequestSchema>;
9
+
10
+ export const ResponseSchema = z.object({
11
+ data: z.object({
12
+ message: z.string(),
13
+ }),
14
+ });
15
+ export type Response = z.infer<typeof ResponseSchema>;
16
+ }
@@ -0,0 +1,17 @@
1
+ import { z } from 'zod';
2
+
3
+ export namespace VerifyEmailRetryCommand {
4
+ export const RequestSchema = z.object({
5
+ userId: z.string().uuid(),
6
+ });
7
+
8
+ export type Request = z.infer<typeof RequestSchema>;
9
+
10
+ export const ResponseSchema = z.object({
11
+ data: z.object({
12
+ isSuccess: z.boolean(),
13
+ }),
14
+ });
15
+
16
+ export type Response = z.infer<typeof ResponseSchema>;
17
+ }
@@ -0,0 +1,18 @@
1
+ import { z } from 'zod';
2
+
3
+ export namespace VerifyEmailCommand {
4
+ export const RequestSchema = z.object({
5
+ verifyTokenHash: z.string().min(6),
6
+ email: z.string().email(),
7
+ });
8
+
9
+ export type Request = z.infer<typeof RequestSchema>;
10
+
11
+ export const ResponseSchema = z.object({
12
+ data: z.object({
13
+ isSuccess: z.boolean(),
14
+ }),
15
+ });
16
+
17
+ export type Response = z.infer<typeof ResponseSchema>;
18
+ }