@arken/seer-protocol 0.1.3 → 0.1.5

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 +5 -229
  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 +29 -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,250 @@
1
+ import { z } from 'zod';
2
+ import { HydratedDocument } from 'mongoose';
3
+ import * as schema from './core.schema';
4
+ import { Document, Model } from '@arken/node/mongo';
5
+ export type * from './core.router';
6
+ export type { RouterContext } from '../types';
7
+ export type MerkleTree = z.infer<typeof schema.MerkleTree>;
8
+ export type MerkleTreeDocument = MerkleTree & Document;
9
+ export type MerkleNode = z.infer<typeof schema.MerkleNode>;
10
+ export type MerkleNodeDocument = MerkleNode & Document;
11
+ export type Account = z.infer<typeof schema.Account>;
12
+ export type AccountDocument = Account & Document;
13
+ export type Achievement = z.infer<typeof schema.Achievement>;
14
+ export type AchievementDocument = Achievement & Document;
15
+ export type Act = z.infer<typeof schema.Act>;
16
+ export type ActDocument = Act & Document;
17
+ export type Agent = z.infer<typeof schema.Agent>;
18
+ export type AgentDocument = Agent & Document;
19
+ export type Application = z.infer<typeof schema.Application>;
20
+ export type ApplicationDocument = Application & Document;
21
+ export type Badge = z.infer<typeof schema.Badge>;
22
+ export type BadgeDocument = Badge & Document;
23
+ export type BattlePass = z.infer<typeof schema.BattlePass>;
24
+ export type BattlePassDocument = BattlePass & Document;
25
+ export type Biome = z.infer<typeof schema.Biome>;
26
+ export type BiomeDocument = Biome & Document;
27
+ export type BiomeFeature = z.infer<typeof schema.BiomeFeature>;
28
+ export type BiomeFeatureDocument = BiomeFeature & Document;
29
+ export type Bounty = z.infer<typeof schema.Bounty>;
30
+ export type BountyDocument = Bounty & Document;
31
+ export type Counter = z.infer<typeof schema.Counter>;
32
+ export type CounterDocument = Counter & Document;
33
+ export type Collection = z.infer<typeof schema.Collection>;
34
+ export type CollectionDocument = Collection & Document;
35
+ export type Comment = z.infer<typeof schema.Comment>;
36
+ export type CommentDocument = Comment & Document;
37
+ export type Community = z.infer<typeof schema.Community>;
38
+ export type CommunityDocument = Community & Document;
39
+ export type Company = z.infer<typeof schema.Company>;
40
+ export type CompanyDocument = Company & Document;
41
+ export type Conversation = z.infer<typeof schema.Conversation>;
42
+ export type ConversationDocument = Conversation & Document;
43
+ export type ConversationMessage = z.infer<typeof schema.ConversationMessage>;
44
+ export type ConversationMessageDocument = ConversationMessage & Document;
45
+ export type Data = z.infer<typeof schema.Data>;
46
+ export type DataDocument = Data & Document;
47
+ export type Meta = z.infer<typeof schema.Meta>;
48
+ export type MetaDocument = Meta & Document;
49
+ export type Discussion = z.infer<typeof schema.Discussion>;
50
+ export type DiscussionDocument = Discussion & Document;
51
+ export type Energy = z.infer<typeof schema.Energy>;
52
+ export type EnergyDocument = Energy & Document;
53
+ export type Event = z.infer<typeof schema.Event>;
54
+ export type EventDocument = Event & Document;
55
+ export type File = z.infer<typeof schema.File>;
56
+ export type FileDocument = File & Document;
57
+ export type Galaxy = z.infer<typeof schema.Galaxy>;
58
+ export type GalaxyDocument = Galaxy & Document;
59
+ export type Guide = z.infer<typeof schema.Guide>;
60
+ export type GuideDocument = Guide & Document;
61
+ export type Idea = z.infer<typeof schema.Idea>;
62
+ export type IdeaDocument = Idea & Document;
63
+ export type Leaderboard = z.infer<typeof schema.Leaderboard>;
64
+ export type LeaderboardDocument = Leaderboard & Document;
65
+ export type Log = z.infer<typeof schema.Log>;
66
+ export type LogDocument = Log & Document;
67
+ export type Lore = z.infer<typeof schema.Lore>;
68
+ export type LoreDocument = Lore & Document;
69
+ export type Market = z.infer<typeof schema.Market>;
70
+ export type MarketDocument = Market & Document;
71
+ export type Memory = z.infer<typeof schema.Memory>;
72
+ export type MemoryDocument = Memory & Document;
73
+ export type Message = z.infer<typeof schema.Message>;
74
+ export type MessageDocument = Message & Document;
75
+ export type Metaverse = z.infer<typeof schema.Metaverse>;
76
+ export type MetaverseDocument = Metaverse & Document;
77
+ export type NewsArticle = z.infer<typeof schema.NewsArticle>;
78
+ export type NewsArticleDocument = NewsArticle & Document;
79
+ export type Npc = z.infer<typeof schema.Npc>;
80
+ export type NpcDocument = Npc & Document;
81
+ export type Offer = z.infer<typeof schema.Offer>;
82
+ export type OfferDocument = Offer & Document;
83
+ export type Omniverse = z.infer<typeof schema.Omniverse>;
84
+ export type OmniverseDocument = Omniverse & Document;
85
+ export type Order = z.infer<typeof schema.Order>;
86
+ export type OrderDocument = Order & Document;
87
+ export type Party = z.infer<typeof schema.Party>;
88
+ export type PartyDocument = Party & Document;
89
+ export type Payment = z.infer<typeof schema.Payment>;
90
+ export type PaymentDocument = HydratedDocument<Payment>;
91
+ export type Permission = z.infer<typeof schema.Permission>;
92
+ export type PermissionDocument = Permission & Document;
93
+ export type Person = z.infer<typeof schema.Person>;
94
+ export type PersonDocument = Person & Document;
95
+ export type Planet = z.infer<typeof schema.Planet>;
96
+ export type PlanetDocument = Planet & Document;
97
+ export type Poll = z.infer<typeof schema.Poll>;
98
+ export type PollDocument = Poll & Document;
99
+ export type Project = z.infer<typeof schema.Project>;
100
+ export type ProjectDocument = Project & Document;
101
+ export type Proposal = z.infer<typeof schema.Proposal>;
102
+ export type ProposalDocument = Proposal & Document;
103
+ export type Quest = z.infer<typeof schema.Quest>;
104
+ export type QuestDocument = Quest & Document;
105
+ export type Question = z.infer<typeof schema.Question>;
106
+ export type QuestionDocument = Question & Document;
107
+ export type Rating = z.infer<typeof schema.Rating>;
108
+ export type RatingDocument = Rating & Document;
109
+ export type Realm = z.infer<typeof schema.Realm>;
110
+ export type RealmDocument = Realm & Document;
111
+ export type RealmEvent = z.infer<typeof schema.RealmEvent>;
112
+ export type RealmEventDocument = RealmEvent & Document;
113
+ export type RealmShard = z.infer<typeof schema.RealmShard>;
114
+ export type RealmShardDocument = RealmShard & Document;
115
+ export type RealmTrait = z.infer<typeof schema.RealmTrait>;
116
+ export type RealmTraitDocument = RealmTrait & Document;
117
+ export type Revision = z.infer<typeof schema.Revision>;
118
+ export type RevisionDocument = Revision & Document;
119
+ export type Referral = z.infer<typeof schema.Referral>;
120
+ export type ReferralDocument = Referral & Document;
121
+ export type Review = z.infer<typeof schema.Review>;
122
+ export type ReviewDocument = Review & Document;
123
+ export type Role = z.infer<typeof schema.Role>;
124
+ export type RoleDocument = Role & Document;
125
+ export type Season = z.infer<typeof schema.Season>;
126
+ export type SeasonDocument = Season & Document;
127
+ export type Session = z.infer<typeof schema.Session>;
128
+ export type SessionDocument = Session & Document;
129
+ export type SolarSystem = z.infer<typeof schema.SolarSystem>;
130
+ export type SolarSystemDocument = SolarSystem & Document;
131
+ export type Star = z.infer<typeof schema.Star>;
132
+ export type StarDocument = Star & Document;
133
+ export type Stat = z.infer<typeof schema.Stat>;
134
+ export type StatDocument = Stat & Document;
135
+ export type Stash = z.infer<typeof schema.Stash>;
136
+ export type StashDocument = Stash & Document;
137
+ export type Stock = z.infer<typeof schema.Stock>;
138
+ export type StockDocument = Stock & Document;
139
+ export type Suggestion = z.infer<typeof schema.Suggestion>;
140
+ export type SuggestionDocument = Suggestion & Document;
141
+ export type Tag = z.infer<typeof schema.Tag>;
142
+ export type TagDocument = Tag & Document;
143
+ export type Team = z.infer<typeof schema.Team>;
144
+ export type TeamDocument = Team & Document;
145
+ export type Tournament = z.infer<typeof schema.Tournament>;
146
+ export type TournamentDocument = Tournament & Document;
147
+ export type Trade = z.infer<typeof schema.Trade>;
148
+ export type TradeDocument = Trade & Document;
149
+ export type Universe = z.infer<typeof schema.Universe>;
150
+ export type UniverseDocument = Universe & Document;
151
+ export type Validator = z.infer<typeof schema.Validator>;
152
+ export type ValidatorDocument = Validator & Document;
153
+ export type Vote = z.infer<typeof schema.Vote>;
154
+ export type VoteDocument = Vote & Document;
155
+ export type WorldEvent = z.infer<typeof schema.WorldEvent>;
156
+ export type WorldEventDocument = WorldEvent & Document;
157
+ export type WorldRecord = z.infer<typeof schema.WorldRecord>;
158
+ export type WorldRecordDocument = WorldRecord & Document;
159
+ export type Node = z.infer<typeof schema.Node>;
160
+ export type NodeDocument = Node & Document;
161
+ export type Prefab = z.infer<typeof schema.Prefab>;
162
+ export type PrefabDocument = Prefab & Document;
163
+ export type Object = z.infer<typeof schema.Object>;
164
+ export type ObjectDocument = Object & Document;
165
+ export type ObjectInteraction = z.infer<typeof schema.ObjectInteraction>;
166
+ export type ObjectInteractionDocument = ObjectInteraction & Document;
167
+ export type SeerEvent = z.infer<typeof schema.SeerEvent>;
168
+ export type SeerEventDocument = SeerEvent & Document;
169
+ export type SeerPayload = z.infer<typeof schema.SeerPayload>;
170
+ export type SeerPayloadDocument = SeerPayload & Document;
171
+ export type Mappings = {
172
+ Account: Model<AccountDocument>;
173
+ Achievement: Model<AchievementDocument>;
174
+ Act: Model<ActDocument>;
175
+ Agent: Model<AgentDocument>;
176
+ Application: Model<ApplicationDocument>;
177
+ Badge: Model<BadgeDocument>;
178
+ BattlePass: Model<BattlePassDocument>;
179
+ Biome: Model<BiomeDocument>;
180
+ BiomeFeature: Model<BiomeFeatureDocument>;
181
+ Bounty: Model<BountyDocument>;
182
+ Counter: Model<CounterDocument>;
183
+ Collection: Model<CollectionDocument>;
184
+ Comment: Model<CommentDocument>;
185
+ Community: Model<CommunityDocument>;
186
+ Company: Model<CompanyDocument>;
187
+ Conversation: Model<ConversationDocument>;
188
+ ConversationMessage: Model<ConversationMessageDocument>;
189
+ Data: Model<DataDocument>;
190
+ Discussion: Model<DiscussionDocument>;
191
+ Energy: Model<EnergyDocument>;
192
+ Event: Model<EventDocument>;
193
+ File: Model<FileDocument>;
194
+ Galaxy: Model<GalaxyDocument>;
195
+ Guide: Model<GuideDocument>;
196
+ Idea: Model<IdeaDocument>;
197
+ Leaderboard: Model<LeaderboardDocument>;
198
+ Log: Model<LogDocument>;
199
+ Lore: Model<LoreDocument>;
200
+ Market: Model<MarketDocument>;
201
+ Memory: Model<MemoryDocument>;
202
+ Message: Model<MessageDocument>;
203
+ Metaverse: Model<MetaverseDocument>;
204
+ NewsArticle: Model<NewsArticleDocument>;
205
+ Npc: Model<NpcDocument>;
206
+ Object: Model<ObjectDocument>;
207
+ ObjectInteraction: Model<ObjectInteractionDocument>;
208
+ Offer: Model<OfferDocument>;
209
+ Omniverse: Model<OmniverseDocument>;
210
+ Order: Model<OrderDocument>;
211
+ Payment: Model<PaymentDocument>;
212
+ Party: Model<PartyDocument>;
213
+ Permission: Model<PermissionDocument>;
214
+ Person: Model<PersonDocument>;
215
+ Planet: Model<PlanetDocument>;
216
+ Poll: Model<PollDocument>;
217
+ Prefab: Model<PrefabDocument>;
218
+ Project: Model<ProjectDocument>;
219
+ Proposal: Model<ProposalDocument>;
220
+ Quest: Model<QuestDocument>;
221
+ Question: Model<QuestionDocument>;
222
+ Rating: Model<RatingDocument>;
223
+ Realm: Model<RealmDocument>;
224
+ RealmEvent: Model<RealmEventDocument>;
225
+ RealmShard: Model<RealmShardDocument>;
226
+ Revision: Model<RevisionDocument>;
227
+ Referral: Model<ReferralDocument>;
228
+ Review: Model<ReviewDocument>;
229
+ Role: Model<RoleDocument>;
230
+ Season: Model<SeasonDocument>;
231
+ SeerEvent: Model<SeerEventDocument>;
232
+ SeerPayload: Model<SeerPayloadDocument>;
233
+ Session: Model<SessionDocument>;
234
+ SolarSystem: Model<SolarSystemDocument>;
235
+ Star: Model<StarDocument>;
236
+ Stat: Model<StatDocument>;
237
+ Stash: Model<StashDocument>;
238
+ Stock: Model<StockDocument>;
239
+ Suggestion: Model<SuggestionDocument>;
240
+ Tag: Model<TagDocument>;
241
+ Team: Model<TeamDocument>;
242
+ Tournament: Model<TournamentDocument>;
243
+ Trade: Model<TradeDocument>;
244
+ Universe: Model<UniverseDocument>;
245
+ Validator: Model<ValidatorDocument>;
246
+ Vote: Model<VoteDocument>;
247
+ WorldEvent: Model<WorldEventDocument>;
248
+ WorldRecord: Model<WorldRecordDocument>;
249
+ Node: Model<NodeDocument>;
250
+ };
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=core.types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"core.types.js","sourceRoot":"","sources":["../../core/core.types.ts"],"names":[],"mappings":""}
@@ -0,0 +1,4 @@
1
+ export * as Types from './core.types';
2
+ export * as Models from './core.models';
3
+ export * as Schemas from './core.schema';
4
+ export * from './core.router';
@@ -0,0 +1,5 @@
1
+ export * as Types from './core.types';
2
+ export * as Models from './core.models';
3
+ export * as Schemas from './core.schema';
4
+ export * from './core.router';
5
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../core/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,cAAc,CAAC;AACtC,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,OAAO,MAAM,eAAe,CAAC;AACzC,cAAc,eAAe,CAAC"}
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,3 @@
1
+ import * as mongo from '@arken/node/mongo';
2
+ const { addTagVirtuals, addApplicationVirtual } = mongo;
3
+ //# sourceMappingURL=evolution.models.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"evolution.models.js","sourceRoot":"","sources":["../../evolution/evolution.models.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,mBAAmB,CAAC;AAE3C,MAAM,EAAE,cAAc,EAAE,qBAAqB,EAAE,GAAG,KAAK,CAAC"}
@@ -0,0 +1,244 @@
1
+ import { z as zod } from 'zod';
2
+ import { inferRouterOutputs, inferRouterInputs } from '@arken/node/schema';
3
+ import { 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
+ info: import("@trpc/server").TRPCQueryProcedure<{
63
+ input: any;
64
+ output: any;
65
+ }>;
66
+ updateConfig: import("@trpc/server").TRPCMutationProcedure<{
67
+ input: any;
68
+ output: any;
69
+ }>;
70
+ updateGameStats: import("@trpc/server").TRPCMutationProcedure<{
71
+ input: void;
72
+ output: any;
73
+ }>;
74
+ monitorChest: import("@trpc/server").TRPCMutationProcedure<{
75
+ input: void;
76
+ output: any;
77
+ }>;
78
+ monitorParties: import("@trpc/server").TRPCQueryProcedure<{
79
+ input: void;
80
+ output: any;
81
+ }>;
82
+ getParties: import("@trpc/server").TRPCQueryProcedure<{
83
+ input: {
84
+ cursor?: Record<string, any>;
85
+ limit?: number;
86
+ select?: Record<string, boolean>;
87
+ skip?: number;
88
+ where?: {
89
+ [x: string]: any;
90
+ };
91
+ data?: any;
92
+ orderBy?: Record<string, "asc" | "desc">;
93
+ include?: Record<string, boolean>;
94
+ };
95
+ output: {
96
+ name?: string;
97
+ limit?: number;
98
+ key?: string;
99
+ id?: string | import("mongoose").Types.ObjectId;
100
+ data?: any;
101
+ description?: string;
102
+ applicationId?: string | import("mongoose").Types.ObjectId;
103
+ createdDate?: Date;
104
+ updatedDate?: Date;
105
+ status?: "Active" | "Paused" | "Pending" | "Archived";
106
+ ownerId?: string | import("mongoose").Types.ObjectId;
107
+ meta?: any;
108
+ merkleLeaf?: string;
109
+ merkleIndex?: number;
110
+ createdById?: string | import("mongoose").Types.ObjectId;
111
+ editedById?: string | import("mongoose").Types.ObjectId;
112
+ deletedById?: string | import("mongoose").Types.ObjectId;
113
+ deletedDate?: Date;
114
+ members?: any[];
115
+ targetAreaId?: string | import("mongoose").Types.ObjectId;
116
+ isPublic?: boolean;
117
+ isVisibleToEnemies?: boolean;
118
+ isAlliesOnly?: boolean;
119
+ isApprovalRequired?: boolean;
120
+ isNonLeaderInviteAllowed?: boolean;
121
+ isCombatEnabled?: boolean;
122
+ isDisbandEnabled?: boolean;
123
+ isFriendlyFireEnabled?: boolean;
124
+ isLocalQuestShared?: boolean;
125
+ isGlobalQuestShared?: boolean;
126
+ isMergeEnabled?: boolean;
127
+ isRejoinEnabled?: boolean;
128
+ itemDistribution?: "Random" | "Personal";
129
+ leaderId?: string | import("mongoose").Types.ObjectId;
130
+ powerRequired?: number;
131
+ levelRequired?: number;
132
+ approvalMethod?: "Auto Accept" | "Approval Required";
133
+ memberIds?: (string | import("mongoose").Types.ObjectId)[];
134
+ assistantIds?: (string | import("mongoose").Types.ObjectId)[];
135
+ pendingMemberIds?: (string | import("mongoose").Types.ObjectId)[];
136
+ blockedMemberIds?: (string | import("mongoose").Types.ObjectId)[];
137
+ }[];
138
+ }>;
139
+ createParty: import("@trpc/server").TRPCMutationProcedure<{
140
+ input: {
141
+ cursor?: Record<string, any>;
142
+ limit?: number;
143
+ select?: Record<string, boolean>;
144
+ skip?: number;
145
+ where?: {
146
+ [x: string]: any;
147
+ };
148
+ data?: any;
149
+ orderBy?: Record<string, "asc" | "desc">;
150
+ include?: Record<string, boolean>;
151
+ };
152
+ output: {
153
+ id?: string | import("mongoose").Types.ObjectId;
154
+ };
155
+ }>;
156
+ joinParty: import("@trpc/server").TRPCMutationProcedure<{
157
+ input: {
158
+ cursor?: Record<string, any>;
159
+ limit?: number;
160
+ select?: Record<string, boolean>;
161
+ skip?: number;
162
+ where?: {
163
+ [x: string]: any;
164
+ };
165
+ data?: any;
166
+ orderBy?: Record<string, "asc" | "desc">;
167
+ include?: Record<string, boolean>;
168
+ };
169
+ output: {
170
+ id?: string | import("mongoose").Types.ObjectId;
171
+ };
172
+ }>;
173
+ leaveParty: import("@trpc/server").TRPCMutationProcedure<{
174
+ input: {
175
+ cursor?: Record<string, any>;
176
+ limit?: number;
177
+ select?: Record<string, boolean>;
178
+ skip?: number;
179
+ where?: {
180
+ [x: string]: any;
181
+ };
182
+ data?: any;
183
+ orderBy?: Record<string, "asc" | "desc">;
184
+ include?: Record<string, boolean>;
185
+ };
186
+ output: {
187
+ id?: string | import("mongoose").Types.ObjectId;
188
+ };
189
+ }>;
190
+ updateSettings: import("@trpc/server").TRPCQueryProcedure<{
191
+ input: {
192
+ zoom?: number;
193
+ opacity?: number;
194
+ };
195
+ output: any;
196
+ }>;
197
+ getPayments: import("@trpc/server").TRPCQueryProcedure<{
198
+ input: void;
199
+ output: any;
200
+ }>;
201
+ processPayments: import("@trpc/server").TRPCMutationProcedure<{
202
+ input: void;
203
+ output: any;
204
+ }>;
205
+ cancelPaymentRequest: import("@trpc/server").TRPCMutationProcedure<{
206
+ input: {
207
+ to?: any;
208
+ tokenKeys?: any;
209
+ tokenAmounts?: any;
210
+ };
211
+ output: any;
212
+ }>;
213
+ createPaymentRequest: import("@trpc/server").TRPCMutationProcedure<{
214
+ input: {
215
+ to?: any;
216
+ chain?: string;
217
+ tokenKeys?: any;
218
+ tokenAmounts?: any;
219
+ };
220
+ output: any;
221
+ }>;
222
+ saveRound: import("@trpc/server").TRPCMutationProcedure<{
223
+ input: {
224
+ shardId?: string;
225
+ gameKey?: string;
226
+ round?: any;
227
+ clients?: any;
228
+ };
229
+ output: any;
230
+ }>;
231
+ interact: import("@trpc/server").TRPCMutationProcedure<{
232
+ input: {};
233
+ output: any;
234
+ }>;
235
+ getScene: import("@trpc/server").TRPCMutationProcedure<{
236
+ input: {
237
+ applicationId?: string;
238
+ };
239
+ output: any;
240
+ }>;
241
+ }>;
242
+ export type Router = ReturnType<typeof createRouter>;
243
+ export type RouterInput = inferRouterInputs<Router>;
244
+ export type RouterOutput = inferRouterOutputs<Router>;
@@ -0,0 +1,112 @@
1
+ import { z as zod } from 'zod';
2
+ import { initTRPC } from '@trpc/server';
3
+ import { customErrorFormatter, hasRole } from '@arken/node/rpc';
4
+ import { getQueryInput } from '@arken/node/schema';
5
+ import { Core } from '../types';
6
+ export const z = zod;
7
+ export const t = initTRPC.context().create();
8
+ export const router = t.router;
9
+ export const procedure = t.procedure;
10
+ export const createRouter = () => router({
11
+ info: procedure
12
+ .use(customErrorFormatter(t))
13
+ .input(z.any())
14
+ .query(({ input, ctx }) => ctx.app.service.Evolution.info(input, ctx)),
15
+ updateConfig: procedure
16
+ .use(hasRole('admin', t))
17
+ .use(customErrorFormatter(t))
18
+ .input(z.any())
19
+ .mutation(({ input, ctx }) => ctx.app.service.Evolution.updateConfig(input, ctx)),
20
+ updateGameStats: procedure
21
+ .use(hasRole('admin', t))
22
+ .use(customErrorFormatter(t))
23
+ .mutation(({ input, ctx }) => ctx.app.service.Evolution.updateGameStats(input, ctx)),
24
+ monitorChest: procedure
25
+ .use(hasRole('admin', t))
26
+ .use(customErrorFormatter(t))
27
+ .mutation(({ input, ctx }) => ctx.app.service.Evolution.monitorChest(input, ctx)),
28
+ monitorParties: procedure
29
+ .use(hasRole('admin', t))
30
+ .use(customErrorFormatter(t))
31
+ .query(({ input, ctx }) => ctx.app.service.Evolution.monitorParties(input, ctx)),
32
+ getParties: procedure
33
+ .use(hasRole('user', t))
34
+ .use(customErrorFormatter(t))
35
+ .input(getQueryInput(Core.Schemas.Party))
36
+ .output(z.array(Core.Schemas.Party))
37
+ .query(({ input, ctx }) => ctx.app.service.Evolution.getParties(input, ctx)),
38
+ createParty: procedure
39
+ .use(hasRole('user', t))
40
+ .use(customErrorFormatter(t))
41
+ .input(getQueryInput(Core.Schemas.Party))
42
+ .output(Core.Schemas.Party.pick({ id: true }))
43
+ .mutation(({ input, ctx }) => ctx.app.service.Evolution.createParty(input, ctx)),
44
+ joinParty: procedure
45
+ .use(hasRole('user', t))
46
+ .use(customErrorFormatter(t))
47
+ .input(getQueryInput(Core.Schemas.Party))
48
+ .output(Core.Schemas.Party.pick({ id: true }))
49
+ .mutation(({ input, ctx }) => ctx.app.service.Evolution.joinParty(input, ctx)),
50
+ leaveParty: procedure
51
+ .use(hasRole('user', t))
52
+ .use(customErrorFormatter(t))
53
+ .input(getQueryInput(Core.Schemas.Party))
54
+ .output(Core.Schemas.Party.pick({ id: true }))
55
+ .mutation(({ input, ctx }) => ctx.app.service.Evolution.leaveParty(input, ctx)),
56
+ updateSettings: procedure
57
+ .use(hasRole('user', t))
58
+ .use(customErrorFormatter(t))
59
+ .input(z.object({
60
+ zoom: z.number().min(0).max(1).optional(),
61
+ opacity: z.number().min(0).max(1).optional(),
62
+ }))
63
+ .query(({ input, ctx }) => ctx.app.service.Evolution.updateSettings(input, ctx)),
64
+ getPayments: procedure
65
+ .use(hasRole('user', t))
66
+ .use(customErrorFormatter(t))
67
+ .query(({ input, ctx }) => ctx.app.service.Evolution.getPayments(input, ctx)),
68
+ processPayments: procedure
69
+ .use(hasRole('admin', t))
70
+ .use(customErrorFormatter(t))
71
+ .mutation(({ input, ctx }) => ctx.app.service.Evolution.processPayments(input, ctx)),
72
+ cancelPaymentRequest: procedure
73
+ .use(hasRole('user', t))
74
+ .use(customErrorFormatter(t))
75
+ .input(z.object({
76
+ tokenKeys: z.any(),
77
+ tokenAmounts: z.any(),
78
+ to: z.any(),
79
+ }))
80
+ .mutation(({ input, ctx }) => ctx.app.service.Evolution.cancelPaymentRequest(input, ctx)),
81
+ createPaymentRequest: procedure
82
+ .use(hasRole('user', t))
83
+ .use(customErrorFormatter(t))
84
+ .input(z.object({
85
+ chain: z.string(),
86
+ tokenKeys: z.any(),
87
+ tokenAmounts: z.any(),
88
+ to: z.any(),
89
+ }))
90
+ .mutation(({ input, ctx }) => ctx.app.service.Evolution.createPaymentRequest(input, ctx)),
91
+ saveRound: procedure
92
+ .use(hasRole('guest', t))
93
+ .use(customErrorFormatter(t))
94
+ .input(z.object({
95
+ shardId: z.string(),
96
+ gameKey: z.string(),
97
+ round: z.any(),
98
+ clients: z.any(),
99
+ }))
100
+ .mutation(({ input, ctx }) => ctx.app.service.Evolution.saveRound(input, ctx)),
101
+ interact: t.procedure
102
+ .use(hasRole('guest', t))
103
+ .use(customErrorFormatter(t))
104
+ .input(z.object({}))
105
+ .mutation(({ input, ctx }) => ctx.app.service.Evolution.interact(input, ctx)),
106
+ getScene: t.procedure
107
+ .use(hasRole('guest', t))
108
+ .use(customErrorFormatter(t))
109
+ .input(z.object({ applicationId: z.string() }))
110
+ .mutation(({ input, ctx }) => ctx.app.service.Evolution.getScene(input, ctx)),
111
+ });
112
+ //# sourceMappingURL=evolution.router.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"evolution.router.js","sourceRoot":"","sources":["../../evolution/evolution.router.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,IAAI,GAAG,EAAE,MAAM,KAAK,CAAC;AAC/B,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AACxC,OAAO,EAAE,oBAAoB,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAEhE,OAAO,EAAS,aAAa,EAAyC,MAAM,oBAAoB,CAAC;AACjG,OAAO,EAAiB,IAAI,EAAE,MAAM,UAAU,CAAC;AAE/C,MAAM,CAAC,MAAM,CAAC,GAAG,GAAG,CAAC;AACrB,MAAM,CAAC,MAAM,CAAC,GAAG,QAAQ,CAAC,OAAO,EAAiB,CAAC,MAAM,EAAE,CAAC;AAC5D,MAAM,CAAC,MAAM,MAAM,GAAG,CAAC,CAAC,MAAM,CAAC;AAC/B,MAAM,CAAC,MAAM,SAAS,GAAG,CAAC,CAAC,SAAS,CAAC;AAErC,MA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,CAAE,GAAG,CAAC,GAAG,CAAC,OAAO,CAAC,SAAS,CAAC,SAAiB,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC;IAEzF,QAAQ,EAAE,CAAC,CAAC,SAAS;SAClB,GAAG,CAAC,OAAO,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC;SACxB,GAAG,CAAC,oBAAoB,CAAC,CAAC,CAAC,CAAC;SAC5B,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;SACnB,QAAQ,CAAC,CAAC,EAAE,KAAK,EAAE,GAAG,EAAE,EAAE,EAAE,CAAE,GAAG,CAAC,GAAG,CAAC,OAAO,CAAC,SAAS,CAAC,QAAgB,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC;IAExF,QAAQ,EAAE,CAAC,CAAC,SAAS;SAClB,GAAG,CAAC,OAAO,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC;SACxB,GAAG,CAAC,oBAAoB,CAAC,CAAC,CAAC,CAAC;SAC5B,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,EAAE,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC;SAC9C,QAAQ,CAAC,CAAC,EAAE,KAAK,EAAE,GAAG,EAAE,EAAE,EAAE,CAAE,GAAG,CAAC,GAAG,CAAC,OAAO,CAAC,SAAS,CAAC,QAAgB,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC;CACzF,CAAC,CAAC"}
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=evolution.schema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"evolution.schema.js","sourceRoot":"","sources":["../../evolution/evolution.schema.ts"],"names":[],"mappings":""}