@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,74 @@
1
+ import { z } from 'zod';
2
+ import { JOB_STATUS, USER_REACTION } from '../../constants';
3
+ export declare const MarketplaceCardJobSchema: z.ZodObject<{
4
+ uuid: z.ZodString;
5
+ status: z.ZodNativeEnum<typeof JOB_STATUS>;
6
+ error: z.ZodNullable<z.ZodString>;
7
+ title: z.ZodString;
8
+ subtitle: z.ZodNullable<z.ZodString>;
9
+ reaction: z.ZodNullable<z.ZodNativeEnum<typeof USER_REACTION>>;
10
+ advantages: z.ZodArray<z.ZodString, "many">;
11
+ tags: z.ZodArray<z.ZodString, "many">;
12
+ stylePresetId: z.ZodNullable<z.ZodString>;
13
+ isCustom: z.ZodBoolean;
14
+ customStylePrompt: z.ZodNullable<z.ZodString>;
15
+ inputImages: z.ZodArray<z.ZodObject<{
16
+ uuid: z.ZodString;
17
+ url: z.ZodString;
18
+ }, "strip", z.ZodTypeAny, {
19
+ uuid: string;
20
+ url: string;
21
+ }, {
22
+ uuid: string;
23
+ url: string;
24
+ }>, "many">;
25
+ resultImages: z.ZodNullable<z.ZodArray<z.ZodString, "many">>;
26
+ backgroundDescription: z.ZodNullable<z.ZodString>;
27
+ price: z.ZodNumber;
28
+ createdAt: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodDate]>>;
29
+ updatedAt: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodDate]>>;
30
+ }, "strip", z.ZodTypeAny, {
31
+ price: number;
32
+ uuid: string;
33
+ status: JOB_STATUS;
34
+ title: string;
35
+ error: string | null;
36
+ reaction: USER_REACTION | null;
37
+ subtitle: string | null;
38
+ advantages: string[];
39
+ tags: string[];
40
+ stylePresetId: string | null;
41
+ isCustom: boolean;
42
+ customStylePrompt: string | null;
43
+ inputImages: {
44
+ uuid: string;
45
+ url: string;
46
+ }[];
47
+ backgroundDescription: string | null;
48
+ resultImages: string[] | null;
49
+ createdAt?: string | Date | undefined;
50
+ updatedAt?: string | Date | undefined;
51
+ }, {
52
+ price: number;
53
+ uuid: string;
54
+ status: JOB_STATUS;
55
+ title: string;
56
+ error: string | null;
57
+ reaction: USER_REACTION | null;
58
+ subtitle: string | null;
59
+ advantages: string[];
60
+ tags: string[];
61
+ stylePresetId: string | null;
62
+ isCustom: boolean;
63
+ customStylePrompt: string | null;
64
+ inputImages: {
65
+ uuid: string;
66
+ url: string;
67
+ }[];
68
+ backgroundDescription: string | null;
69
+ resultImages: string[] | null;
70
+ createdAt?: string | Date | undefined;
71
+ updatedAt?: string | Date | undefined;
72
+ }>;
73
+ export type MarketplaceCardJob = z.infer<typeof MarketplaceCardJobSchema>;
74
+ //# sourceMappingURL=marketplace-card-job.schema.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"marketplace-card-job.schema.d.ts","sourceRoot":"","sources":["../../../models/marketplace-card/marketplace-card-job.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAM5D,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAkBnC,CAAC;AAEH,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC"}
@@ -0,0 +1,28 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.MarketplaceCardJobSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ const constants_1 = require("../../constants");
6
+ const MarketplaceCardInputImageSchema = zod_1.z.object({
7
+ uuid: zod_1.z.string().uuid(),
8
+ url: zod_1.z.string().url(),
9
+ });
10
+ exports.MarketplaceCardJobSchema = zod_1.z.object({
11
+ uuid: zod_1.z.string().uuid(),
12
+ status: zod_1.z.nativeEnum(constants_1.JOB_STATUS),
13
+ error: zod_1.z.string().nullable(),
14
+ title: zod_1.z.string(),
15
+ subtitle: zod_1.z.string().nullable(),
16
+ reaction: zod_1.z.nativeEnum(constants_1.USER_REACTION).nullable(),
17
+ advantages: zod_1.z.array(zod_1.z.string()),
18
+ tags: zod_1.z.array(zod_1.z.string()),
19
+ stylePresetId: zod_1.z.string().uuid().nullable(),
20
+ isCustom: zod_1.z.boolean(),
21
+ customStylePrompt: zod_1.z.string().nullable(),
22
+ inputImages: zod_1.z.array(MarketplaceCardInputImageSchema),
23
+ resultImages: zod_1.z.array(zod_1.z.string()).nullable(),
24
+ backgroundDescription: zod_1.z.string().nullable(),
25
+ price: zod_1.z.number().int().nonnegative(),
26
+ createdAt: zod_1.z.string().datetime().or(zod_1.z.date()).optional(),
27
+ updatedAt: zod_1.z.string().datetime().or(zod_1.z.date()).optional(),
28
+ });
@@ -0,0 +1,30 @@
1
+ import { z } from 'zod';
2
+ export declare const MarketplaceCardModelParamsSchema: z.ZodObject<{
3
+ imageAttachment: z.ZodObject<{
4
+ supported: z.ZodBoolean;
5
+ maxImages: z.ZodNumber;
6
+ acceptedTypes: z.ZodArray<z.ZodString, "many">;
7
+ }, "strip", z.ZodTypeAny, {
8
+ supported: boolean;
9
+ maxImages: number;
10
+ acceptedTypes: string[];
11
+ }, {
12
+ supported: boolean;
13
+ maxImages: number;
14
+ acceptedTypes: string[];
15
+ }>;
16
+ }, "strip", z.ZodTypeAny, {
17
+ imageAttachment: {
18
+ supported: boolean;
19
+ maxImages: number;
20
+ acceptedTypes: string[];
21
+ };
22
+ }, {
23
+ imageAttachment: {
24
+ supported: boolean;
25
+ maxImages: number;
26
+ acceptedTypes: string[];
27
+ };
28
+ }>;
29
+ export type MarketplaceCardModelParams = z.infer<typeof MarketplaceCardModelParamsSchema>;
30
+ //# sourceMappingURL=marketplace-card-model-params.schema.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"marketplace-card-model-params.schema.d.ts","sourceRoot":"","sources":["../../../models/marketplace-card/marketplace-card-model-params.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,gCAAgC;;;;;;;;;;;;;;;;;;;;;;;;;;EAM3C,CAAC;AAEH,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gCAAgC,CAAC,CAAC"}
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.MarketplaceCardModelParamsSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ exports.MarketplaceCardModelParamsSchema = zod_1.z.object({
6
+ imageAttachment: zod_1.z.object({
7
+ supported: zod_1.z.boolean(),
8
+ maxImages: zod_1.z.number().int().nonnegative(),
9
+ acceptedTypes: zod_1.z.array(zod_1.z.string()),
10
+ }),
11
+ });
@@ -0,0 +1,123 @@
1
+ import { z } from 'zod';
2
+ export declare const MarketplaceCardModelSchema: z.ZodObject<{
3
+ uuid: z.ZodString;
4
+ price: z.ZodNumber;
5
+ params: z.ZodObject<{
6
+ imageAttachment: z.ZodObject<{
7
+ supported: z.ZodBoolean;
8
+ maxImages: z.ZodNumber;
9
+ acceptedTypes: z.ZodArray<z.ZodString, "many">;
10
+ }, "strip", z.ZodTypeAny, {
11
+ supported: boolean;
12
+ maxImages: number;
13
+ acceptedTypes: string[];
14
+ }, {
15
+ supported: boolean;
16
+ maxImages: number;
17
+ acceptedTypes: string[];
18
+ }>;
19
+ }, "strip", z.ZodTypeAny, {
20
+ imageAttachment: {
21
+ supported: boolean;
22
+ maxImages: number;
23
+ acceptedTypes: string[];
24
+ };
25
+ }, {
26
+ imageAttachment: {
27
+ supported: boolean;
28
+ maxImages: number;
29
+ acceptedTypes: string[];
30
+ };
31
+ }>;
32
+ iconVariants: z.ZodObject<{
33
+ light: z.ZodObject<{
34
+ png: z.ZodOptional<z.ZodString>;
35
+ svg: z.ZodOptional<z.ZodString>;
36
+ }, "strip", z.ZodTypeAny, {
37
+ png?: string | undefined;
38
+ svg?: string | undefined;
39
+ }, {
40
+ png?: string | undefined;
41
+ svg?: string | undefined;
42
+ }>;
43
+ dark: z.ZodObject<{
44
+ png: z.ZodOptional<z.ZodString>;
45
+ svg: z.ZodOptional<z.ZodString>;
46
+ }, "strip", z.ZodTypeAny, {
47
+ png?: string | undefined;
48
+ svg?: string | undefined;
49
+ }, {
50
+ png?: string | undefined;
51
+ svg?: string | undefined;
52
+ }>;
53
+ }, "strip", z.ZodTypeAny, {
54
+ light: {
55
+ png?: string | undefined;
56
+ svg?: string | undefined;
57
+ };
58
+ dark: {
59
+ png?: string | undefined;
60
+ svg?: string | undefined;
61
+ };
62
+ }, {
63
+ light: {
64
+ png?: string | undefined;
65
+ svg?: string | undefined;
66
+ };
67
+ dark: {
68
+ png?: string | undefined;
69
+ svg?: string | undefined;
70
+ };
71
+ }>;
72
+ maxPromptLength: z.ZodNumber;
73
+ supportsImageAttachment: z.ZodBoolean;
74
+ maxAttachedImages: z.ZodNumber;
75
+ }, "strip", z.ZodTypeAny, {
76
+ price: number;
77
+ uuid: string;
78
+ params: {
79
+ imageAttachment: {
80
+ supported: boolean;
81
+ maxImages: number;
82
+ acceptedTypes: string[];
83
+ };
84
+ };
85
+ maxPromptLength: number;
86
+ iconVariants: {
87
+ light: {
88
+ png?: string | undefined;
89
+ svg?: string | undefined;
90
+ };
91
+ dark: {
92
+ png?: string | undefined;
93
+ svg?: string | undefined;
94
+ };
95
+ };
96
+ supportsImageAttachment: boolean;
97
+ maxAttachedImages: number;
98
+ }, {
99
+ price: number;
100
+ uuid: string;
101
+ params: {
102
+ imageAttachment: {
103
+ supported: boolean;
104
+ maxImages: number;
105
+ acceptedTypes: string[];
106
+ };
107
+ };
108
+ maxPromptLength: number;
109
+ iconVariants: {
110
+ light: {
111
+ png?: string | undefined;
112
+ svg?: string | undefined;
113
+ };
114
+ dark: {
115
+ png?: string | undefined;
116
+ svg?: string | undefined;
117
+ };
118
+ };
119
+ supportsImageAttachment: boolean;
120
+ maxAttachedImages: number;
121
+ }>;
122
+ export type MarketplaceCardModel = z.infer<typeof MarketplaceCardModelSchema>;
123
+ //# sourceMappingURL=marketplace-card-model.schema.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"marketplace-card-model.schema.d.ts","sourceRoot":"","sources":["../../../models/marketplace-card/marketplace-card-model.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAQrC,CAAC;AAEH,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC"}
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.MarketplaceCardModelSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ const common_1 = require("../common");
6
+ const marketplace_card_model_params_schema_1 = require("./marketplace-card-model-params.schema");
7
+ exports.MarketplaceCardModelSchema = zod_1.z.object({
8
+ uuid: zod_1.z.string().uuid(),
9
+ price: zod_1.z.number().int().nonnegative(),
10
+ params: marketplace_card_model_params_schema_1.MarketplaceCardModelParamsSchema,
11
+ iconVariants: common_1.IconVariantsSchema,
12
+ maxPromptLength: zod_1.z.number().int().positive(),
13
+ supportsImageAttachment: zod_1.z.boolean(),
14
+ maxAttachedImages: zod_1.z.number().int().nonnegative(),
15
+ });
@@ -0,0 +1,19 @@
1
+ import { z } from 'zod';
2
+ export declare const MarketplaceCardStylePresetSchema: z.ZodObject<{
3
+ uuid: z.ZodString;
4
+ previewImageUrl: z.ZodString;
5
+ order: z.ZodNumber;
6
+ isActive: z.ZodBoolean;
7
+ }, "strip", z.ZodTypeAny, {
8
+ uuid: string;
9
+ order: number;
10
+ previewImageUrl: string;
11
+ isActive: boolean;
12
+ }, {
13
+ uuid: string;
14
+ order: number;
15
+ previewImageUrl: string;
16
+ isActive: boolean;
17
+ }>;
18
+ export type MarketplaceCardStylePreset = z.infer<typeof MarketplaceCardStylePresetSchema>;
19
+ //# sourceMappingURL=marketplace-card-style-preset.schema.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"marketplace-card-style-preset.schema.d.ts","sourceRoot":"","sources":["../../../models/marketplace-card/marketplace-card-style-preset.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,gCAAgC;;;;;;;;;;;;;;;EAK3C,CAAC;AAEH,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gCAAgC,CAAC,CAAC"}
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.MarketplaceCardStylePresetSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ exports.MarketplaceCardStylePresetSchema = zod_1.z.object({
6
+ uuid: zod_1.z.string().uuid(),
7
+ previewImageUrl: zod_1.z.string().url(),
8
+ order: zod_1.z.number().int().nonnegative(),
9
+ isActive: zod_1.z.boolean(),
10
+ });
@@ -6,4 +6,5 @@ export * from './user';
6
6
  export * from './image-generation';
