@arken/seer-protocol 0.1.4 → 0.1.6

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 (348) hide show
  1. package/.rush/temp/shrinkwrap-deps.json +10 -3
  2. package/build/area/area.models.d.ts +6 -0
  3. package/build/area/area.models.js +11 -0
  4. package/build/area/area.models.js.map +1 -0
  5. package/build/area/area.router.d.ts +274 -0
  6. package/build/area/area.router.js +59 -0
  7. package/build/area/area.router.js.map +1 -0
  8. package/build/area/area.schema.d.ts +241 -0
  9. package/build/area/area.schema.js +13 -0
  10. package/build/area/area.schema.js.map +1 -0
  11. package/build/area/area.types.d.ts +19 -0
  12. package/build/area/area.types.js +2 -0
  13. package/build/area/area.types.js.map +1 -0
  14. package/build/area/index.d.ts +4 -0
  15. package/build/area/index.js +5 -0
  16. package/build/area/index.js.map +1 -0
  17. package/build/asset/asset.models.d.ts +5 -0
  18. package/build/asset/asset.models.js +44 -0
  19. package/build/asset/asset.models.js.map +1 -0
  20. package/build/asset/asset.router.d.ts +189 -0
  21. package/build/asset/asset.router.js +41 -0
  22. package/build/asset/asset.router.js.map +1 -0
  23. package/build/asset/asset.schema.d.ts +204 -0
  24. package/build/asset/asset.schema.js +22 -0
  25. package/build/asset/asset.schema.js.map +1 -0
  26. package/build/asset/asset.types.d.ts +16 -0
  27. package/build/asset/asset.types.js +2 -0
  28. package/build/asset/asset.types.js.map +1 -0
  29. package/build/asset/index.d.ts +4 -0
  30. package/build/asset/index.js +5 -0
  31. package/build/asset/index.js.map +1 -0
  32. package/build/chain/chain.models.d.ts +6 -0
  33. package/build/chain/chain.models.js +42 -0
  34. package/build/chain/chain.models.js.map +1 -0
  35. package/build/chain/chain.router.d.ts +364 -0
  36. package/build/chain/chain.router.js +84 -0
  37. package/build/chain/chain.router.js.map +1 -0
  38. package/build/chain/chain.schema.d.ts +317 -0
  39. package/build/chain/chain.schema.js +56 -0
  40. package/build/chain/chain.schema.js.map +1 -0
  41. package/build/chain/chain.types.d.ts +19 -0
  42. package/build/chain/chain.types.js +2 -0
  43. package/build/chain/chain.types.js.map +1 -0
  44. package/build/chain/index.d.ts +4 -0
  45. package/build/chain/index.js +5 -0
  46. package/build/chain/index.js.map +1 -0
  47. package/build/character/character.models.d.ts +14 -0
  48. package/build/character/character.models.js +123 -0
  49. package/build/character/character.models.js.map +1 -0
  50. package/build/character/character.router.d.ts +945 -0
  51. package/build/character/character.router.js +246 -0
  52. package/build/character/character.router.js.map +1 -0
  53. package/build/character/character.schema.d.ts +1223 -0
  54. package/build/character/character.schema.js +70 -0
  55. package/build/character/character.schema.js.map +1 -0
  56. package/build/character/character.types.d.ts +47 -0
  57. package/build/character/character.types.js +2 -0
  58. package/build/character/character.types.js.map +1 -0
  59. package/build/character/index.d.ts +4 -0
  60. package/build/character/index.js +5 -0
  61. package/build/character/index.js.map +1 -0
  62. package/build/chat/chat.models.d.ts +4 -0
  63. package/build/chat/chat.models.js +35 -0
  64. package/build/chat/chat.models.js.map +1 -0
  65. package/build/chat/chat.router.d.ts +223 -0
  66. package/build/chat/chat.router.js +51 -0
  67. package/build/chat/chat.router.js.map +1 -0
  68. package/build/chat/chat.schema.d.ts +179 -0
  69. package/build/chat/chat.schema.js +32 -0
  70. package/build/chat/chat.schema.js.map +1 -0
  71. package/build/chat/chat.types.d.ts +13 -0
  72. package/build/chat/chat.types.js +2 -0
  73. package/build/chat/chat.types.js.map +1 -0
  74. package/build/chat/index.d.ts +4 -0
  75. package/build/chat/index.js +5 -0
  76. package/build/chat/index.js.map +1 -0
  77. package/build/collection/collection.models.d.ts +9 -0
  78. package/build/collection/collection.models.js +69 -0
  79. package/build/collection/collection.models.js.map +1 -0
  80. package/build/collection/collection.router.d.ts +361 -0
  81. package/build/collection/collection.router.js +71 -0
  82. package/build/collection/collection.router.js.map +1 -0
  83. package/build/collection/collection.schema.d.ts +660 -0
  84. package/build/collection/collection.schema.js +70 -0
  85. package/build/collection/collection.schema.js.map +1 -0
  86. package/build/collection/collection.types.d.ts +28 -0
  87. package/build/collection/collection.types.js +2 -0
  88. package/build/collection/collection.types.js.map +1 -0
  89. package/build/collection/index.d.ts +4 -0
  90. package/build/collection/index.js +5 -0
  91. package/build/collection/index.js.map +1 -0
  92. package/build/core/core.models.d.ts +123 -0
  93. package/build/core/core.models.js +811 -0
  94. package/build/core/core.models.js.map +1 -0
  95. package/build/core/core.router.d.ts +5297 -0
  96. package/build/core/core.router.js +1372 -0
  97. package/build/core/core.router.js.map +1 -0
  98. package/build/core/core.schema.d.ts +5808 -0
  99. package/build/core/core.schema.js +612 -0
  100. package/build/core/core.schema.js.map +1 -0
  101. package/build/core/core.types.d.ts +250 -0
  102. package/build/core/core.types.js +2 -0
  103. package/build/core/core.types.js.map +1 -0
  104. package/build/core/index.d.ts +4 -0
  105. package/build/core/index.js +5 -0
  106. package/build/core/index.js.map +1 -0
  107. package/build/evolution/evolution.models.d.ts +1 -0
  108. package/build/evolution/evolution.models.js +3 -0
  109. package/build/evolution/evolution.models.js.map +1 -0
  110. package/build/evolution/evolution.router.d.ts +244 -0
  111. package/build/evolution/evolution.router.js +112 -0
  112. package/build/evolution/evolution.router.js.map +1 -0
  113. package/build/evolution/evolution.schema.d.ts +1 -0
  114. package/build/evolution/evolution.schema.js +2 -0
  115. package/build/evolution/evolution.schema.js.map +1 -0
  116. package/build/evolution/evolution.types.d.ts +3 -0
  117. package/build/evolution/evolution.types.js +2 -0
  118. package/build/evolution/evolution.types.js.map +1 -0
  119. package/build/evolution/index.d.ts +4 -0
  120. package/build/evolution/index.js +4 -0
  121. package/build/evolution/index.js.map +1 -0
  122. package/build/game/game.models.d.ts +6 -0
  123. package/build/game/game.models.js +29 -0
  124. package/build/game/game.models.js.map +1 -0
  125. package/build/game/game.router.d.ts +428 -0
  126. package/build/game/game.router.js +90 -0
  127. package/build/game/game.router.js.map +1 -0
  128. package/build/game/game.schema.d.ts +339 -0
  129. package/build/game/game.schema.js +14 -0
  130. package/build/game/game.schema.js.map +1 -0
  131. package/build/game/game.types.d.ts +19 -0
  132. package/build/game/game.types.js +2 -0
  133. package/build/game/game.types.js.map +1 -0
  134. package/build/game/index.d.ts +4 -0
  135. package/build/game/index.js +4 -0
  136. package/build/game/index.js.map +1 -0
  137. package/build/index.d.ts +30 -0
  138. package/build/index.js +26 -0
  139. package/build/index.js.map +1 -0
  140. package/build/infinite/index.d.ts +4 -0
  141. package/build/infinite/index.js +4 -0
  142. package/build/infinite/index.js.map +1 -0
  143. package/build/infinite/infinite.models.d.ts +1 -0
  144. package/build/infinite/infinite.models.js +3 -0
  145. package/build/infinite/infinite.models.js.map +1 -0
  146. package/build/infinite/infinite.router.d.ts +95 -0
  147. package/build/infinite/infinite.router.js +40 -0
  148. package/build/infinite/infinite.router.js.map +1 -0
  149. package/build/infinite/infinite.schema.d.ts +1 -0
  150. package/build/infinite/infinite.schema.js +2 -0
  151. package/build/infinite/infinite.schema.js.map +1 -0
  152. package/build/infinite/infinite.types.d.ts +3 -0
  153. package/build/infinite/infinite.types.js +2 -0
  154. package/build/infinite/infinite.types.js.map +1 -0
  155. package/build/interface/index.d.ts +4 -0
  156. package/build/interface/index.js +5 -0
  157. package/build/interface/index.js.map +1 -0
  158. package/build/interface/interface.canonicalize.d.ts +2 -0
  159. package/build/interface/interface.canonicalize.js +241 -0
  160. package/build/interface/interface.canonicalize.js.map +1 -0
  161. package/build/interface/interface.models.d.ts +6 -0
  162. package/build/interface/interface.models.js +30 -0
  163. package/build/interface/interface.models.js.map +1 -0
  164. package/build/interface/interface.router.d.ts +472 -0
  165. package/build/interface/interface.router.js +113 -0
  166. package/build/interface/interface.router.js.map +1 -0
  167. package/build/interface/interface.schema.d.ts +305 -0
  168. package/build/interface/interface.schema.js +36 -0
  169. package/build/interface/interface.schema.js.map +1 -0
  170. package/build/interface/interface.types.d.ts +18 -0
  171. package/build/interface/interface.types.js +2 -0
  172. package/build/interface/interface.types.js.map +1 -0
  173. package/build/isles/index.d.ts +4 -0
  174. package/build/isles/index.js +4 -0
  175. package/build/isles/index.js.map +1 -0
  176. package/build/isles/isles.models.d.ts +1 -0
  177. package/build/isles/isles.models.js +3 -0
  178. package/build/isles/isles.models.js.map +1 -0
  179. package/build/isles/isles.router.d.ts +95 -0
  180. package/build/isles/isles.router.js +40 -0
  181. package/build/isles/isles.router.js.map +1 -0
  182. package/build/isles/isles.schema.d.ts +1 -0
  183. package/build/isles/isles.schema.js +2 -0
  184. package/build/isles/isles.schema.js.map +1 -0
  185. package/build/isles/isles.types.d.ts +3 -0
  186. package/build/isles/isles.types.js +2 -0
  187. package/build/isles/isles.types.js.map +1 -0
  188. package/build/item/index.d.ts +4 -0
  189. package/build/item/index.js +5 -0
  190. package/build/item/index.js.map +1 -0
  191. package/build/item/item.models.d.ts +16 -0
  192. package/build/item/item.models.js +101 -0
  193. package/build/item/item.models.js.map +1 -0
  194. package/build/item/item.router.d.ts +263 -0
  195. package/build/item/item.router.js +70 -0
  196. package/build/item/item.router.js.map +1 -0
  197. package/build/item/item.schema.d.ts +765 -0
  198. package/build/item/item.schema.js +86 -0
  199. package/build/item/item.schema.js.map +1 -0
  200. package/build/item/item.types.d.ts +54 -0
  201. package/build/item/item.types.js +2 -0
  202. package/build/item/item.types.js.map +1 -0
  203. package/build/job/index.d.ts +4 -0
  204. package/build/job/index.js +5 -0
  205. package/build/job/index.js.map +1 -0
  206. package/build/job/job.models.d.ts +3 -0
  207. package/build/job/job.models.js +9 -0
  208. package/build/job/job.models.js.map +1 -0
  209. package/build/job/job.router.d.ts +146 -0
  210. package/build/job/job.router.js +32 -0
  211. package/build/job/job.router.js.map +1 -0
  212. package/build/job/job.schema.d.ts +66 -0
  213. package/build/job/job.schema.js +7 -0
  214. package/build/job/job.schema.js.map +1 -0
  215. package/build/job/job.types.d.ts +15 -0
  216. package/build/job/job.types.js +2 -0
  217. package/build/job/job.types.js.map +1 -0
  218. package/build/market/index.d.ts +4 -0
  219. package/build/market/index.js +5 -0
  220. package/build/market/index.js.map +1 -0
  221. package/build/market/market.models.d.ts +14 -0
  222. package/build/market/market.models.js +98 -0
  223. package/build/market/market.models.js.map +1 -0
  224. package/build/market/market.router.d.ts +230 -0
  225. package/build/market/market.router.js +56 -0
  226. package/build/market/market.router.js.map +1 -0
  227. package/build/market/market.schema.d.ts +937 -0
  228. package/build/market/market.schema.js +110 -0
  229. package/build/market/market.schema.js.map +1 -0
  230. package/build/market/market.types.d.ts +48 -0
  231. package/build/market/market.types.js +2 -0
  232. package/build/market/market.types.js.map +1 -0
  233. package/build/oasis/index.d.ts +4 -0
  234. package/build/oasis/index.js +4 -0
  235. package/build/oasis/index.js.map +1 -0
  236. package/build/oasis/oasis.models.d.ts +1 -0
  237. package/build/oasis/oasis.models.js +3 -0
  238. package/build/oasis/oasis.models.js.map +1 -0
  239. package/build/oasis/oasis.router.d.ts +91 -0
  240. package/build/oasis/oasis.router.js +52 -0
  241. package/build/oasis/oasis.router.js.map +1 -0
  242. package/build/oasis/oasis.schema.d.ts +1 -0
  243. package/build/oasis/oasis.schema.js +2 -0
  244. package/build/oasis/oasis.schema.js.map +1 -0
  245. package/build/oasis/oasis.types.d.ts +3 -0
  246. package/build/oasis/oasis.types.js +2 -0
  247. package/build/oasis/oasis.types.js.map +1 -0
  248. package/build/package.json +36 -0
  249. package/build/product/index.d.ts +4 -0
  250. package/build/product/index.js +5 -0
  251. package/build/product/index.js.map +1 -0
  252. package/build/product/product.models.d.ts +4 -0
  253. package/build/product/product.models.js +113 -0
  254. package/build/product/product.models.js.map +1 -0
  255. package/build/product/product.router.d.ts +447 -0
  256. package/build/product/product.router.js +71 -0
  257. package/build/product/product.router.js.map +1 -0
  258. package/build/product/product.schema.d.ts +640 -0
  259. package/build/product/product.schema.js +154 -0
  260. package/build/product/product.schema.js.map +1 -0
  261. package/build/product/product.types.d.ts +27 -0
  262. package/build/product/product.types.js +2 -0
  263. package/build/product/product.types.js.map +1 -0
  264. package/build/profile/index.d.ts +4 -0
  265. package/build/profile/index.js +5 -0
  266. package/build/profile/index.js.map +1 -0
  267. package/build/profile/profile.models.d.ts +2 -0
  268. package/build/profile/profile.models.js +165 -0
  269. package/build/profile/profile.models.js.map +1 -0
  270. package/build/profile/profile.router.d.ts +163 -0
  271. package/build/profile/profile.router.js +54 -0
  272. package/build/profile/profile.router.js.map +1 -0
  273. package/build/profile/profile.schema.d.ts +1 -0
  274. package/build/profile/profile.schema.js +201 -0
  275. package/build/profile/profile.schema.js.map +1 -0
  276. package/build/profile/profile.types.d.ts +15 -0
  277. package/build/profile/profile.types.js +2 -0
  278. package/build/profile/profile.types.js.map +1 -0
  279. package/build/raffle/index.d.ts +4 -0
  280. package/build/raffle/index.js +5 -0
  281. package/build/raffle/index.js.map +1 -0
  282. package/build/raffle/raffle.models.d.ts +6 -0
  283. package/build/raffle/raffle.models.js +36 -0
  284. package/build/raffle/raffle.models.js.map +1 -0
  285. package/build/raffle/raffle.router.d.ts +299 -0
  286. package/build/raffle/raffle.router.js +71 -0
  287. package/build/raffle/raffle.router.js.map +1 -0
  288. package/build/raffle/raffle.schema.d.ts +261 -0
  289. package/build/raffle/raffle.schema.js +21 -0
  290. package/build/raffle/raffle.schema.js.map +1 -0
  291. package/build/raffle/raffle.types.d.ts +24 -0
  292. package/build/raffle/raffle.types.js +2 -0
  293. package/build/raffle/raffle.types.js.map +1 -0
  294. package/build/router.d.ts +10755 -0
  295. package/build/router.js +87 -0
  296. package/build/router.js.map +1 -0
  297. package/build/schema.d.ts +279 -0
  298. package/build/schema.js +157 -0
  299. package/build/schema.js.map +1 -0
  300. package/build/skill/index.d.ts +4 -0
  301. package/build/skill/index.js +5 -0
  302. package/build/skill/index.js.map +1 -0
  303. package/build/skill/skill.models.d.ts +9 -0
  304. package/build/skill/skill.models.js +9 -0
  305. package/build/skill/skill.models.js.map +1 -0
  306. package/build/skill/skill.router.d.ts +659 -0
  307. package/build/skill/skill.router.js +152 -0
  308. package/build/skill/skill.router.js.map +1 -0
  309. package/build/skill/skill.schema.d.ts +536 -0
  310. package/build/skill/skill.schema.js +38 -0
  311. package/build/skill/skill.schema.js.map +1 -0
  312. package/build/skill/skill.types.d.ts +28 -0
  313. package/build/skill/skill.types.js +2 -0
  314. package/build/skill/skill.types.js.map +1 -0
  315. package/build/trek/index.d.ts +4 -0
  316. package/build/trek/index.js +4 -0
  317. package/build/trek/index.js.map +1 -0
  318. package/build/trek/trek.models.d.ts +1 -0
  319. package/build/trek/trek.models.js +2 -0
  320. package/build/trek/trek.models.js.map +1 -0
  321. package/build/trek/trek.router.d.ts +86 -0
  322. package/build/trek/trek.router.js +43 -0
  323. package/build/trek/trek.router.js.map +1 -0
  324. package/build/trek/trek.schema.d.ts +1 -0
  325. package/build/trek/trek.schema.js +2 -0
  326. package/build/trek/trek.schema.js.map +1 -0
  327. package/build/trek/trek.types.d.ts +1 -0
  328. package/build/trek/trek.types.js +2 -0
  329. package/build/trek/trek.types.js.map +1 -0
  330. package/build/types.d.ts +187 -0
  331. package/build/types.js +29 -0
  332. package/build/types.js.map +1 -0
  333. package/build/video/index.d.ts +4 -0
  334. package/build/video/index.js +5 -0
  335. package/build/video/index.js.map +1 -0
  336. package/build/video/video.models.d.ts +7 -0
  337. package/build/video/video.models.js +19 -0
  338. package/build/video/video.models.js.map +1 -0
  339. package/build/video/video.router.d.ts +563 -0
  340. package/build/video/video.router.js +112 -0
  341. package/build/video/video.router.js.map +1 -0
  342. package/build/video/video.schema.d.ts +446 -0
  343. package/build/video/video.schema.js +31 -0
  344. package/build/video/video.schema.js.map +1 -0
  345. package/build/video/video.types.d.ts +27 -0
  346. package/build/video/video.types.js +2 -0
  347. package/build/video/video.types.js.map +1 -0
  348. package/package.json +11 -4
