@ai-grator/api 0.0.1

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 (931) hide show
  1. package/_common/error.contract.ts +21 -0
  2. package/_common/http-contract.helper.ts +25 -0
  3. package/_common/index.ts +4 -0
  4. package/_common/success.contract.ts +9 -0
  5. package/_common/types/cursor-pagination.type.ts +9 -0
  6. package/_common/types/icon.type.ts +8 -0
  7. package/_common/types/index.ts +2 -0
  8. package/admin/endpoints/admin.ts +13 -0
  9. package/admin/endpoints/commands/create-admin-partner-bonus-operation.command.ts +45 -0
  10. package/admin/endpoints/commands/index.ts +3 -0
  11. package/admin/endpoints/commands/update-admin-partner-referral-config.command.ts +48 -0
  12. package/admin/endpoints/commands/update-admin-referral-config.command.ts +39 -0
  13. package/admin/endpoints/index.ts +3 -0
  14. package/admin/endpoints/queries/get-admin-partner-bonus-operations.query.ts +39 -0
  15. package/admin/endpoints/queries/get-admin-partner-l2-bonuses.query.ts +37 -0
  16. package/admin/endpoints/queries/get-admin-partner-referral-config.query.ts +29 -0
  17. package/admin/endpoints/queries/get-admin-partner-referrals.query.ts +37 -0
  18. package/admin/endpoints/queries/get-admin-partner.query.ts +29 -0
  19. package/admin/endpoints/queries/get-admin-partners.query.ts +36 -0
  20. package/admin/endpoints/queries/get-admin-referral-config.query.ts +17 -0
  21. package/admin/endpoints/queries/index.ts +7 -0
  22. package/admin/enums/admin-bonus-history-operation-type.enum.ts +6 -0
  23. package/admin/enums/admin-bonus-operation-type.enum.ts +4 -0
  24. package/admin/enums/admin-partner-rates-type.enum.ts +4 -0
  25. package/admin/enums/index.ts +3 -0
  26. package/admin/index.ts +3 -0
  27. package/admin/models/admin-bonus-operation-response.schema.ts +16 -0
  28. package/admin/models/admin-partner-bonus-operation-response.schema.ts +13 -0
  29. package/admin/models/admin-partner-details-response.schema.ts +17 -0
  30. package/admin/models/admin-partner-l2-bonus-response.schema.ts +11 -0
  31. package/admin/models/admin-partner-referral-config-response.schema.ts +13 -0
  32. package/admin/models/admin-partner-referral-response.schema.ts +13 -0
  33. package/admin/models/admin-partner-response.schema.ts +18 -0
  34. package/admin/models/admin-referral-config-response.schema.ts +8 -0
  35. package/admin/models/index.ts +8 -0
  36. package/ai-model/endpoints/ai-model.ts +6 -0
  37. package/ai-model/endpoints/index.ts +2 -0
  38. package/ai-model/endpoints/queries/get-ai-model-by-uuid.query.ts +24 -0
  39. package/ai-model/endpoints/queries/get-ai-models.query.ts +23 -0
  40. package/ai-model/endpoints/queries/index.ts +2 -0
  41. package/ai-model/index.ts +2 -0
  42. package/ai-model/models/ai-model-response.schema.ts +34 -0
  43. package/ai-model/models/index.ts +1 -0
  44. package/article/endpoints/article.ts +17 -0
  45. package/article/endpoints/commands/create-article.command.ts +38 -0
  46. package/article/endpoints/commands/delete-article.command.ts +25 -0
  47. package/article/endpoints/commands/index.ts +4 -0
  48. package/article/endpoints/commands/publish-article.command.ts +26 -0
  49. package/article/endpoints/commands/update-article.command.ts +49 -0
  50. package/article/endpoints/index.ts +3 -0
  51. package/article/endpoints/queries/get-article-by-uuid.query.ts +26 -0
  52. package/article/endpoints/queries/get-articles.query.ts +27 -0
  53. package/article/endpoints/queries/get-published-by-slug.query.ts +24 -0
  54. package/article/endpoints/queries/index.ts +4 -0
  55. package/article/endpoints/queries/list-published.query.ts +28 -0
  56. package/article/enums/article-status.enum.ts +4 -0
  57. package/article/enums/index.ts +1 -0
  58. package/article/index.ts +3 -0
  59. package/article/models/article-content.schema.ts +13 -0
  60. package/article/models/article-response.schema.ts +21 -0
  61. package/article/models/index.ts +4 -0
  62. package/article/models/published-article-card.schema.ts +19 -0
  63. package/article/models/published-article-detail.schema.ts +22 -0
  64. package/auth/endpoints/auth.ts +14 -0
  65. package/auth/endpoints/commands/change-password.command.ts +28 -0
  66. package/auth/endpoints/commands/delete-account.command.ts +17 -0
  67. package/auth/endpoints/commands/index.ts +10 -0
  68. package/auth/endpoints/commands/login.command.ts +29 -0
  69. package/auth/endpoints/commands/logout.command.ts +16 -0
  70. package/auth/endpoints/commands/refresh.command.ts +19 -0
  71. package/auth/endpoints/commands/register.command.ts +35 -0
  72. package/auth/endpoints/commands/reset-password.command.ts +25 -0
  73. package/auth/endpoints/commands/restore-password.command.ts +26 -0
  74. package/auth/endpoints/commands/verify-email-retry.command.ts +28 -0
  75. package/auth/endpoints/commands/verify-email.command.ts +28 -0
  76. package/auth/endpoints/index.ts +2 -0
  77. package/auth/index.ts +1 -0
  78. package/build/_common/error.contract.d.ts +13 -0
  79. package/build/_common/error.contract.d.ts.map +1 -0
  80. package/build/_common/error.contract.js +17 -0
  81. package/build/_common/http-contract.helper.d.ts +21 -0
  82. package/build/_common/http-contract.helper.d.ts.map +1 -0
  83. package/build/_common/http-contract.helper.js +15 -0
  84. package/build/_common/index.d.ts +5 -0
  85. package/build/_common/index.d.ts.map +1 -0
  86. package/build/_common/index.js +20 -0
  87. package/build/_common/success.contract.d.ts +6 -0
  88. package/build/_common/success.contract.d.ts.map +1 -0
  89. package/build/_common/success.contract.js +7 -0
  90. package/build/_common/types/cursor-pagination.type.d.ts +7 -0
  91. package/build/_common/types/cursor-pagination.type.d.ts.map +1 -0
  92. package/build/_common/types/cursor-pagination.type.js +10 -0
  93. package/build/_common/types/icon.type.d.ts +7 -0
  94. package/build/_common/types/icon.type.d.ts.map +1 -0
  95. package/build/_common/types/icon.type.js +8 -0
  96. package/build/_common/types/index.d.ts +3 -0
  97. package/build/_common/types/index.d.ts.map +1 -0
  98. package/build/_common/types/index.js +18 -0
  99. package/build/admin/endpoints/admin.d.ts +13 -0
  100. package/build/admin/endpoints/admin.d.ts.map +1 -0
  101. package/build/admin/endpoints/admin.js +15 -0
  102. package/build/admin/endpoints/commands/create-admin-partner-bonus-operation.command.d.ts +59 -0
  103. package/build/admin/endpoints/commands/create-admin-partner-bonus-operation.command.d.ts.map +1 -0
  104. package/build/admin/endpoints/commands/create-admin-partner-bonus-operation.command.js +34 -0
  105. package/build/admin/endpoints/commands/index.d.ts +4 -0
  106. package/build/admin/endpoints/commands/index.d.ts.map +1 -0
  107. package/build/admin/endpoints/commands/index.js +19 -0
  108. package/build/admin/endpoints/commands/update-admin-partner-referral-config.command.d.ts +93 -0
  109. package/build/admin/endpoints/commands/update-admin-partner-referral-config.command.d.ts.map +1 -0
  110. package/build/admin/endpoints/commands/update-admin-partner-referral-config.command.js +37 -0
  111. package/build/admin/endpoints/commands/update-admin-referral-config.command.d.ts +58 -0
  112. package/build/admin/endpoints/commands/update-admin-referral-config.command.d.ts.map +1 -0
  113. package/build/admin/endpoints/commands/update-admin-referral-config.command.js +36 -0
  114. package/build/admin/endpoints/index.d.ts +4 -0
  115. package/build/admin/endpoints/index.d.ts.map +1 -0
  116. package/build/admin/endpoints/index.js +19 -0
  117. package/build/admin/endpoints/queries/get-admin-partner-bonus-operations.query.d.ts +57 -0
  118. package/build/admin/endpoints/queries/get-admin-partner-bonus-operations.query.d.ts.map +1 -0
  119. package/build/admin/endpoints/queries/get-admin-partner-bonus-operations.query.js +32 -0
  120. package/build/admin/endpoints/queries/get-admin-partner-l2-bonuses.query.d.ts +55 -0
  121. package/build/admin/endpoints/queries/get-admin-partner-l2-bonuses.query.d.ts.map +1 -0
  122. package/build/admin/endpoints/queries/get-admin-partner-l2-bonuses.query.js +32 -0
  123. package/build/admin/endpoints/queries/get-admin-partner-referral-config.query.d.ts +74 -0
  124. package/build/admin/endpoints/queries/get-admin-partner-referral-config.query.d.ts.map +1 -0
  125. package/build/admin/endpoints/queries/get-admin-partner-referral-config.query.js +26 -0
  126. package/build/admin/endpoints/queries/get-admin-partner-referrals.query.d.ts +59 -0
  127. package/build/admin/endpoints/queries/get-admin-partner-referrals.query.d.ts.map +1 -0
  128. package/build/admin/endpoints/queries/get-admin-partner-referrals.query.js +32 -0
  129. package/build/admin/endpoints/queries/get-admin-partner.query.d.ts +46 -0
  130. package/build/admin/endpoints/queries/get-admin-partner.query.d.ts.map +1 -0
  131. package/build/admin/endpoints/queries/get-admin-partner.query.js +26 -0
  132. package/build/admin/endpoints/queries/get-admin-partners.query.d.ts +65 -0
  133. package/build/admin/endpoints/queries/get-admin-partners.query.d.ts.map +1 -0
  134. package/build/admin/endpoints/queries/get-admin-partners.query.js +33 -0
  135. package/build/admin/endpoints/queries/get-admin-referral-config.query.d.ts +34 -0
  136. package/build/admin/endpoints/queries/get-admin-referral-config.query.d.ts.map +1 -0
  137. package/build/admin/endpoints/queries/get-admin-referral-config.query.js +18 -0
  138. package/build/admin/endpoints/queries/index.d.ts +8 -0
  139. package/build/admin/endpoints/queries/index.d.ts.map +1 -0
  140. package/build/admin/endpoints/queries/index.js +23 -0
  141. package/build/admin/enums/admin-bonus-history-operation-type.enum.d.ts +7 -0
  142. package/build/admin/enums/admin-bonus-history-operation-type.enum.d.ts.map +1 -0
  143. package/build/admin/enums/admin-bonus-history-operation-type.enum.js +10 -0
  144. package/build/admin/enums/admin-bonus-operation-type.enum.d.ts +5 -0
  145. package/build/admin/enums/admin-bonus-operation-type.enum.d.ts.map +1 -0
  146. package/build/admin/enums/admin-bonus-operation-type.enum.js +8 -0
  147. package/build/admin/enums/admin-partner-rates-type.enum.d.ts +5 -0
  148. package/build/admin/enums/admin-partner-rates-type.enum.d.ts.map +1 -0
  149. package/build/admin/enums/admin-partner-rates-type.enum.js +8 -0
  150. package/build/admin/enums/index.d.ts +4 -0
  151. package/build/admin/enums/index.d.ts.map +1 -0
  152. package/build/admin/enums/index.js +19 -0
  153. package/build/admin/index.d.ts +4 -0
  154. package/build/admin/index.d.ts.map +1 -0
  155. package/build/admin/index.js +19 -0
  156. package/build/admin/models/admin-bonus-operation-response.schema.d.ts +15 -0
  157. package/build/admin/models/admin-bonus-operation-response.schema.d.ts.map +1 -0
  158. package/build/admin/models/admin-bonus-operation-response.schema.js +16 -0
  159. package/build/admin/models/admin-partner-bonus-operation-response.schema.d.ts +12 -0
  160. package/build/admin/models/admin-partner-bonus-operation-response.schema.d.ts.map +1 -0
  161. package/build/admin/models/admin-partner-bonus-operation-response.schema.js +13 -0
  162. package/build/admin/models/admin-partner-details-response.schema.d.ts +16 -0
  163. package/build/admin/models/admin-partner-details-response.schema.d.ts.map +1 -0
  164. package/build/admin/models/admin-partner-details-response.schema.js +17 -0
  165. package/build/admin/models/admin-partner-l2-bonus-response.schema.d.ts +10 -0
  166. package/build/admin/models/admin-partner-l2-bonus-response.schema.d.ts.map +1 -0
  167. package/build/admin/models/admin-partner-l2-bonus-response.schema.js +11 -0
  168. package/build/admin/models/admin-partner-referral-config-response.schema.d.ts +29 -0
  169. package/build/admin/models/admin-partner-referral-config-response.schema.d.ts.map +1 -0
  170. package/build/admin/models/admin-partner-referral-config-response.schema.js +13 -0
  171. package/build/admin/models/admin-partner-referral-response.schema.d.ts +12 -0
  172. package/build/admin/models/admin-partner-referral-response.schema.d.ts.map +1 -0
  173. package/build/admin/models/admin-partner-referral-response.schema.js +13 -0
  174. package/build/admin/models/admin-partner-response.schema.d.ts +17 -0
  175. package/build/admin/models/admin-partner-response.schema.d.ts.map +1 -0
  176. package/build/admin/models/admin-partner-response.schema.js +18 -0
  177. package/build/admin/models/admin-referral-config-response.schema.d.ts +14 -0
  178. package/build/admin/models/admin-referral-config-response.schema.d.ts.map +1 -0
  179. package/build/admin/models/admin-referral-config-response.schema.js +8 -0
  180. package/build/admin/models/index.d.ts +9 -0
  181. package/build/admin/models/index.d.ts.map +1 -0
  182. package/build/admin/models/index.js +24 -0
  183. package/build/ai-model/endpoints/ai-model.d.ts +6 -0
  184. package/build/ai-model/endpoints/ai-model.d.ts.map +1 -0
  185. package/build/ai-model/endpoints/ai-model.js +8 -0
  186. package/build/ai-model/endpoints/index.d.ts +3 -0
  187. package/build/ai-model/endpoints/index.d.ts.map +1 -0
  188. package/build/ai-model/endpoints/index.js +18 -0
  189. package/build/ai-model/endpoints/queries/get-ai-model-by-uuid.query.d.ts +68 -0
  190. package/build/ai-model/endpoints/queries/get-ai-model-by-uuid.query.d.ts.map +1 -0
  191. package/build/ai-model/endpoints/queries/get-ai-model-by-uuid.query.js +24 -0
  192. package/build/ai-model/endpoints/queries/get-ai-models.query.d.ts +69 -0
  193. package/build/ai-model/endpoints/queries/get-ai-models.query.d.ts.map +1 -0
  194. package/build/ai-model/endpoints/queries/get-ai-models.query.js +22 -0
  195. package/build/ai-model/endpoints/queries/index.d.ts +3 -0
  196. package/build/ai-model/endpoints/queries/index.d.ts.map +1 -0
  197. package/build/ai-model/endpoints/queries/index.js +18 -0
  198. package/build/ai-model/index.d.ts +3 -0
  199. package/build/ai-model/index.d.ts.map +1 -0
  200. package/build/ai-model/index.js +18 -0
  201. package/build/ai-model/models/ai-model-response.schema.d.ts +38 -0
  202. package/build/ai-model/models/ai-model-response.schema.d.ts.map +1 -0
  203. package/build/ai-model/models/ai-model-response.schema.js +32 -0
  204. package/build/ai-model/models/index.d.ts +2 -0
  205. package/build/ai-model/models/index.d.ts.map +1 -0
  206. package/build/ai-model/models/index.js +17 -0
  207. package/build/article/endpoints/article.d.ts +15 -0
  208. package/build/article/endpoints/article.d.ts.map +1 -0
  209. package/build/article/endpoints/article.js +17 -0
  210. package/build/article/endpoints/commands/create-article.command.d.ts +89 -0
  211. package/build/article/endpoints/commands/create-article.command.d.ts.map +1 -0
  212. package/build/article/endpoints/commands/create-article.command.js +38 -0
  213. package/build/article/endpoints/commands/delete-article.command.d.ts +24 -0
  214. package/build/article/endpoints/commands/delete-article.command.d.ts.map +1 -0
  215. package/build/article/endpoints/commands/delete-article.command.js +25 -0
  216. package/build/article/endpoints/commands/index.d.ts +5 -0
  217. package/build/article/endpoints/commands/index.d.ts.map +1 -0
  218. package/build/article/endpoints/commands/index.js +20 -0
  219. package/build/article/endpoints/commands/publish-article.command.d.ts +64 -0
  220. package/build/article/endpoints/commands/publish-article.command.d.ts.map +1 -0
  221. package/build/article/endpoints/commands/publish-article.command.js +26 -0
  222. package/build/article/endpoints/commands/update-article.command.d.ts +96 -0
  223. package/build/article/endpoints/commands/update-article.command.d.ts.map +1 -0
  224. package/build/article/endpoints/commands/update-article.command.js +48 -0
  225. package/build/article/endpoints/index.d.ts +4 -0
  226. package/build/article/endpoints/index.d.ts.map +1 -0
  227. package/build/article/endpoints/index.js +19 -0
  228. package/build/article/endpoints/queries/get-article-by-uuid.query.d.ts +64 -0
  229. package/build/article/endpoints/queries/get-article-by-uuid.query.d.ts.map +1 -0
  230. package/build/article/endpoints/queries/get-article-by-uuid.query.js +26 -0
  231. package/build/article/endpoints/queries/get-articles.query.d.ts +73 -0
  232. package/build/article/endpoints/queries/get-articles.query.d.ts.map +1 -0
  233. package/build/article/endpoints/queries/get-articles.query.js +27 -0
  234. package/build/article/endpoints/queries/get-published-by-slug.query.d.ts +68 -0
  235. package/build/article/endpoints/queries/get-published-by-slug.query.d.ts.map +1 -0
  236. package/build/article/endpoints/queries/get-published-by-slug.query.js +24 -0
  237. package/build/article/endpoints/queries/index.d.ts +5 -0
  238. package/build/article/endpoints/queries/index.d.ts.map +1 -0
  239. package/build/article/endpoints/queries/index.js +20 -0
  240. package/build/article/endpoints/queries/list-published.query.d.ts +59 -0
  241. package/build/article/endpoints/queries/list-published.query.d.ts.map +1 -0
  242. package/build/article/endpoints/queries/list-published.query.js +28 -0
  243. package/build/article/enums/article-status.enum.d.ts +5 -0
  244. package/build/article/enums/article-status.enum.d.ts.map +1 -0
  245. package/build/article/enums/article-status.enum.js +8 -0
  246. package/build/article/enums/index.d.ts +2 -0
  247. package/build/article/enums/index.d.ts.map +1 -0
  248. package/build/article/enums/index.js +17 -0
  249. package/build/article/index.d.ts +4 -0
  250. package/build/article/index.d.ts.map +1 -0
  251. package/build/article/index.js +19 -0
  252. package/build/article/models/article-content.schema.d.ts +15 -0
  253. package/build/article/models/article-content.schema.d.ts.map +1 -0
  254. package/build/article/models/article-content.schema.js +12 -0
  255. package/build/article/models/article-response.schema.d.ts +25 -0
  256. package/build/article/models/article-response.schema.d.ts.map +1 -0
  257. package/build/article/models/article-response.schema.js +21 -0
  258. package/build/article/models/index.d.ts +5 -0
  259. package/build/article/models/index.d.ts.map +1 -0
  260. package/build/article/models/index.js +20 -0
  261. package/build/article/models/published-article-card.schema.d.ts +21 -0
  262. package/build/article/models/published-article-card.schema.d.ts.map +1 -0
  263. package/build/article/models/published-article-card.schema.js +18 -0
  264. package/build/article/models/published-article-detail.schema.d.ts +31 -0
  265. package/build/article/models/published-article-detail.schema.d.ts.map +1 -0
  266. package/build/article/models/published-article-detail.schema.js +21 -0
  267. package/build/auth/endpoints/auth.d.ts +14 -0
  268. package/build/auth/endpoints/auth.d.ts.map +1 -0
  269. package/build/auth/endpoints/auth.js +16 -0
  270. package/build/auth/endpoints/commands/change-password.command.d.ts +28 -0
  271. package/build/auth/endpoints/commands/change-password.command.d.ts.map +1 -0
  272. package/build/auth/endpoints/commands/change-password.command.js +29 -0
  273. package/build/auth/endpoints/commands/delete-account.command.d.ts +15 -0
  274. package/build/auth/endpoints/commands/delete-account.command.d.ts.map +1 -0
  275. package/build/auth/endpoints/commands/delete-account.command.js +19 -0
  276. package/build/auth/endpoints/commands/index.d.ts +11 -0
  277. package/build/auth/endpoints/commands/index.d.ts.map +1 -0
  278. package/build/auth/endpoints/commands/index.js +26 -0
  279. package/build/auth/endpoints/commands/login.command.d.ts +31 -0
  280. package/build/auth/endpoints/commands/login.command.d.ts.map +1 -0
  281. package/build/auth/endpoints/commands/login.command.js +30 -0
  282. package/build/auth/endpoints/commands/logout.command.d.ts +14 -0
  283. package/build/auth/endpoints/commands/logout.command.d.ts.map +1 -0
  284. package/build/auth/endpoints/commands/logout.command.js +18 -0
  285. package/build/auth/endpoints/commands/refresh.command.d.ts +19 -0
  286. package/build/auth/endpoints/commands/refresh.command.d.ts.map +1 -0
  287. package/build/auth/endpoints/commands/refresh.command.js +21 -0
  288. package/build/auth/endpoints/commands/register.command.d.ts +40 -0
  289. package/build/auth/endpoints/commands/register.command.d.ts.map +1 -0
  290. package/build/auth/endpoints/commands/register.command.js +35 -0
  291. package/build/auth/endpoints/commands/reset-password.command.d.ts +24 -0
  292. package/build/auth/endpoints/commands/reset-password.command.d.ts.map +1 -0
  293. package/build/auth/endpoints/commands/reset-password.command.js +26 -0
  294. package/build/auth/endpoints/commands/restore-password.command.d.ts +26 -0
  295. package/build/auth/endpoints/commands/restore-password.command.d.ts.map +1 -0
  296. package/build/auth/endpoints/commands/restore-password.command.js +27 -0
  297. package/build/auth/endpoints/commands/verify-email-retry.command.d.ts +30 -0
  298. package/build/auth/endpoints/commands/verify-email-retry.command.d.ts.map +1 -0
  299. package/build/auth/endpoints/commands/verify-email-retry.command.js +29 -0
  300. package/build/auth/endpoints/commands/verify-email.command.d.ts +30 -0
  301. package/build/auth/endpoints/commands/verify-email.command.d.ts.map +1 -0
  302. package/build/auth/endpoints/commands/verify-email.command.js +29 -0
  303. package/build/auth/endpoints/index.d.ts +3 -0
  304. package/build/auth/endpoints/index.d.ts.map +1 -0
  305. package/build/auth/endpoints/index.js +18 -0
  306. package/build/auth/index.d.ts +2 -0
  307. package/build/auth/index.d.ts.map +1 -0
  308. package/build/auth/index.js +17 -0
  309. package/build/category/endpoints/category.d.ts +9 -0
  310. package/build/category/endpoints/category.d.ts.map +1 -0
  311. package/build/category/endpoints/category.js +11 -0
  312. package/build/category/endpoints/commands/create-category.command.d.ts +40 -0
  313. package/build/category/endpoints/commands/create-category.command.d.ts.map +1 -0
  314. package/build/category/endpoints/commands/create-category.command.js +29 -0
  315. package/build/category/endpoints/commands/delete-category.command.d.ts +24 -0
  316. package/build/category/endpoints/commands/delete-category.command.d.ts.map +1 -0
  317. package/build/category/endpoints/commands/delete-category.command.js +25 -0
  318. package/build/category/endpoints/commands/index.d.ts +4 -0
  319. package/build/category/endpoints/commands/index.d.ts.map +1 -0
  320. package/build/category/endpoints/commands/index.js +19 -0
  321. package/build/category/endpoints/commands/update-category.command.d.ts +46 -0
  322. package/build/category/endpoints/commands/update-category.command.d.ts.map +1 -0
  323. package/build/category/endpoints/commands/update-category.command.js +38 -0
  324. package/build/category/endpoints/index.d.ts +4 -0
  325. package/build/category/endpoints/index.d.ts.map +1 -0
  326. package/build/category/endpoints/index.js +19 -0
  327. package/build/category/endpoints/queries/get-categories.query.d.ts +31 -0
  328. package/build/category/endpoints/queries/get-categories.query.d.ts.map +1 -0
  329. package/build/category/endpoints/queries/get-categories.query.js +21 -0
  330. package/build/category/endpoints/queries/get-category-by-uuid.query.d.ts +36 -0
  331. package/build/category/endpoints/queries/get-category-by-uuid.query.d.ts.map +1 -0
  332. package/build/category/endpoints/queries/get-category-by-uuid.query.js +26 -0
  333. package/build/category/endpoints/queries/index.d.ts +3 -0
  334. package/build/category/endpoints/queries/index.d.ts.map +1 -0
  335. package/build/category/endpoints/queries/index.js +18 -0
  336. package/build/category/index.d.ts +3 -0
  337. package/build/category/index.d.ts.map +1 -0
  338. package/build/category/index.js +18 -0
  339. package/build/category/models/category-response.schema.d.ts +10 -0
  340. package/build/category/models/category-response.schema.d.ts.map +1 -0
  341. package/build/category/models/category-response.schema.js +11 -0
  342. package/build/category/models/index.d.ts +2 -0
  343. package/build/category/models/index.d.ts.map +1 -0
  344. package/build/category/models/index.js +17 -0
  345. package/build/chat/endpoints/chat.d.ts +9 -0
  346. package/build/chat/endpoints/chat.d.ts.map +1 -0
  347. package/build/chat/endpoints/chat.js +11 -0
  348. package/build/chat/endpoints/commands/create-chat.command.d.ts +50 -0
  349. package/build/chat/endpoints/commands/create-chat.command.d.ts.map +1 -0
  350. package/build/chat/endpoints/commands/create-chat.command.js +24 -0
  351. package/build/chat/endpoints/commands/delete-chat.command.d.ts +22 -0
  352. package/build/chat/endpoints/commands/delete-chat.command.d.ts.map +1 -0
  353. package/build/chat/endpoints/commands/delete-chat.command.js +23 -0
  354. package/build/chat/endpoints/commands/index.d.ts +4 -0
  355. package/build/chat/endpoints/commands/index.d.ts.map +1 -0
  356. package/build/chat/endpoints/commands/index.js +19 -0
  357. package/build/chat/endpoints/commands/update-chat.command.d.ts +57 -0
  358. package/build/chat/endpoints/commands/update-chat.command.d.ts.map +1 -0
  359. package/build/chat/endpoints/commands/update-chat.command.js +33 -0
  360. package/build/chat/endpoints/index.d.ts +4 -0
  361. package/build/chat/endpoints/index.d.ts.map +1 -0
  362. package/build/chat/endpoints/index.js +19 -0
  363. package/build/chat/endpoints/queries/get-chat-by-uuid.query.d.ts +50 -0
  364. package/build/chat/endpoints/queries/get-chat-by-uuid.query.d.ts.map +1 -0
  365. package/build/chat/endpoints/queries/get-chat-by-uuid.query.js +24 -0
  366. package/build/chat/endpoints/queries/get-chats.query.d.ts +59 -0
  367. package/build/chat/endpoints/queries/get-chats.query.d.ts.map +1 -0
  368. package/build/chat/endpoints/queries/get-chats.query.js +25 -0
  369. package/build/chat/endpoints/queries/index.d.ts +3 -0
  370. package/build/chat/endpoints/queries/index.d.ts.map +1 -0
  371. package/build/chat/endpoints/queries/index.js +18 -0
  372. package/build/chat/enums/chat-status.enum.d.ts +6 -0
  373. package/build/chat/enums/chat-status.enum.d.ts.map +1 -0
  374. package/build/chat/enums/chat-status.enum.js +9 -0
  375. package/build/chat/enums/index.d.ts +2 -0
  376. package/build/chat/enums/index.d.ts.map +1 -0
  377. package/build/chat/enums/index.js +17 -0
  378. package/build/chat/index.d.ts +4 -0
  379. package/build/chat/index.d.ts.map +1 -0
  380. package/build/chat/index.js +19 -0
  381. package/build/chat/models/chat-response.schema.d.ts +28 -0
  382. package/build/chat/models/chat-response.schema.d.ts.map +1 -0
  383. package/build/chat/models/chat-response.schema.js +21 -0
  384. package/build/chat/models/index.d.ts +2 -0
  385. package/build/chat/models/index.d.ts.map +1 -0
  386. package/build/chat/models/index.js +17 -0
  387. package/build/errors/errors.d.ts +680 -0
  388. package/build/errors/errors.d.ts.map +1 -0
  389. package/build/errors/errors.js +682 -0
  390. package/build/errors/index.d.ts +2 -0
  391. package/build/errors/index.d.ts.map +1 -0
  392. package/build/errors/index.js +17 -0
  393. package/build/feedback-survey/endpoints/commands/create-feedback-survey-submission.command.d.ts +60 -0
  394. package/build/feedback-survey/endpoints/commands/create-feedback-survey-submission.command.d.ts.map +1 -0
  395. package/build/feedback-survey/endpoints/commands/create-feedback-survey-submission.command.js +26 -0
  396. package/build/feedback-survey/endpoints/commands/index.d.ts +2 -0
  397. package/build/feedback-survey/endpoints/commands/index.d.ts.map +1 -0
  398. package/build/feedback-survey/endpoints/commands/index.js +17 -0
  399. package/build/feedback-survey/endpoints/feedback-survey.d.ts +11 -0
  400. package/build/feedback-survey/endpoints/feedback-survey.d.ts.map +1 -0
  401. package/build/feedback-survey/endpoints/feedback-survey.js +13 -0
  402. package/build/feedback-survey/endpoints/index.d.ts +4 -0
  403. package/build/feedback-survey/endpoints/index.d.ts.map +1 -0
  404. package/build/feedback-survey/endpoints/index.js +19 -0
  405. package/build/feedback-survey/endpoints/queries/get-feedback-survey-questionnaire.query.d.ts +52 -0
  406. package/build/feedback-survey/endpoints/queries/get-feedback-survey-questionnaire.query.d.ts.map +1 -0
  407. package/build/feedback-survey/endpoints/queries/get-feedback-survey-questionnaire.query.js +20 -0
  408. package/build/feedback-survey/endpoints/queries/get-feedback-survey-status.query.d.ts +17 -0
  409. package/build/feedback-survey/endpoints/queries/get-feedback-survey-status.query.d.ts.map +1 -0
  410. package/build/feedback-survey/endpoints/queries/get-feedback-survey-status.query.js +17 -0
  411. package/build/feedback-survey/endpoints/queries/get-feedback-survey-submissions.query.d.ts +59 -0
  412. package/build/feedback-survey/endpoints/queries/get-feedback-survey-submissions.query.d.ts.map +1 -0
  413. package/build/feedback-survey/endpoints/queries/get-feedback-survey-submissions.query.js +27 -0
  414. package/build/feedback-survey/endpoints/queries/index.d.ts +4 -0
  415. package/build/feedback-survey/endpoints/queries/index.d.ts.map +1 -0
  416. package/build/feedback-survey/endpoints/queries/index.js +19 -0
  417. package/build/feedback-survey/enums/index.d.ts +2 -0
  418. package/build/feedback-survey/enums/index.d.ts.map +1 -0
  419. package/build/feedback-survey/enums/index.js +17 -0
  420. package/build/feedback-survey/enums/question-type.enum.d.ts +7 -0
  421. package/build/feedback-survey/enums/question-type.enum.d.ts.map +1 -0
  422. package/build/feedback-survey/enums/question-type.enum.js +10 -0
  423. package/build/feedback-survey/index.d.ts +4 -0
  424. package/build/feedback-survey/index.d.ts.map +1 -0
  425. package/build/feedback-survey/index.js +19 -0
  426. package/build/feedback-survey/models/answer-input.schema.d.ts +9 -0
  427. package/build/feedback-survey/models/answer-input.schema.d.ts.map +1 -0
  428. package/build/feedback-survey/models/answer-input.schema.js +10 -0
  429. package/build/feedback-survey/models/answer-response.schema.d.ts +12 -0
  430. package/build/feedback-survey/models/answer-response.schema.d.ts.map +1 -0
  431. package/build/feedback-survey/models/answer-response.schema.js +13 -0
  432. package/build/feedback-survey/models/feedback-survey-submission-response.schema.d.ts +17 -0
  433. package/build/feedback-survey/models/feedback-survey-submission-response.schema.d.ts.map +1 -0
  434. package/build/feedback-survey/models/feedback-survey-submission-response.schema.js +11 -0
  435. package/build/feedback-survey/models/index.d.ts +7 -0
  436. package/build/feedback-survey/models/index.d.ts.map +1 -0
  437. package/build/feedback-survey/models/index.js +22 -0
  438. package/build/feedback-survey/models/question-option-response.schema.d.ts +10 -0
  439. package/build/feedback-survey/models/question-option-response.schema.d.ts.map +1 -0
  440. package/build/feedback-survey/models/question-option-response.schema.js +11 -0
  441. package/build/feedback-survey/models/question-response.schema.d.ts +22 -0
  442. package/build/feedback-survey/models/question-response.schema.d.ts.map +1 -0
  443. package/build/feedback-survey/models/question-response.schema.js +18 -0
  444. package/build/feedback-survey/models/status-response.schema.d.ts +6 -0
  445. package/build/feedback-survey/models/status-response.schema.d.ts.map +1 -0
  446. package/build/feedback-survey/models/status-response.schema.js +7 -0
  447. package/build/file/endpoints/commands/index.d.ts +2 -0
  448. package/build/file/endpoints/commands/index.d.ts.map +1 -0
  449. package/build/file/endpoints/commands/index.js +17 -0
  450. package/build/file/endpoints/commands/upload-file.command.d.ts +59 -0
  451. package/build/file/endpoints/commands/upload-file.command.d.ts.map +1 -0
  452. package/build/file/endpoints/commands/upload-file.command.js +30 -0
  453. package/build/file/endpoints/file.d.ts +5 -0
  454. package/build/file/endpoints/file.d.ts.map +1 -0
  455. package/build/file/endpoints/file.js +7 -0
  456. package/build/file/endpoints/index.d.ts +3 -0
  457. package/build/file/endpoints/index.d.ts.map +1 -0
  458. package/build/file/endpoints/index.js +18 -0
  459. package/build/file/endpoints/queries/index.d.ts +2 -0
  460. package/build/file/endpoints/queries/index.d.ts.map +1 -0
  461. package/build/file/endpoints/queries/index.js +2 -0
  462. package/build/file/enums/file.enum.d.ts +19 -0
  463. package/build/file/enums/file.enum.d.ts.map +1 -0
  464. package/build/file/enums/file.enum.js +88 -0
  465. package/build/file/enums/index.d.ts +2 -0
  466. package/build/file/enums/index.d.ts.map +1 -0
  467. package/build/file/enums/index.js +17 -0
  468. package/build/file/index.d.ts +4 -0
  469. package/build/file/index.d.ts.map +1 -0
  470. package/build/file/index.js +19 -0
  471. package/build/file/models/file-response.schema.d.ts +20 -0
  472. package/build/file/models/file-response.schema.d.ts.map +1 -0
  473. package/build/file/models/file-response.schema.js +21 -0
  474. package/build/file/models/index.d.ts +2 -0
  475. package/build/file/models/index.d.ts.map +1 -0
  476. package/build/file/models/index.js +17 -0
  477. package/build/generation-job/endpoints/commands/create-generation-job.command.d.ts +63 -0
  478. package/build/generation-job/endpoints/commands/create-generation-job.command.d.ts.map +1 -0
  479. package/build/generation-job/endpoints/commands/create-generation-job.command.js +30 -0
  480. package/build/generation-job/endpoints/commands/delete-generation-job.command.d.ts +22 -0
  481. package/build/generation-job/endpoints/commands/delete-generation-job.command.d.ts.map +1 -0
  482. package/build/generation-job/endpoints/commands/delete-generation-job.command.js +23 -0
  483. package/build/generation-job/endpoints/commands/index.d.ts +4 -0
  484. package/build/generation-job/endpoints/commands/index.d.ts.map +1 -0
  485. package/build/generation-job/endpoints/commands/index.js +19 -0
  486. package/build/generation-job/endpoints/commands/update-generation-job.command.d.ts +77 -0
  487. package/build/generation-job/endpoints/commands/update-generation-job.command.d.ts.map +1 -0
  488. package/build/generation-job/endpoints/commands/update-generation-job.command.js +38 -0
  489. package/build/generation-job/endpoints/generation-job.d.ts +10 -0
  490. package/build/generation-job/endpoints/generation-job.d.ts.map +1 -0
  491. package/build/generation-job/endpoints/generation-job.js +12 -0
  492. package/build/generation-job/endpoints/index.d.ts +4 -0
  493. package/build/generation-job/endpoints/index.d.ts.map +1 -0
  494. package/build/generation-job/endpoints/index.js +19 -0
  495. package/build/generation-job/endpoints/queries/get-generation-job-by-uuid.query.d.ts +54 -0
  496. package/build/generation-job/endpoints/queries/get-generation-job-by-uuid.query.d.ts.map +1 -0
  497. package/build/generation-job/endpoints/queries/get-generation-job-by-uuid.query.js +24 -0
  498. package/build/generation-job/endpoints/queries/get-generation-job-history.query.d.ts +94 -0
  499. package/build/generation-job/endpoints/queries/get-generation-job-history.query.d.ts.map +1 -0
  500. package/build/generation-job/endpoints/queries/get-generation-job-history.query.js +35 -0
  501. package/build/generation-job/endpoints/queries/get-generation-jobs.query.d.ts +57 -0
  502. package/build/generation-job/endpoints/queries/get-generation-jobs.query.d.ts.map +1 -0
  503. package/build/generation-job/endpoints/queries/get-generation-jobs.query.js +26 -0
  504. package/build/generation-job/endpoints/queries/index.d.ts +4 -0
  505. package/build/generation-job/endpoints/queries/index.d.ts.map +1 -0
  506. package/build/generation-job/endpoints/queries/index.js +19 -0
  507. package/build/generation-job/enums/generation-job-status.enum.d.ts +8 -0
  508. package/build/generation-job/enums/generation-job-status.enum.d.ts.map +1 -0
  509. package/build/generation-job/enums/generation-job-status.enum.js +11 -0
  510. package/build/generation-job/enums/index.d.ts +2 -0
  511. package/build/generation-job/enums/index.d.ts.map +1 -0
  512. package/build/generation-job/enums/index.js +17 -0
  513. package/build/generation-job/index.d.ts +4 -0
  514. package/build/generation-job/index.d.ts.map +1 -0
  515. package/build/generation-job/index.js +19 -0
  516. package/build/generation-job/models/generation-job-response.schema.d.ts +26 -0
  517. package/build/generation-job/models/generation-job-response.schema.d.ts.map +1 -0
  518. package/build/generation-job/models/generation-job-response.schema.js +26 -0
  519. package/build/generation-job/models/index.d.ts +2 -0
  520. package/build/generation-job/models/index.d.ts.map +1 -0
  521. package/build/generation-job/models/index.js +17 -0
  522. package/build/generation-job-chat/endpoints/commands/create-generation-job-chat.command.d.ts +42 -0
  523. package/build/generation-job-chat/endpoints/commands/create-generation-job-chat.command.d.ts.map +1 -0
  524. package/build/generation-job-chat/endpoints/commands/create-generation-job-chat.command.js +27 -0
  525. package/build/generation-job-chat/endpoints/commands/delete-generation-job-chat.command.d.ts +22 -0
  526. package/build/generation-job-chat/endpoints/commands/delete-generation-job-chat.command.d.ts.map +1 -0
  527. package/build/generation-job-chat/endpoints/commands/delete-generation-job-chat.command.js +23 -0
  528. package/build/generation-job-chat/endpoints/commands/index.d.ts +4 -0
  529. package/build/generation-job-chat/endpoints/commands/index.d.ts.map +1 -0
  530. package/build/generation-job-chat/endpoints/commands/index.js +19 -0
  531. package/build/generation-job-chat/endpoints/commands/update-generation-job-chat.command.d.ts +45 -0
  532. package/build/generation-job-chat/endpoints/commands/update-generation-job-chat.command.d.ts.map +1 -0
  533. package/build/generation-job-chat/endpoints/commands/update-generation-job-chat.command.js +33 -0
  534. package/build/generation-job-chat/endpoints/generation-job-chat.d.ts +9 -0
  535. package/build/generation-job-chat/endpoints/generation-job-chat.d.ts.map +1 -0
  536. package/build/generation-job-chat/endpoints/generation-job-chat.js +11 -0
  537. package/build/generation-job-chat/endpoints/index.d.ts +4 -0
  538. package/build/generation-job-chat/endpoints/index.d.ts.map +1 -0
  539. package/build/generation-job-chat/endpoints/index.js +19 -0
  540. package/build/generation-job-chat/endpoints/queries/get-generation-job-chat-by-uuid.query.d.ts +38 -0
  541. package/build/generation-job-chat/endpoints/queries/get-generation-job-chat-by-uuid.query.d.ts.map +1 -0
  542. package/build/generation-job-chat/endpoints/queries/get-generation-job-chat-by-uuid.query.js +24 -0
  543. package/build/generation-job-chat/endpoints/queries/get-generation-job-chats.query.d.ts +49 -0
  544. package/build/generation-job-chat/endpoints/queries/get-generation-job-chats.query.d.ts.map +1 -0
  545. package/build/generation-job-chat/endpoints/queries/get-generation-job-chats.query.js +28 -0
  546. package/build/generation-job-chat/endpoints/queries/index.d.ts +3 -0
  547. package/build/generation-job-chat/endpoints/queries/index.d.ts.map +1 -0
  548. package/build/generation-job-chat/endpoints/queries/index.js +18 -0
  549. package/build/generation-job-chat/index.d.ts +3 -0
  550. package/build/generation-job-chat/index.d.ts.map +1 -0
  551. package/build/generation-job-chat/index.js +18 -0
  552. package/build/generation-job-chat/models/generation-job-chat-response.schema.d.ts +12 -0
  553. package/build/generation-job-chat/models/generation-job-chat-response.schema.d.ts.map +1 -0
  554. package/build/generation-job-chat/models/generation-job-chat-response.schema.js +14 -0
  555. package/build/generation-job-chat/models/index.d.ts +2 -0
  556. package/build/generation-job-chat/models/index.d.ts.map +1 -0
  557. package/build/generation-job-chat/models/index.js +17 -0
  558. package/build/generation-model/endpoints/generation-model.d.ts +7 -0
  559. package/build/generation-model/endpoints/generation-model.d.ts.map +1 -0
  560. package/build/generation-model/endpoints/generation-model.js +9 -0
  561. package/build/generation-model/endpoints/index.d.ts +3 -0
  562. package/build/generation-model/endpoints/index.d.ts.map +1 -0
  563. package/build/generation-model/endpoints/index.js +18 -0
  564. package/build/generation-model/endpoints/queries/get-generation-models-by-type.query.d.ts +85 -0
  565. package/build/generation-model/endpoints/queries/get-generation-models-by-type.query.d.ts.map +1 -0
  566. package/build/generation-model/endpoints/queries/get-generation-models-by-type.query.js +25 -0
  567. package/build/generation-model/endpoints/queries/get-generation-models.query.d.ts +77 -0
  568. package/build/generation-model/endpoints/queries/get-generation-models.query.d.ts.map +1 -0
  569. package/build/generation-model/endpoints/queries/get-generation-models.query.js +19 -0
  570. package/build/generation-model/endpoints/queries/get-generation-price.query.d.ts +32 -0
  571. package/build/generation-model/endpoints/queries/get-generation-price.query.d.ts.map +1 -0
  572. package/build/generation-model/endpoints/queries/get-generation-price.query.js +29 -0
  573. package/build/generation-model/endpoints/queries/index.d.ts +4 -0
  574. package/build/generation-model/endpoints/queries/index.d.ts.map +1 -0
  575. package/build/generation-model/endpoints/queries/index.js +19 -0
  576. package/build/generation-model/enums/generation-type.enum.d.ts +5 -0
  577. package/build/generation-model/enums/generation-type.enum.d.ts.map +1 -0
  578. package/build/generation-model/enums/generation-type.enum.js +8 -0
  579. package/build/generation-model/enums/index.d.ts +2 -0
  580. package/build/generation-model/enums/index.d.ts.map +1 -0
  581. package/build/generation-model/enums/index.js +17 -0
  582. package/build/generation-model/index.d.ts +4 -0
  583. package/build/generation-model/index.d.ts.map +1 -0
  584. package/build/generation-model/index.js +19 -0
  585. package/build/generation-model/models/generation-model-response.schema.d.ts +36 -0
  586. package/build/generation-model/models/generation-model-response.schema.d.ts.map +1 -0
  587. package/build/generation-model/models/generation-model-response.schema.js +23 -0
  588. package/build/generation-model/models/index.d.ts +3 -0
  589. package/build/generation-model/models/index.d.ts.map +1 -0
  590. package/build/generation-model/models/index.js +18 -0
  591. package/build/generation-model/models/pricing-policy.schema.d.ts +52 -0
  592. package/build/generation-model/models/pricing-policy.schema.d.ts.map +1 -0
  593. package/build/generation-model/models/pricing-policy.schema.js +29 -0
  594. package/build/index.d.ts +17 -0
  595. package/build/index.d.ts.map +1 -0
  596. package/build/index.js +32 -0
  597. package/build/message/endpoints/commands/create-message.command.d.ts +68 -0
  598. package/build/message/endpoints/commands/create-message.command.d.ts.map +1 -0
  599. package/build/message/endpoints/commands/create-message.command.js +48 -0
  600. package/build/message/endpoints/commands/delete-message.command.d.ts +22 -0
  601. package/build/message/endpoints/commands/delete-message.command.d.ts.map +1 -0
  602. package/build/message/endpoints/commands/delete-message.command.js +23 -0
  603. package/build/message/endpoints/commands/index.d.ts +3 -0
  604. package/build/message/endpoints/commands/index.d.ts.map +1 -0
  605. package/build/message/endpoints/commands/index.js +18 -0
  606. package/build/message/endpoints/index.d.ts +4 -0
  607. package/build/message/endpoints/index.d.ts.map +1 -0
  608. package/build/message/endpoints/index.js +19 -0
  609. package/build/message/endpoints/message.d.ts +9 -0
  610. package/build/message/endpoints/message.d.ts.map +1 -0
  611. package/build/message/endpoints/message.js +11 -0
  612. package/build/message/endpoints/queries/get-message-by-uuid.query.d.ts +74 -0
  613. package/build/message/endpoints/queries/get-message-by-uuid.query.d.ts.map +1 -0
  614. package/build/message/endpoints/queries/get-message-by-uuid.query.js +24 -0
  615. package/build/message/endpoints/queries/get-message-price-estimate.query.d.ts +41 -0
  616. package/build/message/endpoints/queries/get-message-price-estimate.query.d.ts.map +1 -0
  617. package/build/message/endpoints/queries/get-message-price-estimate.query.js +35 -0
  618. package/build/message/endpoints/queries/get-messages-by-chat.query.d.ts +90 -0
  619. package/build/message/endpoints/queries/get-messages-by-chat.query.d.ts.map +1 -0
  620. package/build/message/endpoints/queries/get-messages-by-chat.query.js +30 -0
  621. package/build/message/endpoints/queries/index.d.ts +4 -0
  622. package/build/message/endpoints/queries/index.d.ts.map +1 -0
  623. package/build/message/endpoints/queries/index.js +19 -0
  624. package/build/message/enums/index.d.ts +3 -0
  625. package/build/message/enums/index.d.ts.map +1 -0
  626. package/build/message/enums/index.js +18 -0
  627. package/build/message/enums/message-roles.enum.d.ts +5 -0
  628. package/build/message/enums/message-roles.enum.d.ts.map +1 -0
  629. package/build/message/enums/message-roles.enum.js +8 -0
  630. package/build/message/enums/message-status.enum.d.ts +10 -0
  631. package/build/message/enums/message-status.enum.d.ts.map +1 -0
  632. package/build/message/enums/message-status.enum.js +13 -0
  633. package/build/message/index.d.ts +4 -0
  634. package/build/message/index.d.ts.map +1 -0
  635. package/build/message/index.js +19 -0
  636. package/build/message/models/index.d.ts +2 -0
  637. package/build/message/models/index.d.ts.map +1 -0
  638. package/build/message/models/index.js +17 -0
  639. package/build/message/models/message-response.schema.d.ts +31 -0
  640. package/build/message/models/message-response.schema.d.ts.map +1 -0
  641. package/build/message/models/message-response.schema.js +17 -0
  642. package/build/payment/endpoints/commands/create-payment.command.d.ts +119 -0
  643. package/build/payment/endpoints/commands/create-payment.command.d.ts.map +1 -0
  644. package/build/payment/endpoints/commands/create-payment.command.js +40 -0
  645. package/build/payment/endpoints/commands/index.d.ts +2 -0
  646. package/build/payment/endpoints/commands/index.d.ts.map +1 -0
  647. package/build/payment/endpoints/commands/index.js +17 -0
  648. package/build/payment/endpoints/index.d.ts +3 -0
  649. package/build/payment/endpoints/index.d.ts.map +1 -0
  650. package/build/payment/endpoints/index.js +18 -0
  651. package/build/payment/endpoints/payment.d.ts +5 -0
  652. package/build/payment/endpoints/payment.d.ts.map +1 -0
  653. package/build/payment/endpoints/payment.js +7 -0
  654. package/build/payment/enums/index.d.ts +2 -0
  655. package/build/payment/enums/index.d.ts.map +1 -0
  656. package/build/payment/enums/index.js +17 -0
  657. package/build/payment/enums/payment-status.enum.d.ts +7 -0
  658. package/build/payment/enums/payment-status.enum.d.ts.map +1 -0
  659. package/build/payment/enums/payment-status.enum.js +10 -0
  660. package/build/payment/index.d.ts +4 -0
  661. package/build/payment/index.d.ts.map +1 -0
  662. package/build/payment/index.js +19 -0
  663. package/build/payment/models/index.d.ts +2 -0
  664. package/build/payment/models/index.d.ts.map +1 -0
  665. package/build/payment/models/index.js +17 -0
  666. package/build/payment/models/payment-response.schema.d.ts +50 -0
  667. package/build/payment/models/payment-response.schema.d.ts.map +1 -0
  668. package/build/payment/models/payment-response.schema.js +45 -0
  669. package/build/referral/endpoints/index.d.ts +2 -0
  670. package/build/referral/endpoints/index.d.ts.map +1 -0
  671. package/build/referral/endpoints/index.js +17 -0
  672. package/build/referral/endpoints/referral.d.ts +7 -0
  673. package/build/referral/endpoints/referral.d.ts.map +1 -0
  674. package/build/referral/endpoints/referral.js +9 -0
  675. package/build/referral/enums/bonus-history-filter.enum.d.ts +6 -0
  676. package/build/referral/enums/bonus-history-filter.enum.d.ts.map +1 -0
  677. package/build/referral/enums/bonus-history-filter.enum.js +9 -0
  678. package/build/referral/enums/index.d.ts +4 -0
  679. package/build/referral/enums/index.d.ts.map +1 -0
  680. package/build/referral/enums/index.js +19 -0
  681. package/build/referral/enums/referral-reward-status.enum.d.ts +6 -0
  682. package/build/referral/enums/referral-reward-status.enum.d.ts.map +1 -0
  683. package/build/referral/enums/referral-reward-status.enum.js +9 -0
  684. package/build/referral/enums/referral-status.enum.d.ts +6 -0
  685. package/build/referral/enums/referral-status.enum.d.ts.map +1 -0
  686. package/build/referral/enums/referral-status.enum.js +9 -0
  687. package/build/referral/index.d.ts +4 -0
  688. package/build/referral/index.d.ts.map +1 -0
  689. package/build/referral/index.js +19 -0
  690. package/build/referral/models/bonus-history-response.schema.d.ts +88 -0
  691. package/build/referral/models/bonus-history-response.schema.d.ts.map +1 -0
  692. package/build/referral/models/bonus-history-response.schema.js +27 -0
  693. package/build/referral/models/index.d.ts +5 -0
  694. package/build/referral/models/index.d.ts.map +1 -0
  695. package/build/referral/models/index.js +20 -0
  696. package/build/referral/models/partner-referral-rate-config.schema.d.ts +10 -0
  697. package/build/referral/models/partner-referral-rate-config.schema.d.ts.map +1 -0
  698. package/build/referral/models/partner-referral-rate-config.schema.js +11 -0
  699. package/build/referral/models/referral-config-response.schema.d.ts +24 -0
  700. package/build/referral/models/referral-config-response.schema.d.ts.map +1 -0
  701. package/build/referral/models/referral-config-response.schema.js +16 -0
  702. package/build/referral/models/referral-stats-response.schema.d.ts +21 -0
  703. package/build/referral/models/referral-stats-response.schema.d.ts.map +1 -0
  704. package/build/referral/models/referral-stats-response.schema.js +17 -0
  705. package/build/scripts/generate-openapi.d.ts +2 -0
  706. package/build/scripts/generate-openapi.d.ts.map +1 -0
  707. package/build/scripts/generate-openapi.js +536 -0
  708. package/build/tsconfig.tsbuildinfo +1 -0
  709. package/build/users/endpoints/index.d.ts +3 -0
  710. package/build/users/endpoints/index.d.ts.map +1 -0
  711. package/build/users/endpoints/index.js +18 -0
  712. package/build/users/endpoints/queries/get-profile.query.d.ts +13 -0
  713. package/build/users/endpoints/queries/get-profile.query.d.ts.map +1 -0
  714. package/build/users/endpoints/queries/get-profile.query.js +14 -0
  715. package/build/users/endpoints/queries/get-stat.query.d.ts +9 -0
  716. package/build/users/endpoints/queries/get-stat.query.d.ts.map +1 -0
  717. package/build/users/endpoints/queries/get-stat.query.js +10 -0
  718. package/build/users/endpoints/queries/index.d.ts +3 -0
  719. package/build/users/endpoints/queries/index.d.ts.map +1 -0
  720. package/build/users/endpoints/queries/index.js +18 -0
  721. package/build/users/endpoints/user.d.ts +6 -0
  722. package/build/users/endpoints/user.d.ts.map +1 -0
  723. package/build/users/endpoints/user.js +8 -0
  724. package/build/users/enums/index.d.ts +3 -0
  725. package/build/users/enums/index.d.ts.map +1 -0
  726. package/build/users/enums/index.js +18 -0
  727. package/build/users/enums/user-roles.enum.d.ts +5 -0
  728. package/build/users/enums/user-roles.enum.d.ts.map +1 -0
  729. package/build/users/enums/user-roles.enum.js +8 -0
  730. package/build/users/enums/user-status.enum.d.ts +6 -0
  731. package/build/users/enums/user-status.enum.d.ts.map +1 -0
  732. package/build/users/enums/user-status.enum.js +9 -0
  733. package/build/users/index.d.ts +3 -0
  734. package/build/users/index.d.ts.map +1 -0
  735. package/build/users/index.js +18 -0
  736. package/build/wallet/endpoints/index.d.ts +3 -0
  737. package/build/wallet/endpoints/index.d.ts.map +1 -0
  738. package/build/wallet/endpoints/index.js +18 -0
  739. package/build/wallet/endpoints/queries/get-wallet-balance.query.d.ts +20 -0
  740. package/build/wallet/endpoints/queries/get-wallet-balance.query.d.ts.map +1 -0
  741. package/build/wallet/endpoints/queries/get-wallet-balance.query.js +18 -0
  742. package/build/wallet/endpoints/queries/get-wallet-transactions.query.d.ts +53 -0
  743. package/build/wallet/endpoints/queries/get-wallet-transactions.query.d.ts.map +1 -0
  744. package/build/wallet/endpoints/queries/get-wallet-transactions.query.js +30 -0
  745. package/build/wallet/endpoints/queries/index.d.ts +3 -0
  746. package/build/wallet/endpoints/queries/index.d.ts.map +1 -0
  747. package/build/wallet/endpoints/queries/index.js +18 -0
  748. package/build/wallet/endpoints/wallet.d.ts +6 -0
  749. package/build/wallet/endpoints/wallet.d.ts.map +1 -0
  750. package/build/wallet/endpoints/wallet.js +8 -0
  751. package/build/wallet/enums/index.d.ts +4 -0
  752. package/build/wallet/enums/index.d.ts.map +1 -0
  753. package/build/wallet/enums/index.js +19 -0
  754. package/build/wallet/enums/wallet-transaction-source-type.enum.d.ts +10 -0
  755. package/build/wallet/enums/wallet-transaction-source-type.enum.d.ts.map +1 -0
  756. package/build/wallet/enums/wallet-transaction-source-type.enum.js +13 -0
  757. package/build/wallet/enums/wallet-transaction-status.enum.d.ts +7 -0
  758. package/build/wallet/enums/wallet-transaction-status.enum.d.ts.map +1 -0
  759. package/build/wallet/enums/wallet-transaction-status.enum.js +10 -0
  760. package/build/wallet/enums/wallet-transaction-type.enum.d.ts +7 -0
  761. package/build/wallet/enums/wallet-transaction-type.enum.d.ts.map +1 -0
  762. package/build/wallet/enums/wallet-transaction-type.enum.js +10 -0
  763. package/build/wallet/index.d.ts +4 -0
  764. package/build/wallet/index.d.ts.map +1 -0
  765. package/build/wallet/index.js +19 -0
  766. package/build/wallet/models/index.d.ts +3 -0
  767. package/build/wallet/models/index.d.ts.map +1 -0
  768. package/build/wallet/models/index.js +18 -0
  769. package/build/wallet/models/wallet-balance-response.schema.d.ts +7 -0
  770. package/build/wallet/models/wallet-balance-response.schema.d.ts.map +1 -0
  771. package/build/wallet/models/wallet-balance-response.schema.js +8 -0
  772. package/build/wallet/models/wallet-transaction-response.schema.d.ts +13 -0
  773. package/build/wallet/models/wallet-transaction-response.schema.d.ts.map +1 -0
  774. package/build/wallet/models/wallet-transaction-response.schema.js +14 -0
  775. package/category/endpoints/category.ts +9 -0
  776. package/category/endpoints/commands/create-category.command.ts +30 -0
  777. package/category/endpoints/commands/delete-category.command.ts +25 -0
  778. package/category/endpoints/commands/index.ts +3 -0
  779. package/category/endpoints/commands/update-category.command.ts +39 -0
  780. package/category/endpoints/index.ts +3 -0
  781. package/category/endpoints/queries/get-categories.query.ts +20 -0
  782. package/category/endpoints/queries/get-category-by-uuid.query.ts +26 -0
  783. package/category/endpoints/queries/index.ts +2 -0
  784. package/category/index.ts +2 -0
  785. package/category/models/category-response.schema.ts +11 -0
  786. package/category/models/index.ts +1 -0
  787. package/chat/endpoints/chat.ts +9 -0
  788. package/chat/endpoints/commands/create-chat.command.ts +24 -0
  789. package/chat/endpoints/commands/delete-chat.command.ts +23 -0
  790. package/chat/endpoints/commands/index.ts +3 -0
  791. package/chat/endpoints/commands/update-chat.command.ts +34 -0
  792. package/chat/endpoints/index.ts +3 -0
  793. package/chat/endpoints/queries/get-chat-by-uuid.query.ts +24 -0
  794. package/chat/endpoints/queries/get-chats.query.ts +25 -0
  795. package/chat/endpoints/queries/index.ts +2 -0
  796. package/chat/enums/chat-status.enum.ts +5 -0
  797. package/chat/enums/index.ts +1 -0
  798. package/chat/index.ts +3 -0
  799. package/chat/models/chat-response.schema.ts +24 -0
  800. package/chat/models/index.ts +1 -0
  801. package/errors/errors.ts +680 -0
  802. package/errors/index.ts +1 -0
  803. package/feedback-survey/endpoints/commands/create-feedback-survey-submission.command.ts +26 -0
  804. package/feedback-survey/endpoints/commands/index.ts +1 -0
  805. package/feedback-survey/endpoints/feedback-survey.ts +13 -0
  806. package/feedback-survey/endpoints/index.ts +3 -0
  807. package/feedback-survey/endpoints/queries/get-feedback-survey-questionnaire.query.ts +19 -0
  808. package/feedback-survey/endpoints/queries/get-feedback-survey-status.query.ts +16 -0
  809. package/feedback-survey/endpoints/queries/get-feedback-survey-submissions.query.ts +27 -0
  810. package/feedback-survey/endpoints/queries/index.ts +3 -0
  811. package/feedback-survey/enums/index.ts +1 -0
  812. package/feedback-survey/enums/question-type.enum.ts +6 -0
  813. package/feedback-survey/index.ts +3 -0
  814. package/feedback-survey/models/answer-input.schema.ts +10 -0
  815. package/feedback-survey/models/answer-response.schema.ts +13 -0
  816. package/feedback-survey/models/feedback-survey-submission-response.schema.ts +11 -0
  817. package/feedback-survey/models/index.ts +6 -0
  818. package/feedback-survey/models/question-option-response.schema.ts +11 -0
  819. package/feedback-survey/models/question-response.schema.ts +18 -0
  820. package/feedback-survey/models/status-response.schema.ts +7 -0
  821. package/file/endpoints/commands/index.ts +1 -0
  822. package/file/endpoints/commands/upload-file.command.ts +30 -0
  823. package/file/endpoints/file.ts +5 -0
  824. package/file/endpoints/index.ts +2 -0
  825. package/file/endpoints/queries/index.ts +0 -0
  826. package/file/enums/file.enum.ts +101 -0
  827. package/file/enums/index.ts +1 -0
  828. package/file/index.ts +3 -0
  829. package/file/models/file-response.schema.ts +21 -0
  830. package/file/models/index.ts +1 -0
  831. package/generation-job/endpoints/commands/create-generation-job.command.ts +30 -0
  832. package/generation-job/endpoints/commands/delete-generation-job.command.ts +23 -0
  833. package/generation-job/endpoints/commands/index.ts +3 -0
  834. package/generation-job/endpoints/commands/update-generation-job.command.ts +39 -0
  835. package/generation-job/endpoints/generation-job.ts +10 -0
  836. package/generation-job/endpoints/index.ts +3 -0
  837. package/generation-job/endpoints/queries/get-generation-job-by-uuid.query.ts +24 -0
  838. package/generation-job/endpoints/queries/get-generation-job-history.query.ts +38 -0
  839. package/generation-job/endpoints/queries/get-generation-jobs.query.ts +26 -0
  840. package/generation-job/endpoints/queries/index.ts +3 -0
  841. package/generation-job/enums/generation-job-status.enum.ts +7 -0
  842. package/generation-job/enums/index.ts +1 -0
  843. package/generation-job/index.ts +3 -0
  844. package/generation-job/models/generation-job-response.schema.ts +29 -0
  845. package/generation-job/models/index.ts +1 -0
  846. package/generation-job-chat/endpoints/commands/create-generation-job-chat.command.ts +27 -0
  847. package/generation-job-chat/endpoints/commands/delete-generation-job-chat.command.ts +23 -0
  848. package/generation-job-chat/endpoints/commands/index.ts +3 -0
  849. package/generation-job-chat/endpoints/commands/update-generation-job-chat.command.ts +34 -0
  850. package/generation-job-chat/endpoints/generation-job-chat.ts +9 -0
  851. package/generation-job-chat/endpoints/index.ts +3 -0
  852. package/generation-job-chat/endpoints/queries/get-generation-job-chat-by-uuid.query.ts +24 -0
  853. package/generation-job-chat/endpoints/queries/get-generation-job-chats.query.ts +28 -0
  854. package/generation-job-chat/endpoints/queries/index.ts +2 -0
  855. package/generation-job-chat/index.ts +2 -0
  856. package/generation-job-chat/models/generation-job-chat-response.schema.ts +14 -0
  857. package/generation-job-chat/models/index.ts +1 -0
  858. package/generation-model/endpoints/generation-model.ts +7 -0
  859. package/generation-model/endpoints/index.ts +2 -0
  860. package/generation-model/endpoints/queries/get-generation-models-by-type.query.ts +25 -0
  861. package/generation-model/endpoints/queries/get-generation-models.query.ts +18 -0
  862. package/generation-model/endpoints/queries/get-generation-price.query.ts +30 -0
  863. package/generation-model/endpoints/queries/index.ts +3 -0
  864. package/generation-model/enums/generation-type.enum.ts +4 -0
  865. package/generation-model/enums/index.ts +1 -0
  866. package/generation-model/index.ts +3 -0
  867. package/generation-model/models/generation-model-response.schema.ts +25 -0
  868. package/generation-model/models/index.ts +2 -0
  869. package/generation-model/models/pricing-policy.schema.ts +35 -0
  870. package/index.ts +16 -0
  871. package/message/endpoints/commands/create-message.command.ts +50 -0
  872. package/message/endpoints/commands/delete-message.command.ts +23 -0
  873. package/message/endpoints/commands/index.ts +2 -0
  874. package/message/endpoints/index.ts +3 -0
  875. package/message/endpoints/message.ts +9 -0
  876. package/message/endpoints/queries/get-message-by-uuid.query.ts +24 -0
  877. package/message/endpoints/queries/get-message-price-estimate.query.ts +35 -0
  878. package/message/endpoints/queries/get-messages-by-chat.query.ts +31 -0
  879. package/message/endpoints/queries/index.ts +3 -0
  880. package/message/enums/index.ts +2 -0
  881. package/message/enums/message-roles.enum.ts +4 -0
  882. package/message/enums/message-status.enum.ts +9 -0
  883. package/message/index.ts +3 -0
  884. package/message/models/index.ts +1 -0
  885. package/message/models/message-response.schema.ts +17 -0
  886. package/package.json +15 -0
  887. package/payment/endpoints/commands/create-payment.command.ts +41 -0
  888. package/payment/endpoints/commands/index.ts +1 -0
  889. package/payment/endpoints/index.ts +2 -0
  890. package/payment/endpoints/payment.ts +5 -0
  891. package/payment/enums/index.ts +1 -0
  892. package/payment/enums/payment-status.enum.ts +6 -0
  893. package/payment/index.ts +3 -0
  894. package/payment/models/index.ts +1 -0
  895. package/payment/models/payment-response.schema.ts +53 -0
  896. package/referral/endpoints/index.ts +1 -0
  897. package/referral/endpoints/referral.ts +7 -0
  898. package/referral/enums/bonus-history-filter.enum.ts +5 -0
  899. package/referral/enums/index.ts +3 -0
  900. package/referral/enums/referral-reward-status.enum.ts +5 -0
  901. package/referral/enums/referral-status.enum.ts +5 -0
  902. package/referral/index.ts +3 -0
  903. package/referral/models/bonus-history-response.schema.ts +36 -0
  904. package/referral/models/index.ts +4 -0
  905. package/referral/models/partner-referral-rate-config.schema.ts +11 -0
  906. package/referral/models/referral-config-response.schema.ts +19 -0
  907. package/referral/models/referral-stats-response.schema.ts +20 -0
  908. package/scripts/generate-openapi.ts +700 -0
  909. package/tsconfig.json +20 -0
  910. package/users/endpoints/index.ts +2 -0
  911. package/users/endpoints/queries/get-profile.query.ts +14 -0
  912. package/users/endpoints/queries/get-stat.query.ts +10 -0
  913. package/users/endpoints/queries/index.ts +2 -0
  914. package/users/endpoints/user.ts +6 -0
  915. package/users/enums/index.ts +2 -0
  916. package/users/enums/user-roles.enum.ts +4 -0
  917. package/users/enums/user-status.enum.ts +5 -0
  918. package/users/index.ts +2 -0
  919. package/wallet/endpoints/index.ts +2 -0
  920. package/wallet/endpoints/queries/get-wallet-balance.query.ts +17 -0
  921. package/wallet/endpoints/queries/get-wallet-transactions.query.ts +30 -0
  922. package/wallet/endpoints/queries/index.ts +2 -0
  923. package/wallet/endpoints/wallet.ts +6 -0
  924. package/wallet/enums/index.ts +3 -0
  925. package/wallet/enums/wallet-transaction-source-type.enum.ts +9 -0
  926. package/wallet/enums/wallet-transaction-status.enum.ts +6 -0
  927. package/wallet/enums/wallet-transaction-type.enum.ts +6 -0
  928. package/wallet/index.ts +3 -0
  929. package/wallet/models/index.ts +2 -0
  930. package/wallet/models/wallet-balance-response.schema.ts +8 -0
  931. package/wallet/models/wallet-transaction-response.schema.ts +14 -0