7
7
  export * from './image-editor';
8
8
  export * from './page';
9
+ export * from './marketplace-card';
9
10
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../queries/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,WAAW,CAAC;AAC1B,cAAc,QAAQ,CAAC;AACvB,cAAc,QAAQ,CAAC;AACvB,cAAc,oBAAoB,CAAC;AACnC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,QAAQ,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../queries/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,WAAW,CAAC;AAC1B,cAAc,QAAQ,CAAC;AACvB,cAAc,QAAQ,CAAC;AACvB,cAAc,oBAAoB,CAAC;AACnC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,QAAQ,CAAC;AACvB,cAAc,oBAAoB,CAAC"}
@@ -22,3 +22,4 @@ __exportStar(require("./user"), exports);
22
22
  __exportStar(require("./image-generation"), exports);
23
23
  __exportStar(require("./image-editor"), exports);
24
24
  __exportStar(require("./page"), exports);
25
+ __exportStar(require("./marketplace-card"), exports);
@@ -0,0 +1,160 @@
1
+ import { z } from 'zod';
2
+ export declare namespace FindMarketplaceCardJobsCommand {
3
+ const RequestQuerySchema: z.ZodObject<{
4
+ limit: z.ZodDefault<z.ZodNumber>;
5
+ offset: z.ZodDefault<z.ZodNumber>;
6
+ title: z.ZodOptional<z.ZodString>;
7
+ }, "strip", z.ZodTypeAny, {
8
+ limit: number;
9
+ offset: number;
10
+ title?: string | undefined;
11
+ }, {
12
+ title?: string | undefined;
13
+ limit?: number | undefined;
14
+ offset?: number | undefined;
15
+ }>;
16
+ type RequestQuery = z.infer<typeof RequestQuerySchema>;
17
+ const ResponseSchema: z.ZodObject<{
18
+ data: z.ZodArray<z.ZodObject<{
19
+ uuid: z.ZodString;
20
+ status: z.ZodNativeEnum<typeof import("../..").JOB_STATUS>;
21
+ error: z.ZodNullable<z.ZodString>;
22
+ title: z.ZodString;
23
+ subtitle: z.ZodNullable<z.ZodString>;
24
+ reaction: z.ZodNullable<z.ZodNativeEnum<typeof import("../..").USER_REACTION>>;
25
+ advantages: z.ZodArray<z.ZodString, "many">;
26
+ tags: z.ZodArray<z.ZodString, "many">;
27
+ stylePresetId: z.ZodNullable<z.ZodString>;
28
+ isCustom: z.ZodBoolean;
29
+ customStylePrompt: z.ZodNullable<z.ZodString>;
30
+ inputImages: z.ZodArray<z.ZodObject<{
31
+ uuid: z.ZodString;
32
+ url: z.ZodString;
33
+ }, "strip", z.ZodTypeAny, {
34
+ uuid: string;
35
+ url: string;
36
+ }, {
37
+ uuid: string;
38
+ url: string;
39
+ }>, "many">;
40
+ resultImages: z.ZodNullable<z.ZodArray<z.ZodString, "many">>;
41
+ backgroundDescription: z.ZodNullable<z.ZodString>;
42
+ price: z.ZodNumber;
43
+ createdAt: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodDate]>>;
44
+ updatedAt: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodDate]>>;
45
+ }, "strip", z.ZodTypeAny, {
46
+ price: number;
47
+ uuid: string;
48
+ status: import("../..").JOB_STATUS;
49
+ title: string;
50
+ error: string | null;
51
+ reaction: import("../..").USER_REACTION | null;
52
+ subtitle: string | null;
53
+ advantages: string[];
54
+ tags: string[];
55
+ stylePresetId: string | null;
56
+ isCustom: boolean;
57
+ customStylePrompt: string | null;
58
+ inputImages: {
59
+ uuid: string;
60
+ url: string;
61
+ }[];
62
+ backgroundDescription: string | null;
63
+ resultImages: string[] | null;
64
+ createdAt?: string | Date | undefined;
65
+ updatedAt?: string | Date | undefined;
66
+ }, {
67
+ price: number;
68
+ uuid: string;
69
+ status: import("../..").JOB_STATUS;
70
+ title: string;
71
+ error: string | null;
72
+ reaction: import("../..").USER_REACTION | null;
73
+ subtitle: string | null;
74
+ advantages: string[];
75
+ tags: string[];
76
+ stylePresetId: string | null;
77
+ isCustom: boolean;
78
+ customStylePrompt: string | null;
79
+ inputImages: {
80
+ uuid: string;
81
+ url: string;
82
+ }[];
83
+ backgroundDescription: string | null;
84
+ resultImages: string[] | null;
85
+ createdAt?: string | Date | undefined;
86
+ updatedAt?: string | Date | undefined;
87
+ }>, "many">;
88
+ meta: z.ZodObject<{
89
+ limit: z.ZodNumber;
90
+ offset: z.ZodNumber;
91
+ total: z.ZodNumber;
92
+ }, "strip", z.ZodTypeAny, {
93
+ limit: number;
94
+ offset: number;
95
+ total: number;
96
+ }, {
97
+ limit: number;
98
+ offset: number;
99
+ total: number;
100
+ }>;
101
+ }, "strip", z.ZodTypeAny, {
102
+ data: {
103
+ price: number;
104
+ uuid: string;
105
+ status: import("../..").JOB_STATUS;
106
+ title: string;
107
+ error: string | null;
108
+ reaction: import("../..").USER_REACTION | null;
109
+ subtitle: string | null;
110
+ advantages: string[];
111
+ tags: string[];
112
+ stylePresetId: string | null;
113
+ isCustom: boolean;
114
+ customStylePrompt: string | null;
115
+ inputImages: {
116
+ uuid: string;
117
+ url: string;
118
+ }[];
119
+ backgroundDescription: string | null;
120
+ resultImages: string[] | null;
121
+ createdAt?: string | Date | undefined;
122
+ updatedAt?: string | Date | undefined;
123
+ }[];
124
+ meta: {
125
+ limit: number;
126
+ offset: number;
127
+ total: number;
128
+ };
129
+ }, {
130
+ data: {
131
+ price: number;
132
+ uuid: string;
133
+ status: import("../..").JOB_STATUS;
134
+ title: string;
135
+ error: string | null;
136
+ reaction: import("../..").USER_REACTION | null;
137
+ subtitle: string | null;
138
+ advantages: string[];
139
+ tags: string[];
140
+ stylePresetId: string | null;
141
+ isCustom: boolean;
142
+ customStylePrompt: string | null;
143
+ inputImages: {
144
+ uuid: string;
145
+ url: string;
146
+ }[];
147
+ backgroundDescription: string | null;
148
+ resultImages: string[] | null;
149
+ createdAt?: string | Date | undefined;
150
+ updatedAt?: string | Date | undefined;
151
+ }[];
152
+ meta: {
153
+ limit: number;
154
+ offset: number;
155
+ total: number;
156
+ };
157
+ }>;
158
+ type Response = z.infer<typeof ResponseSchema>;
159
+ }
160
+ //# sourceMappingURL=find-marketplace-card-jobs.command.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"find-marketplace-card-jobs.command.d.ts","sourceRoot":"","sources":["../../../queries/marketplace-card/find-marketplace-card-jobs.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,yBAAiB,8BAA8B,CAAC;IACrC,MAAM,kBAAkB;;;;;;;;;;;;MAI7B,CAAC;IACH,KAAY,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;IAEvD,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAOzB,CAAC;IACH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.FindMarketplaceCardJobsCommand = void 0;
4
+ const zod_1 = require("zod");
5
+ const models_1 = require("../../models");
6
+ var FindMarketplaceCardJobsCommand;
7
+ (function (FindMarketplaceCardJobsCommand) {
8
+ FindMarketplaceCardJobsCommand.RequestQuerySchema = zod_1.z.object({
9
+ limit: zod_1.z.coerce.number().int().min(1).max(100).default(20),
10
+ offset: zod_1.z.coerce.number().int().min(0).default(0),
11
+ title: zod_1.z.string().min(1).optional(),
12
+ });
13
+ FindMarketplaceCardJobsCommand.ResponseSchema = zod_1.z.object({
14
+ data: zod_1.z.array(models_1.MarketplaceCardJobSchema),
15
+ meta: zod_1.z.object({
16
+ limit: zod_1.z.number().int(),
17
+ offset: zod_1.z.number().int(),
18
+ total: zod_1.z.number().int(),
19
+ }),
20
+ });
21
+ })(FindMarketplaceCardJobsCommand || (exports.FindMarketplaceCardJobsCommand = FindMarketplaceCardJobsCommand = {}));