@@ -0,0 +1,201 @@
1
+ import { z, ObjectId, Entity } from '../schema';
2
+ import { Character } from '../character/character.schema';
3
+ const RankingStatSchema = z.object({
4
+ total: z.number(),
5
+ position: z.number(),
6
+ });
7
+ const RankingSchema = z.object({
8
+ orbs: RankingStatSchema,
9
+ wins: RankingStatSchema,
10
+ kills: RankingStatSchema,
11
+ deaths: RankingStatSchema,
12
+ points: RankingStatSchema,
13
+ rounds: RankingStatSchema,
14
+ evolves: RankingStatSchema,
15
+ rewards: RankingStatSchema,
16
+ powerups: RankingStatSchema,
17
+ revenges: RankingStatSchema,
18
+ winRatio: RankingStatSchema,
19
+ timeSpent: RankingStatSchema,
20
+ averageLatency: RankingStatSchema,
21
+ killDeathRatio: RankingStatSchema,
22
+ roundPointRatio: RankingStatSchema,
23
+ });
24
+ const ServerDataSchema = z.object({
25
+ orbs: z.number().optional(),
26
+ wins: z.number().optional(),
27
+ kills: z.number().optional(),
28
+ deaths: z.number().optional(),
29
+ points: z.number().optional(),
30
+ rounds: z.number().optional(),
31
+ evolves: z.number().optional(),
32
+ ranking: RankingSchema.optional(),
33
+ rewards: z.number().optional(),
34
+ earnings: z.number().optional(),
35
+ powerups: z.number().optional(),
36
+ revenges: z.number().optional(),
37
+ winRatio: z.number().optional(),
38
+ timeSpent: z.number().optional(),
39
+ winStreak: z.number().optional(),
40
+ averageLatency: z
41
+ .number()
42
+ .nullable()
43
+ .optional(),
44
+ killDeathRatio: z.number().optional(),
45
+ roundPointRatio: z.number().optional(),
46
+ });
47
+ export const Profile = Entity.merge(z.object({
48
+ accountId: ObjectId.optional(),
49
+ partyId: ObjectId.optional(),
50
+ points: z.number().optional(),
51
+ telegramUserId: z.number().optional(),
52
+ interactions: z.number().default(0),
53
+ activityRating: z.number().default(0),
54
+ address: z
55
+ .string()
56
+ .max(100)
57
+ .optional(),
58
+ avatar: z
59
+ .string()
60
+ .max(100)
61
+ .optional(),
62
+ roleId: ObjectId.optional(),
63
+ privateKey: z
64
+ .string()
65
+ .max(300)
66
+ .optional(),
67
+ signature: z
68
+ .string()
69
+ .max(200)
70
+ .optional(),
71
+ chainId: ObjectId.optional(),
72
+ teamId: ObjectId.optional(),
73
+ characterId: ObjectId.optional(),
74
+ isBanned: z.boolean().optional(),
75
+ banExpireDate: z.date().optional(),
76
+ banReason: z.string().optional(),
77
+ mode: z
78
+ .string()
79
+ .default('gamer')
80
+ .optional(),
81
+ bio: z.string().optional(),
82
+ banner: z
83
+ .string()
84
+ .url()
85
+ .optional(),
86
+ friends: z
87
+ .array(z.object({
88
+ friend: z.lazy(() => Profile),
89
+ meta: z.any().optional(),
90
+ }))
91
+ .optional(),
92
+ achievements: z
93
+ .array(z.object({
94
+ achievementId: ObjectId,
95
+ meta: z.any().optional(),
96
+ current: z.number().default(0),
97
+ }))
98
+ .optional(),
99
+ badges: z
100
+ .array(z.object({
101
+ badgeId: ObjectId,
102
+ meta: z.any().optional(),
103
+ }))
104
+ .optional(),
105
+ character: Character.optional(),
106
+ characters: z.array(ObjectId.optional()).optional(),
107
+ settings: z
108
+ .object({
109
+ warp: z.any().default({}),
110
+ designer: z.any().default({}),
111
+ privacy: z.enum(['public', 'private', 'friends-only']).default('public'),
112
+ notifications: z.boolean().default(true),
113
+ })
114
+ .optional(),
115
+ stats: z
116
+ .object({
117
+ gamesOwned: z
118
+ .number()
119
+ .int()
120
+ .nonnegative()
121
+ .default(0),
122
+ playedMinutes: z
123
+ .number()
124
+ .nonnegative()
125
+ .default(0),
126
+ leveledUpCount: z
127
+ .number()
128
+ .int()
129
+ .nonnegative()
130
+ .default(0),
131
+ xpEarnedCount: z
132
+ .number()
133
+ .int()
134
+ .nonnegative()
135
+ .default(0),
136
+ craftedItemCount: z
137
+ .number()
138
+ .int()
139
+ .nonnegative()
140
+ .default(0),
141
+ equippedItemCount: z
142
+ .number()
143
+ .int()
144
+ .nonnegative()
145
+ .default(0),
146
+ transferredInCount: z
147
+ .number()
148
+ .int()
149
+ .nonnegative()
150
+ .default(0),
151
+ transferredOutCount: z
152
+ .number()
153
+ .int()
154
+ .nonnegative()
155
+ .default(0),
156
+ marketTradeSoldCount: z
157
+ .number()
158
+ .int()
159
+ .nonnegative()
160
+ .default(0),
161
+ marketTradeListedCount: z
162
+ .number()
163
+ .int()
164
+ .nonnegative()
165
+ .default(0),
166
+ evolution: z
167
+ .object({
168
+ hashes: z.array(z.string()).default([]),
169
+ overall: z
170
+ .object({
171
+ orbs: z.number().optional(),
172
+ wins: z.number().optional(),
173
+ kills: z.number().optional(),
174
+ deaths: z.number().optional(),
175
+ points: z.number().optional(),
176
+ rounds: z.number().optional(),
177
+ evolves: z.number().optional(),
178
+ ranking: RankingSchema.optional(),
179
+ rewards: z.number().optional(),
180
+ earnings: z.number().optional(),
181
+ powerups: z.number().optional(),
182
+ revenges: z.number().optional(),
183
+ winRatio: z.number().optional(),
184
+ timeSpent: z.number().optional(),
185
+ winStreak: z.number().optional(),
186
+ averageLatency: z
187
+ .number()
188
+ .optional()
189
+ .nullable(),
190
+ killDeathRatio: z.number().optional(),
191
+ roundPointRatio: z.number().optional(),
192
+ })
193
+ .default({}),
194
+ servers: z.record(ServerDataSchema).optional(),
195
+ lastUpdated: z.number().optional(),
196
+ })
197
+ .optional(),
198
+ })
199
+ .optional(),
200
+ }));
201
+ //# sourceMappingURL=profile.schema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"profile.schema.js","sourceRoot":"","sources":["../../profile/profile.schema.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AAChD,OAAO,EAAE,SAAS,EAAE,MAAM,+BAA+B,CAAC;AAG1D,MAAM,iBAAiB,GAAG,CAAC,CAAC,MAAM,CAAC;IACjC,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;IACjB,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE;CACrB,CAAC,CAAC;AAGH,MAAM,aAAa,GAAG,CAAC,CAAC,MAAM,CAAC;IAC7B,IAAI,EAAE,iBAAiB;IACvB,IAAI,EAAE,iBAAiB;IACvB,KAAK,EAAE,iBAAiB;IACxB,MAAM,EAAE,iBAAiB;IACzB,MAAM,EAAE,iBAAiB;IACzB,MAAM,EAAE,iBAAiB;IACzB,OAAO,EAAE,iBAAiB;IAC1B,OAAO,EAAE,iBAAiB;IAC1B,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,MAAM,EAAE,CAAC,QAAQ,EAAE;gBAChC,cAAc,EAAE,CAAC;qBACd,MAAM,EAAE;qBACR,QAAQ,EAAE;qBACV,QAAQ,EAAE;gBACb,cAAc,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;gBACrC,eAAe,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;aACvC,CAAC;iBACD,OAAO,CAAC,EAAE,CAAC;YACd,OAAO,EAAE,CAAC,CAAC,MAAM,CAAC,gBAAgB,CAAC,CAAC,QAAQ,EAAE;YAC9C,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;SACnC,CAAC;aACD,QAAQ,EAAE;KACd,CAAC;SACD,QAAQ,EAAE;CACd,CAAC,CACH,CAAC"}
@@ -0,0 +1,15 @@
1
+ import { z } from 'zod';
2
+ import * as schema from './profile.schema';
3
+ import { Document, Model } from '@arken/node/mongo';
4
+ import type { RouterContext } from '../types';
5
+ import type { inferRouterInputs, inferRouterOutputs } from '@trpc/server';
6
+ import type { Router } from './profile.router';
7
+ export type * from './profile.router';
8
+ export type { RouterContext };
9
+ export type Profile = z.infer<typeof schema.Profile>;
10
+ export type ProfileDocument = Profile & Document;
11
+ export type Mappings = {
12
+ Profile: Model<ProfileDocument>;
13
+ };
14
+ export type RouterInput = inferRouterInputs<Router>;
15
+ export type RouterOutput = inferRouterOutputs<Router>;
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=profile.types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"profile.types.js","sourceRoot":"","sources":["../../profile/profile.types.ts"],"names":[],"mappings":""}
@@ -0,0 +1,4 @@
1
+ export * as Types from './raffle.types';
2
+ export * as Models from './raffle.models';
3
+ export * as Schemas from './raffle.schema';
4
+ export * from './raffle.router';
@@ -0,0 +1,5 @@
1
+ export * as Types from './raffle.types';
2
+ export * as Models from './raffle.models';
3
+ export * as Schemas from './raffle.schema';
4
+ export * from './raffle.router';
5
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../raffle/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,gBAAgB,CAAC;AACxC,OAAO,KAAK,MAAM,MAAM,iBAAiB,CAAC;AAC1C,OAAO,KAAK,OAAO,MAAM,iBAAiB,CAAC;AAC3C,cAAc,iBAAiB,CAAC"}
@@ -0,0 +1,6 @@
1
+ import * as mongo from '@arken/node/mongo';
2
+ import type * as Types from './raffle.types';
3
+ export declare const Raffle: mongo.Model<any> | mongo.Model<Types.RaffleDocument>;
4
+ export declare const RaffleRequirement: mongo.Model<any> | mongo.Model<Types.RaffleRequirementDocument>;
5
+ export declare const RaffleReward: mongo.Model<any> | mongo.Model<Types.RaffleRewardDocument>;
6
+ export declare const RaffleEntry: mongo.Model<any> | mongo.Model<Types.RaffleEntryDocument>;
@@ -0,0 +1,36 @@
1
+ import * as mongo from '@arken/node/mongo';
2
+ export const Raffle = mongo.createModel('Raffle', {
3
+ content: { type: String, required: true },
4
+ rewards: [{ type: mongo.Schema.Types.ObjectId, ref: 'RaffleReward' }],
5
+ }, {
6
+ virtuals: [
7
+ {
8
+ name: 'raffleRequirements',
9
+ ref: 'RaffleRequirement',
10
+ localField: '_id',
11
+ foreignField: 'raffleId',
12
+ },
13
+ {
14
+ name: 'raffleEntries',
15
+ ref: 'RaffleEntry',
16
+ localField: '_id',
17
+ foreignField: 'raffleId',
18
+ },
19
+ ],
20
+ });
21
+ export const RaffleRequirement = mongo.createModel('RaffleRequirement', {
22
+ amount: { type: Number, required: true },
23
+ raffleRewardId: { type: mongo.Schema.Types.ObjectId, ref: 'RaffleReward' },
24
+ });
25
+ export const RaffleReward = mongo.createModel('RaffleReward', {
26
+ raffleId: { type: mongo.Schema.Types.ObjectId, ref: 'Raffle' },
27
+ winnerId: { type: mongo.Schema.Types.ObjectId, ref: 'Profile' },
28
+ requirements: [{ type: mongo.Schema.Types.ObjectId, ref: 'RaffleRequirement' }],
29
+ entries: [{ type: mongo.Schema.Types.ObjectId, ref: 'RaffleEntry' }],
30
+ });
31
+ export const RaffleEntry = mongo.createModel('RaffleEntry', {
32
+ amount: { type: Number, required: true },
33
+ raffleRewardId: { type: mongo.Schema.Types.ObjectId, ref: 'RaffleReward' },
34
+ raffleId: { type: mongo.Schema.Types.ObjectId, ref: 'Raffle' },
35
+ });
36
+ //# sourceMappingURL=raffle.models.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"raffle.models.js","sourceRoot":"","sources":["../../raffle/raffle.models.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,mBAAmB,CAAC;AAG3C,MAAM,CAAC,MAAM,MAAM,GAAG,KAAK,CAAC,WAAW,CACrC,QAAQ,EACR;IACE,OAAO,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE;IACzC,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,QAAQ,EAAE,GAAG,EAAE,cAAc,EAAE,CAAC;CACtE,EACD;IACE,QAAQ,EAAE;QACR;YACE,IAAI,EAAE,oBAAoB;YAC1B,GAAG,EAAE,mBAAmB;YACxB,UAAU,EAAE,KAAK;YACjB,YAAY,EAAE,UAAU;SACzB;QACD;YACE,IAAI,EAAE,eAAe;YACrB,GAAG,EAAE,aAAa;YAClB,UAAU,EAAE,KAAK;YACjB,YAAY,EAAE,UAAU;SACzB;KACF;CACF,CACF,CAAC;AAEF,MAAM,CAAC,MAAM,iBAAiB,GAAG,KAAK,CAAC,WAAW,CAAkC,mBAAmB,EAAE;IACvG,MAAM,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE;IACxC,cAAc,EAAE,EAAE,IAAI,EAAE,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,QAAQ,EAAE,GAAG,EAAE,cAAc,EAAE;CAC3E,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,YAAY,GAAG,KAAK,CAAC,WAAW,CAA6B,cAAc,EAAE;IACxF,QAAQ,EAAE,EAAE,IAAI,EAAE,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,QAAQ,EAAE,GAAG,EAAE,QAAQ,EAAE;IAC9D,QAAQ,EAAE,EAAE,IAAI,EAAE,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,QAAQ,EAAE,GAAG,EAAE,SAAS,EAAE;IAC/D,YAAY,EAAE,CAAC,EAAE,IAAI,EAAE,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,QAAQ,EAAE,GAAG,EAAE,mBAAmB,EAAE,CAAC;IAC/E,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,QAAQ,EAAE,GAAG,EAAE,aAAa,EAAE,CAAC;CACrE,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,WAAW,GAAG,KAAK,CAAC,WAAW,CAA4B,aAAa,EAAE;IACrF,MAAM,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE;IACxC,cAAc,EAAE,EAAE,IAAI,EAAE,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,QAAQ,EAAE,GAAG,EAAE,cAAc,EAAE;IAC1E,QAAQ,EAAE,EAAE,IAAI,EAAE,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,QAAQ,EAAE,GAAG,EAAE,QAAQ,EAAE;CAC/D,CAAC,CAAC"}
@@ -0,0 +1,299 @@
1
+ import { z as zod } from 'zod';
2
+ import { inferRouterInputs, inferRouterOutputs } from '@trpc/server';
3
+ import type { RouterContext } from '../types';
4
+ export declare const z: typeof zod;
5
+ export declare const t: {
6
+ _config: import("@trpc/server/dist/unstable-core-do-not-import").RootConfig<{
7
+ ctx: RouterContext;
8
+ meta: object;
9
+ errorShape: import("@trpc/server/dist/unstable-core-do-not-import").DefaultErrorShape;
10
+ transformer: false;
11
+ }>;
12
+ procedure: import("@trpc/server/dist/unstable-core-do-not-import").ProcedureBuilder<RouterContext, object, object, typeof import("@trpc/server/dist/unstable-core-do-not-import").unsetMarker, typeof import("@trpc/server/dist/unstable-core-do-not-import").unsetMarker, typeof import("@trpc/server/dist/unstable-core-do-not-import").unsetMarker, typeof import("@trpc/server/dist/unstable-core-do-not-import").unsetMarker, false>;
13
+ middleware: <$ContextOverrides>(fn: import("@trpc/server/dist/unstable-core-do-not-import").MiddlewareFunction<RouterContext, object, object, $ContextOverrides, unknown>) => import("@trpc/server/dist/unstable-core-do-not-import").MiddlewareBuilder<RouterContext, object, $ContextOverrides, unknown>;
14
+ router: {
15
+ <TInput extends import("@trpc/server").RouterRecord>(input: TInput): import("@trpc/server/dist/unstable-core-do-not-import").BuiltRouter<{
16
+ ctx: RouterContext;
17
+ meta: object;
18
+ errorShape: import("@trpc/server/dist/unstable-core-do-not-import").DefaultErrorShape;
19
+ transformer: false;
20
+ }, TInput>;
21
+ <TInput extends import("@trpc/server/dist/unstable-core-do-not-import").CreateRouterOptions>(input: TInput): import("@trpc/server/dist/unstable-core-do-not-import").BuiltRouter<{
22
+ ctx: RouterContext;
23
+ meta: object;
24
+ errorShape: import("@trpc/server/dist/unstable-core-do-not-import").DefaultErrorShape;
25
+ transformer: false;
26
+ }, import("@trpc/server/dist/unstable-core-do-not-import").DecorateCreateRouterOptions<TInput>>;
27
+ };
28
+ mergeRouters: typeof import("@trpc/server/dist/unstable-core-do-not-import").mergeRouters;
29
+ createCallerFactory: <TRecord extends import("@trpc/server").RouterRecord>(router: Pick<import("@trpc/server/dist/unstable-core-do-not-import").Router<{
30
+ ctx: RouterContext;
31
+ meta: object;
32
+ errorShape: import("@trpc/server/dist/unstable-core-do-not-import").DefaultErrorShape;
33
+ transformer: false;
34
+ }, TRecord>, "_def">) => import("@trpc/server/dist/unstable-core-do-not-import").RouterCaller<{
35
+ ctx: RouterContext;
36
+ meta: object;
37
+ errorShape: import("@trpc/server/dist/unstable-core-do-not-import").DefaultErrorShape;
38
+ transformer: false;
39
+ }, TRecord>;
40
+ };
41
+ export declare const router: {
42
+ <TInput extends import("@trpc/server").RouterRecord>(input: TInput): import("@trpc/server/dist/unstable-core-do-not-import").BuiltRouter<{
43
+ ctx: RouterContext;
44
+ meta: object;
45
+ errorShape: import("@trpc/server/dist/unstable-core-do-not-import").DefaultErrorShape;
46
+ transformer: false;
47
+ }, TInput>;
48
+ <TInput extends import("@trpc/server/dist/unstable-core-do-not-import").CreateRouterOptions>(input: TInput): import("@trpc/server/dist/unstable-core-do-not-import").BuiltRouter<{
49
+ ctx: RouterContext;
50
+ meta: object;
51
+ errorShape: import("@trpc/server/dist/unstable-core-do-not-import").DefaultErrorShape;
52
+ transformer: false;
53
+ }, import("@trpc/server/dist/unstable-core-do-not-import").DecorateCreateRouterOptions<TInput>>;
54
+ };
55
+ export declare const procedure: import("@trpc/server/dist/unstable-core-do-not-import").ProcedureBuilder<RouterContext, object, object, typeof import("@trpc/server/dist/unstable-core-do-not-import").unsetMarker, typeof import("@trpc/server/dist/unstable-core-do-not-import").unsetMarker, typeof import("@trpc/server/dist/unstable-core-do-not-import").unsetMarker, typeof import("@trpc/server/dist/unstable-core-do-not-import").unsetMarker, false>;
56
+ export declare const createRouter: () => import("@trpc/server/dist/unstable-core-do-not-import").BuiltRouter<{
57
+ ctx: RouterContext;
58
+ meta: object;
59
+ errorShape: import("@trpc/server/dist/unstable-core-do-not-import").DefaultErrorShape;
60
+ transformer: false;
61
+ }, {
62
+ getRaffle: import("@trpc/server").TRPCQueryProcedure<{
63
+ input: {
64
+ raffleId?: string;
65
+ };
66
+ output: any;
67
+ }>;
68
+ createRaffle: import("@trpc/server").TRPCMutationProcedure<{
69
+ input: {
70
+ name?: string;
71
+ key?: string;
72
+ id?: string | import("mongoose").Types.ObjectId;
73
+ data?: any;
74
+ description?: string;
75
+ applicationId?: string | import("mongoose").Types.ObjectId;
76
+ createdDate?: Date;
77
+ updatedDate?: Date;
78
+ status?: "Active" | "Paused" | "Pending" | "Archived";
79
+ ownerId?: string | import("mongoose").Types.ObjectId;
80
+ meta?: any;
81
+ merkleLeaf?: string;
82
+ merkleIndex?: number;
83
+ createdById?: string | import("mongoose").Types.ObjectId;
84
+ editedById?: string | import("mongoose").Types.ObjectId;
85
+ deletedById?: string | import("mongoose").Types.ObjectId;
86
+ deletedDate?: Date;
87
+ content?: string;
88
+ rewards?: (string | import("mongoose").Types.ObjectId)[];
89
+ };
90
+ output: any;
91
+ }>;
92
+ updateRaffle: import("@trpc/server").TRPCMutationProcedure<{
93
+ input: {
94
+ data?: {
95
+ name?: string;
96
+ key?: string;
97
+ id?: string | import("mongoose").Types.ObjectId;
98
+ data?: any;
99
+ description?: string;
100
+ applicationId?: string | import("mongoose").Types.ObjectId;
101
+ createdDate?: Date;
102
+ updatedDate?: Date;
103
+ status?: "Active" | "Paused" | "Pending" | "Archived";
104
+ ownerId?: string | import("mongoose").Types.ObjectId;
105
+ meta?: any;
106
+ merkleLeaf?: string;
107
+ merkleIndex?: number;
108
+ createdById?: string | import("mongoose").Types.ObjectId;
109
+ editedById?: string | import("mongoose").Types.ObjectId;
110
+ deletedById?: string | import("mongoose").Types.ObjectId;
111
+ deletedDate?: Date;
112
+ content?: string;
113
+ rewards?: (string | import("mongoose").Types.ObjectId)[];
114
+ };
115
+ raffleId?: string;
116
+ };
117
+ output: any;
118
+ }>;
119
+ getRaffleRequirement: import("@trpc/server").TRPCQueryProcedure<{
120
+ input: {
121
+ raffleRequirementId?: string;
122
+ };
123
+ output: any;
124
+ }>;
125
+ createRaffleRequirement: import("@trpc/server").TRPCMutationProcedure<{
126
+ input: {
127
+ name?: string;
128
+ key?: string;
129
+ id?: string | import("mongoose").Types.ObjectId;
130
+ data?: any;
131
+ description?: string;
132
+ applicationId?: string | import("mongoose").Types.ObjectId;
133
+ createdDate?: Date;
134
+ updatedDate?: Date;
135
+ status?: "Active" | "Paused" | "Pending" | "Archived";
136
+ ownerId?: string | import("mongoose").Types.ObjectId;
137
+ meta?: any;
138
+ merkleLeaf?: string;
139
+ merkleIndex?: number;
140
+ createdById?: string | import("mongoose").Types.ObjectId;
141
+ editedById?: string | import("mongoose").Types.ObjectId;
142
+ deletedById?: string | import("mongoose").Types.ObjectId;
143
+ deletedDate?: Date;
144
+ amount?: number;
145
+ raffleRewardId?: string | import("mongoose").Types.ObjectId;
146
+ };
147
+ output: any;
148
+ }>;
149
+ updateRaffleRequirement: import("@trpc/server").TRPCMutationProcedure<{
150
+ input: {
151
+ data?: {
152
+ name?: string;
153
+ key?: string;
154
+ id?: string | import("mongoose").Types.ObjectId;
155
+ data?: any;
156
+ description?: string;
157
+ applicationId?: string | import("mongoose").Types.ObjectId;
158
+ createdDate?: Date;
159
+ updatedDate?: Date;
160
+ status?: "Active" | "Paused" | "Pending" | "Archived";
161
+ ownerId?: string | import("mongoose").Types.ObjectId;
162
+ meta?: any;
163
+ merkleLeaf?: string;
164
+ merkleIndex?: number;
165
+ createdById?: string | import("mongoose").Types.ObjectId;
166
+ editedById?: string | import("mongoose").Types.ObjectId;
167
+ deletedById?: string | import("mongoose").Types.ObjectId;
168
+ deletedDate?: Date;
169
+ amount?: number;
170
+ raffleRewardId?: string | import("mongoose").Types.ObjectId;
171
+ };
172
+ raffleRequirementId?: string;
173
+ };
174
+ output: any;
175
+ }>;
176
+ getRaffleReward: import("@trpc/server").TRPCQueryProcedure<{
177
+ input: {
178
+ raffleRewardId?: string;
179
+ };
180
+ output: any;
181
+ }>;
182
+ createRaffleReward: import("@trpc/server").TRPCMutationProcedure<{
183
+ input: {
184
+ name?: string;
185
+ key?: string;
186
+ id?: string | import("mongoose").Types.ObjectId;
187
+ entries?: (string | import("mongoose").Types.ObjectId)[];
188
+ data?: any;
189
+ description?: string;
190
+ applicationId?: string | import("mongoose").Types.ObjectId;
191
+ createdDate?: Date;
192
+ updatedDate?: Date;
193
+ status?: "Active" | "Paused" | "Pending" | "Archived";
194
+ ownerId?: string | import("mongoose").Types.ObjectId;
195
+ meta?: any;
196
+ merkleLeaf?: string;
197
+ merkleIndex?: number;
198
+ createdById?: string | import("mongoose").Types.ObjectId;
199
+ editedById?: string | import("mongoose").Types.ObjectId;
200
+ deletedById?: string | import("mongoose").Types.ObjectId;
201
+ deletedDate?: Date;
202
+ raffleId?: string | import("mongoose").Types.ObjectId;
203
+ winnerId?: string | import("mongoose").Types.ObjectId;
204
+ requirements?: (string | import("mongoose").Types.ObjectId)[];
205
+ };
206
+ output: any;
207
+ }>;
208
+ updateRaffleReward: import("@trpc/server").TRPCMutationProcedure<{
209
+ input: {
210
+ data?: {
211
+ name?: string;
212
+ key?: string;
213
+ id?: string | import("mongoose").Types.ObjectId;
214
+ entries?: (string | import("mongoose").Types.ObjectId)[];
215
+ data?: any;
216
+ description?: string;
217
+ applicationId?: string | import("mongoose").Types.ObjectId;
218
+ createdDate?: Date;
219
+ updatedDate?: Date;
220
+ status?: "Active" | "Paused" | "Pending" | "Archived";
221
+ ownerId?: string | import("mongoose").Types.ObjectId;
222
+ meta?: any;
223
+ merkleLeaf?: string;
224
+ merkleIndex?: number;
225
+ createdById?: string | import("mongoose").Types.ObjectId;
226
+ editedById?: string | import("mongoose").Types.ObjectId;
227
+ deletedById?: string | import("mongoose").Types.ObjectId;
228
+ deletedDate?: Date;
229
+ raffleId?: string | import("mongoose").Types.ObjectId;
230
+ winnerId?: string | import("mongoose").Types.ObjectId;
231
+ requirements?: (string | import("mongoose").Types.ObjectId)[];
232
+ };
233
+ raffleRewardId?: string;
234
+ };
235
+ output: any;
236
+ }>;
237
+ getRaffleEntry: import("@trpc/server").TRPCQueryProcedure<{
238
+ input: {
239
+ raffleEntryId?: string;
240
+ };
241
+ output: any;
242
+ }>;
243
+ createRaffleEntry: import("@trpc/server").TRPCMutationProcedure<{
244
+ input: {
245
+ name?: string;
246
+ key?: string;
247
+ id?: string | import("mongoose").Types.ObjectId;
248
+ data?: any;
249
+ description?: string;
250
+ applicationId?: string | import("mongoose").Types.ObjectId;
251
+ createdDate?: Date;
252
+ updatedDate?: Date;
253
+ status?: "Active" | "Paused" | "Pending" | "Archived";
254
+ ownerId?: string | import("mongoose").Types.ObjectId;
255
+ meta?: any;
256
+ merkleLeaf?: string;
257
+ merkleIndex?: number;
258
+ createdById?: string | import("mongoose").Types.ObjectId;
259
+ editedById?: string | import("mongoose").Types.ObjectId;
260
+ deletedById?: string | import("mongoose").Types.ObjectId;
261
+ deletedDate?: Date;
262
+ amount?: number;
263
+ raffleRewardId?: string | import("mongoose").Types.ObjectId;
264
+ raffleId?: string | import("mongoose").Types.ObjectId;
265
+ };
266
+ output: any;
267
+ }>;
268
+ updateRaffleEntry: import("@trpc/server").TRPCMutationProcedure<{
269
+ input: {
270
+ data?: {
271
+ name?: string;
272
+ key?: string;
273
+ id?: string | import("mongoose").Types.ObjectId;
274
+ data?: any;
275
+ description?: string;
276
+ applicationId?: string | import("mongoose").Types.ObjectId;
277
+ createdDate?: Date;
278
+ updatedDate?: Date;
279
+ status?: "Active" | "Paused" | "Pending" | "Archived";
280
+ ownerId?: string | import("mongoose").Types.ObjectId;
281
+ meta?: any;
282
+ merkleLeaf?: string;
283
+ merkleIndex?: number;
284
+ createdById?: string | import("mongoose").Types.ObjectId;
285
+ editedById?: string | import("mongoose").Types.ObjectId;
286
+ deletedById?: string | import("mongoose").Types.ObjectId;
287
+ deletedDate?: Date;
288
+ amount?: number;
289
+ raffleRewardId?: string | import("mongoose").Types.ObjectId;
290
+ raffleId?: string | import("mongoose").Types.ObjectId;
291
+ };
292
+ raffleEntryId?: string;
293
+ };
294
+ output: any;
295
+ }>;
296
+ }>;
297
+ export type Router = ReturnType<typeof createRouter>;
298
+ export type RouterInput = inferRouterInputs<Router>;
299
+ export type RouterOutput = inferRouterOutputs<Router>;