@@ -0,0 +1,37 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UpdateAdminPartnerReferralConfigCommand = exports.UpdateAdminPartnerReferralConfigCommandResponse = exports.UpdateAdminPartnerReferralConfigCommandBody = exports.UpdateAdminPartnerReferralConfigCommandParams = void 0;
4
+ const zod_1 = require("zod");
5
+ const _common_1 = require("../../../_common");
6
+ const enums_1 = require("../../enums");
7
+ const models_1 = require("../../models");
8
+ const admin_1 = require("../admin");
9
+ exports.UpdateAdminPartnerReferralConfigCommandParams = zod_1.z.object({
10
+ partnerId: zod_1.z.uuid(),
11
+ });
12
+ exports.UpdateAdminPartnerReferralConfigCommandBody = zod_1.z.object({
13
+ ratesType: zod_1.z.enum(enums_1.ADMIN_PARTNER_RATES_TYPE),
14
+ firstPaymentReferrerPercent: zod_1.z.number().min(0).max(1).optional(),
15
+ firstPaymentReferrerFixedBonus: zod_1.z.number().int().nonnegative().optional(),
16
+ firstPaymentRefereeFixedBonus: zod_1.z.number().int().nonnegative().optional(),
17
+ subsequentPaymentReferrerPercent: zod_1.z.number().min(0).max(1).optional(),
18
+ l2ReferralPercent: zod_1.z.number().min(0).max(1).optional(),
19
+ });
20
+ exports.UpdateAdminPartnerReferralConfigCommandResponse = models_1.AdminPartnerReferralConfigResponseSchema;
21
+ exports.UpdateAdminPartnerReferralConfigCommand = (0, _common_1.defineContract)({
22
+ method: _common_1.HTTP_METHODS.PATCH,
23
+ path: admin_1.ADMIN_ROUTES.UPDATE_PARTNER_REFERRAL_CONFIG(':partnerId'),
24
+ summary: 'Update admin partner referral config',
25
+ request: {
26
+ params: exports.UpdateAdminPartnerReferralConfigCommandParams,
27
+ body: exports.UpdateAdminPartnerReferralConfigCommandBody,
28
+ },
29
+ responses: {
30
+ 200: exports.UpdateAdminPartnerReferralConfigCommandResponse,
31
+ 400: _common_1.HttpErrorResponseSchema,
32
+ 401: _common_1.HttpErrorResponseSchema,
33
+ 403: _common_1.HttpErrorResponseSchema,
34
+ 404: _common_1.HttpErrorResponseSchema,
35
+ 500: _common_1.HttpErrorResponseSchema,
36
+ },
37
+ });
@@ -0,0 +1,58 @@
1
+ import { z } from 'zod';
2
+ import { HTTP_METHODS } from '../../../_common';
3
+ export declare const UpdateAdminReferralConfigCommandBody: z.ZodObject<{
4
+ referralWindowDays: z.ZodOptional<z.ZodNumber>;
5
+ firstPaymentReferrerPercent: z.ZodOptional<z.ZodNumber>;
6
+ firstPaymentReferrerFixedBonus: z.ZodOptional<z.ZodNumber>;
7
+ firstPaymentRefereeFixedBonus: z.ZodOptional<z.ZodNumber>;
8
+ subsequentPaymentReferrerPercent: z.ZodOptional<z.ZodNumber>;
9
+ subsequentPaymentMinAmount: z.ZodOptional<z.ZodNumber>;
10
+ l2ReferralPercent: z.ZodOptional<z.ZodNumber>;
11
+ }, z.core.$strip>;
12
+ export declare const UpdateAdminReferralConfigCommandResponse: z.ZodObject<{
13
+ config: z.ZodObject<{
14
+ referralWindowDays: z.ZodNumber;
15
+ firstPaymentReferrerPercent: z.ZodNumber;
16
+ firstPaymentReferrerFixedBonus: z.ZodNumber;
17
+ firstPaymentRefereeFixedBonus: z.ZodNumber;
18
+ subsequentPaymentReferrerPercent: z.ZodNumber;
19
+ subsequentPaymentMinAmount: z.ZodNumber;
20
+ l2ReferralPercent: z.ZodNumber;
21
+ }, z.core.$strip>;
22
+ }, z.core.$strip>;
23
+ export declare const UpdateAdminReferralConfigCommand: {
24
+ method: HTTP_METHODS.PATCH;
25
+ path: "referral-config";
26
+ summary: string;
27
+ request: {
28
+ body: z.ZodObject<{
29
+ referralWindowDays: z.ZodOptional<z.ZodNumber>;
30
+ firstPaymentReferrerPercent: z.ZodOptional<z.ZodNumber>;
31
+ firstPaymentReferrerFixedBonus: z.ZodOptional<z.ZodNumber>;
32
+ firstPaymentRefereeFixedBonus: z.ZodOptional<z.ZodNumber>;
33
+ subsequentPaymentReferrerPercent: z.ZodOptional<z.ZodNumber>;
34
+ subsequentPaymentMinAmount: z.ZodOptional<z.ZodNumber>;
35
+ l2ReferralPercent: z.ZodOptional<z.ZodNumber>;
36
+ }, z.core.$strip>;
37
+ };
38
+ responses: {
39
+ 200: z.ZodObject<{
40
+ config: z.ZodObject<{
41
+ referralWindowDays: z.ZodNumber;
42
+ firstPaymentReferrerPercent: z.ZodNumber;
43
+ firstPaymentReferrerFixedBonus: z.ZodNumber;
44
+ firstPaymentRefereeFixedBonus: z.ZodNumber;
45
+ subsequentPaymentReferrerPercent: z.ZodNumber;
46
+ subsequentPaymentMinAmount: z.ZodNumber;
47
+ l2ReferralPercent: z.ZodNumber;
48
+ }, z.core.$strip>;
49
+ }, z.core.$strip>;
50
+ 400: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
51
+ 401: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
52
+ 403: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
53
+ 500: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
54
+ };
55
+ };
56
+ export type UpdateAdminReferralConfigCommandBodyType = z.infer<typeof UpdateAdminReferralConfigCommandBody>;
57
+ export type UpdateAdminReferralConfigCommandResponseType = z.infer<typeof UpdateAdminReferralConfigCommandResponse>;
58
+ //# sourceMappingURL=update-admin-referral-config.command.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update-admin-referral-config.command.d.ts","sourceRoot":"","sources":["../../../../admin/endpoints/commands/update-admin-referral-config.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAkB,YAAY,EAA2B,MAAM,kBAAkB,CAAC;AAIzF,eAAO,MAAM,oCAAoC;;;;;;;;iBAY3C,CAAC;AAEP,eAAO,MAAM,wCAAwC;;;;;;;;;;iBAAoC,CAAC;AAE1F,eAAO,MAAM,gCAAgC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAc3C,CAAC;AAEH,MAAM,MAAM,wCAAwC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oCAAoC,CAAC,CAAC;AAC5G,MAAM,MAAM,4CAA4C,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wCAAwC,CAAC,CAAC"}
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UpdateAdminReferralConfigCommand = exports.UpdateAdminReferralConfigCommandResponse = exports.UpdateAdminReferralConfigCommandBody = void 0;
4
+ const zod_1 = require("zod");
5
+ const _common_1 = require("../../../_common");
6
+ const models_1 = require("../../models");
7
+ const admin_1 = require("../admin");
8
+ exports.UpdateAdminReferralConfigCommandBody = zod_1.z
9
+ .object({
10
+ referralWindowDays: zod_1.z.number().int().min(1).optional(),
11
+ firstPaymentReferrerPercent: zod_1.z.number().min(0).max(1).optional(),
12
+ firstPaymentReferrerFixedBonus: zod_1.z.number().int().nonnegative().optional(),
13
+ firstPaymentRefereeFixedBonus: zod_1.z.number().int().nonnegative().optional(),
14
+ subsequentPaymentReferrerPercent: zod_1.z.number().min(0).max(1).optional(),
15
+ subsequentPaymentMinAmount: zod_1.z.number().int().nonnegative().optional(),
16
+ l2ReferralPercent: zod_1.z.number().min(0).max(1).optional(),
17
+ })
18
+ .refine((value) => Object.keys(value).length > 0, {
19
+ message: 'At least one field is required',
20
+ });
21
+ exports.UpdateAdminReferralConfigCommandResponse = models_1.AdminReferralConfigResponseSchema;
22
+ exports.UpdateAdminReferralConfigCommand = (0, _common_1.defineContract)({
23
+ method: _common_1.HTTP_METHODS.PATCH,
24
+ path: admin_1.ADMIN_ROUTES.REFERRAL_CONFIG,
25
+ summary: 'Update admin referral config',
26
+ request: {
27
+ body: exports.UpdateAdminReferralConfigCommandBody,
28
+ },
29
+ responses: {
30
+ 200: exports.UpdateAdminReferralConfigCommandResponse,
31
+ 400: _common_1.HttpErrorResponseSchema,
32
+ 401: _common_1.HttpErrorResponseSchema,
33
+ 403: _common_1.HttpErrorResponseSchema,
34
+ 500: _common_1.HttpErrorResponseSchema,
35
+ },
36
+ });
@@ -0,0 +1,4 @@
1
+ export * from './admin';
2
+ export * from './commands';
3
+ export * from './queries';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../admin/endpoints/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC"}
@@ -0,0 +1,19 @@
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("./admin"), exports);
18
+ __exportStar(require("./commands"), exports);
19
+ __exportStar(require("./queries"), exports);
@@ -0,0 +1,57 @@
1
+ import { z } from 'zod';
2
+ import { HTTP_METHODS } from '../../../_common';
3
+ export declare const GetAdminPartnerBonusOperationsQueryParams: z.ZodObject<{
4
+ partnerId: z.ZodUUID;
5
+ }, z.core.$strip>;
6
+ export declare const GetAdminPartnerBonusOperationsQueryQuery: z.ZodObject<{
7
+ cursor: z.ZodOptional<z.ZodUUID>;
8
+ limit: z.ZodOptional<z.ZodDefault<z.ZodCoercedNumber<unknown>>>;
9
+ }, z.core.$strip>;
10
+ export declare const GetAdminPartnerBonusOperationsQueryResponse: z.ZodObject<{
11
+ operations: z.ZodArray<z.ZodObject<{
12
+ uuid: z.ZodUUID;
13
+ type: z.ZodEnum<typeof import("../..").ADMIN_BONUS_HISTORY_OPERATION_TYPE>;
14
+ amount: z.ZodNumber;
15
+ balanceAfter: z.ZodNullable<z.ZodNumber>;
16
+ comment: z.ZodNullable<z.ZodString>;
17
+ createdAt: z.ZodDate;
18
+ }, z.core.$strip>>;
19
+ nextCursor: z.ZodNullable<z.ZodUUID>;
20
+ hasMore: z.ZodBoolean;
21
+ }, z.core.$strip>;
22
+ export declare const GetAdminPartnerBonusOperationsQuery: {
23
+ method: HTTP_METHODS.GET;
24
+ path: string;
25
+ summary: string;
26
+ request: {
27
+ params: z.ZodObject<{
28
+ partnerId: z.ZodUUID;
29
+ }, z.core.$strip>;
30
+ query: z.ZodObject<{
31
+ cursor: z.ZodOptional<z.ZodUUID>;
32
+ limit: z.ZodOptional<z.ZodDefault<z.ZodCoercedNumber<unknown>>>;
33
+ }, z.core.$strip>;
34
+ };
35
+ responses: {
36
+ 200: z.ZodObject<{
37
+ operations: z.ZodArray<z.ZodObject<{
38
+ uuid: z.ZodUUID;
39
+ type: z.ZodEnum<typeof import("../..").ADMIN_BONUS_HISTORY_OPERATION_TYPE>;
40
+ amount: z.ZodNumber;
41
+ balanceAfter: z.ZodNullable<z.ZodNumber>;
42
+ comment: z.ZodNullable<z.ZodString>;
43
+ createdAt: z.ZodDate;
44
+ }, z.core.$strip>>;
45
+ nextCursor: z.ZodNullable<z.ZodUUID>;
46
+ hasMore: z.ZodBoolean;
47
+ }, z.core.$strip>;
48
+ 401: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
49
+ 403: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
50
+ 404: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
51
+ 500: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
52
+ };
53
+ };
54
+ export type GetAdminPartnerBonusOperationsQueryParamsType = z.infer<typeof GetAdminPartnerBonusOperationsQueryParams>;
55
+ export type GetAdminPartnerBonusOperationsQueryQueryType = z.infer<typeof GetAdminPartnerBonusOperationsQueryQuery>;
56
+ export type GetAdminPartnerBonusOperationsQueryResponseType = z.infer<typeof GetAdminPartnerBonusOperationsQueryResponse>;
57
+ //# sourceMappingURL=get-admin-partner-bonus-operations.query.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-admin-partner-bonus-operations.query.d.ts","sourceRoot":"","sources":["../../../../admin/endpoints/queries/get-admin-partner-bonus-operations.query.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAA+C,YAAY,EAA2B,MAAM,kBAAkB,CAAC;AAItH,eAAO,MAAM,yCAAyC;;iBAEpD,CAAC;AAEH,eAAO,MAAM,wCAAwC;;;iBAAwC,CAAC;AAE9F,eAAO,MAAM,2CAA2C;;;;;;;;;;;iBAItD,CAAC;AAEH,eAAO,MAAM,mCAAmC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAe9C,CAAC;AAEH,MAAM,MAAM,6CAA6C,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yCAAyC,CAAC,CAAC;AACtH,MAAM,MAAM,4CAA4C,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wCAAwC,CAAC,CAAC;AACpH,MAAM,MAAM,+CAA+C,GAAG,CAAC,CAAC,KAAK,CACjE,OAAO,2CAA2C,CACrD,CAAC"}
@@ -0,0 +1,32 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GetAdminPartnerBonusOperationsQuery = exports.GetAdminPartnerBonusOperationsQueryResponse = exports.GetAdminPartnerBonusOperationsQueryQuery = exports.GetAdminPartnerBonusOperationsQueryParams = void 0;
4
+ const zod_1 = require("zod");
5
+ const _common_1 = require("../../../_common");
6
+ const models_1 = require("../../models");
7
+ const admin_1 = require("../admin");
8
+ exports.GetAdminPartnerBonusOperationsQueryParams = zod_1.z.object({
9
+ partnerId: zod_1.z.uuid(),
10
+ });
11
+ exports.GetAdminPartnerBonusOperationsQueryQuery = (0, _common_1.defineCursorPaginationQuery)(zod_1.z.uuid());
12
+ exports.GetAdminPartnerBonusOperationsQueryResponse = zod_1.z.object({
13
+ operations: zod_1.z.array(models_1.AdminPartnerBonusOperationResponseSchema),
14
+ nextCursor: zod_1.z.uuid().nullable(),
15
+ hasMore: zod_1.z.boolean(),
16
+ });
17
+ exports.GetAdminPartnerBonusOperationsQuery = (0, _common_1.defineContract)({
18
+ method: _common_1.HTTP_METHODS.GET,
19
+ path: admin_1.ADMIN_ROUTES.GET_PARTNER_BONUS_OPERATIONS(':partnerId'),
20
+ summary: 'Get admin partner bonus operations',
21
+ request: {
22
+ params: exports.GetAdminPartnerBonusOperationsQueryParams,
23
+ query: exports.GetAdminPartnerBonusOperationsQueryQuery,
24
+ },
25
+ responses: {
26
+ 200: exports.GetAdminPartnerBonusOperationsQueryResponse,
27
+ 401: _common_1.HttpErrorResponseSchema,
28
+ 403: _common_1.HttpErrorResponseSchema,
29
+ 404: _common_1.HttpErrorResponseSchema,
30
+ 500: _common_1.HttpErrorResponseSchema,
31
+ },
32
+ });
@@ -0,0 +1,55 @@
1
+ import { z } from 'zod';
2
+ import { HTTP_METHODS } from '../../../_common';
3
+ export declare const GetAdminPartnerL2BonusesQueryParams: z.ZodObject<{
4
+ partnerId: z.ZodUUID;
5
+ }, z.core.$strip>;
6
+ export declare const GetAdminPartnerL2BonusesQueryQuery: z.ZodObject<{
7
+ cursor: z.ZodOptional<z.ZodUUID>;
8
+ limit: z.ZodOptional<z.ZodDefault<z.ZodCoercedNumber<unknown>>>;
9
+ }, z.core.$strip>;
10
+ export declare const GetAdminPartnerL2BonusesQueryResponse: z.ZodObject<{
11
+ bonuses: z.ZodArray<z.ZodObject<{
12
+ uuid: z.ZodUUID;
13
+ partnerUuid: z.ZodUUID;
14
+ partnerEmail: z.ZodEmail;
15
+ amount: z.ZodNumber;
16
+ createdAt: z.ZodDate;
17
+ }, z.core.$strip>>;
18
+ nextCursor: z.ZodNullable<z.ZodUUID>;
19
+ hasMore: z.ZodBoolean;
20
+ }, z.core.$strip>;
21
+ export declare const GetAdminPartnerL2BonusesQuery: {
22
+ method: HTTP_METHODS.GET;
23
+ path: string;
24
+ summary: string;
25
+ request: {
26
+ params: z.ZodObject<{
27
+ partnerId: z.ZodUUID;
28
+ }, z.core.$strip>;
29
+ query: z.ZodObject<{
30
+ cursor: z.ZodOptional<z.ZodUUID>;
31
+ limit: z.ZodOptional<z.ZodDefault<z.ZodCoercedNumber<unknown>>>;
32
+ }, z.core.$strip>;
33
+ };
34
+ responses: {
35
+ 200: z.ZodObject<{
36
+ bonuses: z.ZodArray<z.ZodObject<{
37
+ uuid: z.ZodUUID;
38
+ partnerUuid: z.ZodUUID;
39
+ partnerEmail: z.ZodEmail;
40
+ amount: z.ZodNumber;
41
+ createdAt: z.ZodDate;
42
+ }, z.core.$strip>>;
43
+ nextCursor: z.ZodNullable<z.ZodUUID>;
44
+ hasMore: z.ZodBoolean;
45
+ }, z.core.$strip>;
46
+ 401: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
47
+ 403: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
48
+ 404: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
49
+ 500: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
50
+ };
51
+ };
52
+ export type GetAdminPartnerL2BonusesQueryParamsType = z.infer<typeof GetAdminPartnerL2BonusesQueryParams>;
53
+ export type GetAdminPartnerL2BonusesQueryQueryType = z.infer<typeof GetAdminPartnerL2BonusesQueryQuery>;
54
+ export type GetAdminPartnerL2BonusesQueryResponseType = z.infer<typeof GetAdminPartnerL2BonusesQueryResponse>;
55
+ //# sourceMappingURL=get-admin-partner-l2-bonuses.query.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-admin-partner-l2-bonuses.query.d.ts","sourceRoot":"","sources":["../../../../admin/endpoints/queries/get-admin-partner-l2-bonuses.query.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAA+C,YAAY,EAA2B,MAAM,kBAAkB,CAAC;AAItH,eAAO,MAAM,mCAAmC;;iBAE9C,CAAC;AAEH,eAAO,MAAM,kCAAkC;;;iBAAwC,CAAC;AAExF,eAAO,MAAM,qCAAqC;;;;;;;;;;iBAIhD,CAAC;AAEH,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAexC,CAAC;AAEH,MAAM,MAAM,uCAAuC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mCAAmC,CAAC,CAAC;AAC1G,MAAM,MAAM,sCAAsC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kCAAkC,CAAC,CAAC;AACxG,MAAM,MAAM,yCAAyC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qCAAqC,CAAC,CAAC"}
@@ -0,0 +1,32 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GetAdminPartnerL2BonusesQuery = exports.GetAdminPartnerL2BonusesQueryResponse = exports.GetAdminPartnerL2BonusesQueryQuery = exports.GetAdminPartnerL2BonusesQueryParams = void 0;
4
+ const zod_1 = require("zod");
5
+ const _common_1 = require("../../../_common");
6
+ const models_1 = require("../../models");
7
+ const admin_1 = require("../admin");
8
+ exports.GetAdminPartnerL2BonusesQueryParams = zod_1.z.object({
9
+ partnerId: zod_1.z.uuid(),
10
+ });
11
+ exports.GetAdminPartnerL2BonusesQueryQuery = (0, _common_1.defineCursorPaginationQuery)(zod_1.z.uuid());
12
+ exports.GetAdminPartnerL2BonusesQueryResponse = zod_1.z.object({
13
+ bonuses: zod_1.z.array(models_1.AdminPartnerL2BonusResponseSchema),
14
+ nextCursor: zod_1.z.uuid().nullable(),
15
+ hasMore: zod_1.z.boolean(),
16
+ });
17
+ exports.GetAdminPartnerL2BonusesQuery = (0, _common_1.defineContract)({
18
+ method: _common_1.HTTP_METHODS.GET,
19
+ path: admin_1.ADMIN_ROUTES.GET_PARTNER_L2_BONUSES(':partnerId'),
20
+ summary: 'Get admin partner L2 bonuses',
21
+ request: {
22
+ params: exports.GetAdminPartnerL2BonusesQueryParams,
23
+ query: exports.GetAdminPartnerL2BonusesQueryQuery,
24
+ },
25
+ responses: {
26
+ 200: exports.GetAdminPartnerL2BonusesQueryResponse,
27
+ 401: _common_1.HttpErrorResponseSchema,
28
+ 403: _common_1.HttpErrorResponseSchema,
29
+ 404: _common_1.HttpErrorResponseSchema,
30
+ 500: _common_1.HttpErrorResponseSchema,
31
+ },
32
+ });
@@ -0,0 +1,74 @@
1
+ import { z } from 'zod';
2
+ import { HTTP_METHODS } from '../../../_common';
3
+ export declare const GetAdminPartnerReferralConfigQueryParams: z.ZodObject<{
4
+ partnerId: z.ZodUUID;
5
+ }, z.core.$strip>;
6
+ export declare const GetAdminPartnerReferralConfigQueryResponse: z.ZodObject<{
7
+ partnerUuid: z.ZodUUID;
8
+ ratesType: z.ZodEnum<typeof import("../..").ADMIN_PARTNER_RATES_TYPE>;
9
+ globalRates: z.ZodObject<{
10
+ firstPaymentReferrerPercent: z.ZodNumber;
11
+ firstPaymentReferrerFixedBonus: z.ZodNumber;
12
+ firstPaymentRefereeFixedBonus: z.ZodNumber;
13
+ subsequentPaymentReferrerPercent: z.ZodNumber;
14
+ l2ReferralPercent: z.ZodNumber;
15
+ }, z.core.$strip>;
16
+ individualRates: z.ZodNullable<z.ZodObject<{
17
+ firstPaymentReferrerPercent: z.ZodNumber;
18
+ firstPaymentReferrerFixedBonus: z.ZodNumber;
19
+ firstPaymentRefereeFixedBonus: z.ZodNumber;
20
+ subsequentPaymentReferrerPercent: z.ZodNumber;
21
+ l2ReferralPercent: z.ZodNumber;
22
+ }, z.core.$strip>>;
23
+ effectiveRates: z.ZodObject<{
24
+ firstPaymentReferrerPercent: z.ZodNumber;
25
+ firstPaymentReferrerFixedBonus: z.ZodNumber;
26
+ firstPaymentRefereeFixedBonus: z.ZodNumber;
27
+ subsequentPaymentReferrerPercent: z.ZodNumber;
28
+ l2ReferralPercent: z.ZodNumber;
29
+ }, z.core.$strip>;
30
+ }, z.core.$strip>;
31
+ export declare const GetAdminPartnerReferralConfigQuery: {
32
+ method: HTTP_METHODS.GET;
33
+ path: string;
34
+ summary: string;
35
+ request: {
36
+ params: z.ZodObject<{
37
+ partnerId: z.ZodUUID;
38
+ }, z.core.$strip>;
39
+ };
40
+ responses: {
41
+ 200: z.ZodObject<{
42
+ partnerUuid: z.ZodUUID;
43
+ ratesType: z.ZodEnum<typeof import("../..").ADMIN_PARTNER_RATES_TYPE>;
44
+ globalRates: z.ZodObject<{
45
+ firstPaymentReferrerPercent: z.ZodNumber;
46
+ firstPaymentReferrerFixedBonus: z.ZodNumber;
47
+ firstPaymentRefereeFixedBonus: z.ZodNumber;
48
+ subsequentPaymentReferrerPercent: z.ZodNumber;
49
+ l2ReferralPercent: z.ZodNumber;
50
+ }, z.core.$strip>;
51
+ individualRates: z.ZodNullable<z.ZodObject<{
52
+ firstPaymentReferrerPercent: z.ZodNumber;
53
+ firstPaymentReferrerFixedBonus: z.ZodNumber;
54
+ firstPaymentRefereeFixedBonus: z.ZodNumber;
55
+ subsequentPaymentReferrerPercent: z.ZodNumber;
56
+ l2ReferralPercent: z.ZodNumber;
57
+ }, z.core.$strip>>;
58
+ effectiveRates: z.ZodObject<{
59
+ firstPaymentReferrerPercent: z.ZodNumber;
60
+ firstPaymentReferrerFixedBonus: z.ZodNumber;
61
+ firstPaymentRefereeFixedBonus: z.ZodNumber;
62
+ subsequentPaymentReferrerPercent: z.ZodNumber;
63
+ l2ReferralPercent: z.ZodNumber;
64
+ }, z.core.$strip>;
65
+ }, z.core.$strip>;
66
+ 401: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
67
+ 403: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
68
+ 404: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
69
+ 500: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
70
+ };
71
+ };
72
+ export type GetAdminPartnerReferralConfigQueryParamsType = z.infer<typeof GetAdminPartnerReferralConfigQueryParams>;
73
+ export type GetAdminPartnerReferralConfigQueryResponseType = z.infer<typeof GetAdminPartnerReferralConfigQueryResponse>;
74
+ //# sourceMappingURL=get-admin-partner-referral-config.query.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-admin-partner-referral-config.query.d.ts","sourceRoot":"","sources":["../../../../admin/endpoints/queries/get-admin-partner-referral-config.query.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAkB,YAAY,EAA2B,MAAM,kBAAkB,CAAC;AAIzF,eAAO,MAAM,wCAAwC;;iBAEnD,CAAC;AAEH,eAAO,MAAM,0CAA0C;;;;;;;;;;;;;;;;;;;;;;;;iBAA2C,CAAC;AAEnG,eAAO,MAAM,kCAAkC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAc7C,CAAC;AAEH,MAAM,MAAM,4CAA4C,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wCAAwC,CAAC,CAAC;AACpH,MAAM,MAAM,8CAA8C,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0CAA0C,CAAC,CAAC"}
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GetAdminPartnerReferralConfigQuery = exports.GetAdminPartnerReferralConfigQueryResponse = exports.GetAdminPartnerReferralConfigQueryParams = void 0;
4
+ const zod_1 = require("zod");
5
+ const _common_1 = require("../../../_common");
6
+ const models_1 = require("../../models");
7
+ const admin_1 = require("../admin");
8
+ exports.GetAdminPartnerReferralConfigQueryParams = zod_1.z.object({
9
+ partnerId: zod_1.z.uuid(),
10
+ });
11
+ exports.GetAdminPartnerReferralConfigQueryResponse = models_1.AdminPartnerReferralConfigResponseSchema;
12
+ exports.GetAdminPartnerReferralConfigQuery = (0, _common_1.defineContract)({
13
+ method: _common_1.HTTP_METHODS.GET,
14
+ path: admin_1.ADMIN_ROUTES.GET_PARTNER_REFERRAL_CONFIG(':partnerId'),
15
+ summary: 'Get admin partner referral config',
16
+ request: {
17
+ params: exports.GetAdminPartnerReferralConfigQueryParams,
18
+ },
19
+ responses: {
20
+ 200: exports.GetAdminPartnerReferralConfigQueryResponse,
21
+ 401: _common_1.HttpErrorResponseSchema,
22
+ 403: _common_1.HttpErrorResponseSchema,
23
+ 404: _common_1.HttpErrorResponseSchema,
24
+ 500: _common_1.HttpErrorResponseSchema,
25
+ },
26
+ });
@@ -0,0 +1,59 @@
1
+ import { z } from 'zod';
2
+ import { HTTP_METHODS } from '../../../_common';
3
+ export declare const GetAdminPartnerReferralsQueryParams: z.ZodObject<{
4
+ partnerId: z.ZodUUID;
5
+ }, z.core.$strip>;
6
+ export declare const GetAdminPartnerReferralsQueryQuery: z.ZodObject<{
7
+ cursor: z.ZodOptional<z.ZodUUID>;
8
+ limit: z.ZodOptional<z.ZodDefault<z.ZodCoercedNumber<unknown>>>;
9
+ }, z.core.$strip>;
10
+ export declare const GetAdminPartnerReferralsQueryResponse: z.ZodObject<{
11
+ referrals: z.ZodArray<z.ZodObject<{
12
+ referralUuid: z.ZodUUID;
13
+ userUuid: z.ZodUUID;
14
+ email: z.ZodEmail;
15
+ registeredAt: z.ZodDate;
16
+ depositsTotal: z.ZodNumber;
17
+ isActive: z.ZodBoolean;
18
+ earnedBonusTotal: z.ZodNumber;
19
+ }, z.core.$strip>>;
20
+ nextCursor: z.ZodNullable<z.ZodUUID>;
21
+ hasMore: z.ZodBoolean;
22
+ }, z.core.$strip>;
23
+ export declare const GetAdminPartnerReferralsQuery: {
24
+ method: HTTP_METHODS.GET;
25
+ path: string;
26
+ summary: string;
27
+ request: {
28
+ params: z.ZodObject<{
29
+ partnerId: z.ZodUUID;
30
+ }, z.core.$strip>;
31
+ query: z.ZodObject<{
32
+ cursor: z.ZodOptional<z.ZodUUID>;
33
+ limit: z.ZodOptional<z.ZodDefault<z.ZodCoercedNumber<unknown>>>;
34
+ }, z.core.$strip>;
35
+ };
36
+ responses: {
37
+ 200: z.ZodObject<{
38
+ referrals: z.ZodArray<z.ZodObject<{
39
+ referralUuid: z.ZodUUID;
40
+ userUuid: z.ZodUUID;
41
+ email: z.ZodEmail;
42
+ registeredAt: z.ZodDate;
43
+ depositsTotal: z.ZodNumber;
44
+ isActive: z.ZodBoolean;
45
+ earnedBonusTotal: z.ZodNumber;
46
+ }, z.core.$strip>>;
47
+ nextCursor: z.ZodNullable<z.ZodUUID>;
48
+ hasMore: z.ZodBoolean;
49
+ }, z.core.$strip>;
50
+ 401: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
51
+ 403: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
52
+ 404: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
53
+ 500: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
54
+ };
55
+ };
56
+ export type GetAdminPartnerReferralsQueryParamsType = z.infer<typeof GetAdminPartnerReferralsQueryParams>;
57
+ export type GetAdminPartnerReferralsQueryQueryType = z.infer<typeof GetAdminPartnerReferralsQueryQuery>;
58
+ export type GetAdminPartnerReferralsQueryResponseType = z.infer<typeof GetAdminPartnerReferralsQueryResponse>;
59
+ //# sourceMappingURL=get-admin-partner-referrals.query.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-admin-partner-referrals.query.d.ts","sourceRoot":"","sources":["../../../../admin/endpoints/queries/get-admin-partner-referrals.query.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAA+C,YAAY,EAA2B,MAAM,kBAAkB,CAAC;AAItH,eAAO,MAAM,mCAAmC;;iBAE9C,CAAC;AAEH,eAAO,MAAM,kCAAkC;;;iBAAwC,CAAC;AAExF,eAAO,MAAM,qCAAqC;;;;;;;;;;;;iBAIhD,CAAC;AAEH,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAexC,CAAC;AAEH,MAAM,MAAM,uCAAuC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mCAAmC,CAAC,CAAC;AAC1G,MAAM,MAAM,sCAAsC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kCAAkC,CAAC,CAAC;AACxG,MAAM,MAAM,yCAAyC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qCAAqC,CAAC,CAAC"}
@@ -0,0 +1,32 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GetAdminPartnerReferralsQuery = exports.GetAdminPartnerReferralsQueryResponse = exports.GetAdminPartnerReferralsQueryQuery = exports.GetAdminPartnerReferralsQueryParams = void 0;
4
+ const zod_1 = require("zod");
5
+ const _common_1 = require("../../../_common");
6
+ const models_1 = require("../../models");
7
+ const admin_1 = require("../admin");
8
+ exports.GetAdminPartnerReferralsQueryParams = zod_1.z.object({
9
+ partnerId: zod_1.z.uuid(),
10
+ });
11
+ exports.GetAdminPartnerReferralsQueryQuery = (0, _common_1.defineCursorPaginationQuery)(zod_1.z.uuid());
12
+ exports.GetAdminPartnerReferralsQueryResponse = zod_1.z.object({
13
+ referrals: zod_1.z.array(models_1.AdminPartnerReferralResponseSchema),
14
+ nextCursor: zod_1.z.uuid().nullable(),
15
+ hasMore: zod_1.z.boolean(),
16
+ });
17
+ exports.GetAdminPartnerReferralsQuery = (0, _common_1.defineContract)({
18
+ method: _common_1.HTTP_METHODS.GET,
19
+ path: admin_1.ADMIN_ROUTES.GET_PARTNER_REFERRALS(':partnerId'),
20
+ summary: 'Get admin partner referrals',
21
+ request: {
22
+ params: exports.GetAdminPartnerReferralsQueryParams,
23
+ query: exports.GetAdminPartnerReferralsQueryQuery,
24
+ },
25
+ responses: {
26
+ 200: exports.GetAdminPartnerReferralsQueryResponse,
27
+ 401: _common_1.HttpErrorResponseSchema,
28
+ 403: _common_1.HttpErrorResponseSchema,
29
+ 404: _common_1.HttpErrorResponseSchema,
30
+ 500: _common_1.HttpErrorResponseSchema,
31
+ },
32
+ });
@@ -0,0 +1,46 @@
1
+ import { z } from 'zod';
2
+ import { HTTP_METHODS } from '../../../_common';
3
+ export declare const GetAdminPartnerQueryParams: z.ZodObject<{
4
+ partnerId: z.ZodUUID;
5
+ }, z.core.$strip>;
6
+ export declare const GetAdminPartnerQueryResponse: z.ZodObject<{
7
+ uuid: z.ZodUUID;
8
+ email: z.ZodEmail;
9
+ referralsTotal: z.ZodNumber;
10
+ activeReferrals: z.ZodNumber;
11
+ bonusBalance: z.ZodNumber;
12
+ earnedTotal: z.ZodNumber;
13
+ spentBonuses: z.ZodNumber;
14
+ ratesType: z.ZodEnum<typeof import("../..").ADMIN_PARTNER_RATES_TYPE>;
15
+ status: z.ZodEnum<typeof import("../../..").USER_STATUS>;
16
+ }, z.core.$strip>;
17
+ export declare const GetAdminPartnerQuery: {
18
+ method: HTTP_METHODS.GET;
19
+ path: string;
20
+ summary: string;
21
+ request: {
22
+ params: z.ZodObject<{
23
+ partnerId: z.ZodUUID;
24
+ }, z.core.$strip>;
25
+ };
26
+ responses: {
27
+ 200: z.ZodObject<{
28
+ uuid: z.ZodUUID;
29
+ email: z.ZodEmail;
30
+ referralsTotal: z.ZodNumber;
31
+ activeReferrals: z.ZodNumber;
32
+ bonusBalance: z.ZodNumber;
33
+ earnedTotal: z.ZodNumber;
34
+ spentBonuses: z.ZodNumber;
35
+ ratesType: z.ZodEnum<typeof import("../..").ADMIN_PARTNER_RATES_TYPE>;
36
+ status: z.ZodEnum<typeof import("../../..").USER_STATUS>;
37
+ }, z.core.$strip>;
38
+ 401: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
39
+ 403: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
40
+ 404: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
41
+ 500: z.ZodType<import("../../../_common").HttpErrorResponse, unknown, z.core.$ZodTypeInternals<import("../../../_common").HttpErrorResponse, unknown>>;
42
+ };
43
+ };
44
+ export type GetAdminPartnerQueryParamsType = z.infer<typeof GetAdminPartnerQueryParams>;
45
+ export type GetAdminPartnerQueryResponseType = z.infer<typeof GetAdminPartnerQueryResponse>;
46
+ //# sourceMappingURL=get-admin-partner.query.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-admin-partner.query.d.ts","sourceRoot":"","sources":["../../../../admin/endpoints/queries/get-admin-partner.query.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAkB,YAAY,EAA2B,MAAM,kBAAkB,CAAC;AAIzF,eAAO,MAAM,0BAA0B;;iBAErC,CAAC;AAEH,eAAO,MAAM,4BAA4B;;;;;;;;;;iBAAoC,CAAC;AAE9E,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;CAc/B,CAAC;AAEH,MAAM,MAAM,8BAA8B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AACxF,MAAM,MAAM,gCAAgC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,4BAA4B,CAAC,CAAC"}
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GetAdminPartnerQuery = exports.GetAdminPartnerQueryResponse = exports.GetAdminPartnerQueryParams = void 0;
4
+ const zod_1 = require("zod");
5
+ const _common_1 = require("../../../_common");
6
+ const models_1 = require("../../models");
7
+ const admin_1 = require("../admin");
8
+ exports.GetAdminPartnerQueryParams = zod_1.z.object({
9
+ partnerId: zod_1.z.uuid(),
10
+ });
11
+ exports.GetAdminPartnerQueryResponse = models_1.AdminPartnerDetailsResponseSchema;
12
+ exports.GetAdminPartnerQuery = (0, _common_1.defineContract)({
13
+ method: _common_1.HTTP_METHODS.GET,
14
+ path: admin_1.ADMIN_ROUTES.GET_PARTNER(':partnerId'),
15
+ summary: 'Get admin partner details',
16
+ request: {
17
+ params: exports.GetAdminPartnerQueryParams,
18
+ },
19
+ responses: {
20
+ 200: exports.GetAdminPartnerQueryResponse,
21
+ 401: _common_1.HttpErrorResponseSchema,
22
+ 403: _common_1.HttpErrorResponseSchema,
23
+ 404: _common_1.HttpErrorResponseSchema,
24
+ 500: _common_1.HttpErrorResponseSchema,
25
+ },
26
+ });