@arken/seer-protocol 0.1.4 → 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 +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 +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,110 @@
1
+ import { z, Entity, ObjectId } from '../schema';
2
+ export const Market = Entity.merge(z.object({
3
+ value: z.string(),
4
+ }));
5
+ export const MarketPair = Entity.merge(z.object({
6
+ value: z.string(),
7
+ }));
8
+ export const MarketExchange = Entity.merge(z.object({
9
+ value: z.string(),
10
+ }));
11
+ export const MarketAnalysis = Entity.merge(z.object({
12
+ action: z.enum(['Buy', 'Sell']),
13
+ asset: z.string().min(1),
14
+ signalType: z.string().min(1),
15
+ confidence: z
16
+ .number()
17
+ .min(0)
18
+ .max(100),
19
+ riskLevel: z.enum(['Low', 'Medium', 'High']),
20
+ timeFrame: z.enum(['Short-Term', 'Long-Term']),
21
+ source: z.string().min(1),
22
+ summary: z.string().min(1),
23
+ labels: z.object({
24
+ sector: z.string().optional(),
25
+ topic: z.string().optional(),
26
+ sentiment: z.enum(['Positive', 'Neutral', 'Negative']).optional(),
27
+ }),
28
+ }));
29
+ export const MarketInvestor = Entity.merge(z.object({
30
+ portfolioIds: z.array(ObjectId),
31
+ totalPnl: z.number().optional(),
32
+ }));
33
+ export const MarketInvestmentPortfolio = Entity.merge(z.object({
34
+ categoryGoals: z.array(z.object({
35
+ category: z.string(),
36
+ goalPercentage: z.number(),
37
+ currentPnl: z.number().optional(),
38
+ historicalPnL: z.number().optional(),
39
+ })),
40
+ investmentIds: z.array(ObjectId),
41
+ totalPnl: z.number().optional(),
42
+ }));
43
+ export const MarketInvestment = Entity.merge(z.object({
44
+ type: z.enum(['Stock', 'ChainToken']),
45
+ category: z.enum(['Historically Safe', 'Economy Bull', 'Economy Bear', 'Custom']),
46
+ amount: z.number(),
47
+ purchasePrice: z.number(),
48
+ currentValue: z.number().optional(),
49
+ pnl: z.number().optional(),
50
+ transactions: z
51
+ .array(z.object({
52
+ date: z.string(),
53
+ type: z.enum(['Buy', 'Sell']),
54
+ price: z.number(),
55
+ quantity: z.number(),
56
+ }))
57
+ .optional(),
58
+ stockId: ObjectId.optional(),
59
+ chainTokenId: ObjectId.optional(),
60
+ }));
61
+ export const MarketStock = Entity.merge(z.object({
62
+ ticker: z.string(),
63
+ companyId: ObjectId,
64
+ marketCap: z.number().optional(),
65
+ aum: z.number().optional(),
66
+ quoteType: z.string(),
67
+ currentPrice: z.number(),
68
+ dailyChange: z.number().optional(),
69
+ dailyChangePercent: z.number().optional(),
70
+ volume: z.number(),
71
+ currency: z.string(),
72
+ }));
73
+ export const MarketToken = Entity.merge(z.object({
74
+ symbol: z.string(),
75
+ currentPrice: z.number(),
76
+ }));
77
+ export const MarketCompany = Entity.merge(z.object({
78
+ ticker: z.string(),
79
+ type: z.enum(['Public Company', 'ETF Issuer', 'Both', 'Other']),
80
+ country: z.string().optional(),
81
+ industry: z.string().optional(),
82
+ sector: z.string().optional(),
83
+ issuedETFs: z.array(ObjectId).optional(),
84
+ }));
85
+ export const MarketETF = Entity.merge(z.object({
86
+ ticker: z.string(),
87
+ issuerId: ObjectId,
88
+ leverage: z.number().optional(),
89
+ country: z.string().optional(),
90
+ currency: z.string().optional(),
91
+ AUM: z.number().optional(),
92
+ industry: z.string().optional(),
93
+ sector: z.string().optional(),
94
+ }));
95
+ export const MarketStockSentiment = Entity.merge(z.object({
96
+ ticker: z.string(),
97
+ companyId: ObjectId,
98
+ sentiment: z.object({
99
+ label: z.enum(['Positive', 'Neutral', 'Negative']),
100
+ score: z
101
+ .number()
102
+ .min(0)
103
+ .max(1),
104
+ }),
105
+ confidence: z
106
+ .number()
107
+ .min(0)
108
+ .max(1),
109
+ }));
110
+ //# sourceMappingURL=market.schema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"market.schema.js","sourceRoot":"","sources":["../../market/market.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AAEhD,MAAM,CAAC,MAAM,MAAM,GAAG,MAAM,CAAC,KAAK,CAChC,CAAC,CAAC,MAAM,CAAC;IACP,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;CAClB,CAAC,CACH,CAAC;AAEF,MAAM,CAAC,MAAM,UAAU,GAAG,MAAM,CAAC,KAAK,CACpC,CAAC,CAAC,MAAM,CAAC;IACP,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;CAClB,CAAC,CACH,CAAC;AAEF,MAAM,CAAC,MAAM,cAAc,GA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AClD,KAAK,EAAE,CAAC;aACL,MAAM,EAAE;aACR,GAAG,CAAC,CAAC,CAAC;aACN,GAAG,CAAC,CAAC,CAAC;KACV,CAAC;IACF,UAAU,EAAE,CAAC;SACV,MAAM,EAAE;SACR,GAAG,CAAC,CAAC,CAAC;SACN,GAAG,CAAC,CAAC,CAAC;CACV,CAAC,CACH,CAAC"}
@@ -0,0 +1,48 @@
1
+ import { z } from 'zod';
2
+ import * as schema from './market.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 './market.router';
7
+ export type * from './market.router';
8
+ export type { RouterContext };
9
+ export type Market = z.infer<typeof schema.Market>;
10
+ export type MarketPair = z.infer<typeof schema.MarketPair>;
11
+ export type MarketExchange = z.infer<typeof schema.MarketExchange>;
12
+ export type MarketAnalysis = z.infer<typeof schema.MarketAnalysis>;
13
+ export type MarketInvestor = z.infer<typeof schema.MarketInvestor>;
14
+ export type MarketInvestmentPortfolio = z.infer<typeof schema.MarketInvestmentPortfolio>;
15
+ export type MarketInvestment = z.infer<typeof schema.MarketInvestment>;
16
+ export type MarketStock = z.infer<typeof schema.MarketStock>;
17
+ export type MarketToken = z.infer<typeof schema.MarketToken>;
18
+ export type MarketCompany = z.infer<typeof schema.MarketCompany>;
19
+ export type MarketETF = z.infer<typeof schema.MarketETF>;
20
+ export type MarketStockSentiment = z.infer<typeof schema.MarketStockSentiment>;
21
+ export type MarketDocument = Market & Document;
22
+ export type MarketPairDocument = MarketPair & Document;
23
+ export type MarketExchangeDocument = MarketExchange & Document;
24
+ export type MarketAnalysisDocument = MarketAnalysis & Document;
25
+ export type MarketInvestorDocument = MarketInvestor & Document;
26
+ export type MarketInvestmentPortfolioDocument = MarketInvestmentPortfolio & Document;
27
+ export type MarketInvestmentDocument = MarketInvestment & Document;
28
+ export type MarketStockDocument = MarketStock & Document;
29
+ export type MarketTokenDocument = MarketToken & Document;
30
+ export type MarketCompanyDocument = MarketCompany & Document;
31
+ export type MarketETFDocument = MarketETF & Document;
32
+ export type MarketStockSentimentDocument = MarketStockSentiment & Document;
33
+ export type Mappings = {
34
+ Market: Model<MarketDocument>;
35
+ MarketPair: Model<MarketPairDocument>;
36
+ MarketExchange: Model<MarketExchangeDocument>;
37
+ MarketAnalysis: Model<MarketAnalysisDocument>;
38
+ MarketInvestor: Model<MarketInvestorDocument>;
39
+ MarketInvestmentPortfolio: Model<MarketInvestmentPortfolioDocument>;
40
+ MarketInvestment: Model<MarketInvestmentDocument>;
41
+ MarketStock: Model<MarketStockDocument>;
42
+ MarketToken: Model<MarketTokenDocument>;
43
+ MarketCompany: Model<MarketCompanyDocument>;
44
+ MarketETF: Model<MarketETFDocument>;
45
+ MarketStockSentiment: Model<MarketStockSentimentDocument>;
46
+ };
47
+ export type RouterInput = inferRouterInputs<Router>;
48
+ export type RouterOutput = inferRouterOutputs<Router>;
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=market.types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"market.types.js","sourceRoot":"","sources":["../../market/market.types.ts"],"names":[],"mappings":""}
@@ -0,0 +1,4 @@
1
+ export type * as Types from './oasis.types';
2
+ export * as Models from './oasis.models';
3
+ export * as Schemas from './oasis.schema';
4
+ export * from './oasis.router';
@@ -0,0 +1,4 @@
1
+ export * as Models from './oasis.models';
2
+ export * as Schemas from './oasis.schema';
3
+ export * from './oasis.router';
4
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../oasis/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AACzC,OAAO,KAAK,OAAO,MAAM,gBAAgB,CAAC;AAC1C,cAAc,gBAAgB,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=oasis.models.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"oasis.models.js","sourceRoot":"","sources":["../../oasis/oasis.models.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,mBAAmB,CAAC;AAE3C,MAAM,EAAE,cAAc,EAAE,qBAAqB,EAAE,GAAG,KAAK,CAAC"}
@@ -0,0 +1,91 @@
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
+ getPatrons: import("@trpc/server").TRPCQueryProcedure<{
63
+ input: void;
64
+ output: any[];
65
+ }>;
66
+ interact: import("@trpc/server").TRPCMutationProcedure<{
67
+ input: {
68
+ shardId?: string;
69
+ round?: any;
70
+ roundId?: number;
71
+ rewardWinnerAmount?: number;
72
+ lastClients?: any;
73
+ };
74
+ output: {
75
+ status: number;
76
+ };
77
+ }>;
78
+ getScene: import("@trpc/server").TRPCQueryProcedure<{
79
+ input: {
80
+ data?: any;
81
+ signature?: {
82
+ hash?: string;
83
+ address?: string;
84
+ };
85
+ };
86
+ output: {};
87
+ }>;
88
+ }>;
89
+ export type Router = ReturnType<typeof createRouter>;
90
+ export type RouterInput = inferRouterInputs<Router>;
91
+ export type RouterOutput = inferRouterOutputs<Router>;
@@ -0,0 +1,52 @@
1
+ import { z as zod } from 'zod';
2
+ import { initTRPC } from '@trpc/server';
3
+ import { customErrorFormatter, hasRole } from '@arken/node/rpc';
4
+ import { Profile } from '../types';
5
+ export const z = zod;
6
+ export const t = initTRPC.context().create();
7
+ export const router = t.router;
8
+ export const procedure = t.procedure;
9
+ export const createRouter = () => router({
10
+ getPatrons: procedure
11
+ .use(hasRole('guest', t))
12
+ .use(customErrorFormatter(t))
13
+ .output(z.array(Profile.Schemas.Profile))
14
+ .query(({ input, ctx }) => ctx.app.service.Oasis.getPatrons(input, ctx)),
15
+ interact: t.procedure
16
+ .input(z.object({
17
+ shardId: z.string(),
18
+ roundId: z.number(),
19
+ round: z.any(),
20
+ rewardWinnerAmount: z.number(),
21
+ lastClients: z.any(),
22
+ }))
23
+ .mutation(({ input, ctx }) => {
24
+ return { status: 1 };
25
+ }),
26
+ getScene: t.procedure
27
+ .input(z.object({
28
+ data: z.any(),
29
+ signature: z.object({ hash: z.string(), address: z.string() }),
30
+ }))
31
+ .query(({ input, ctx }) => {
32
+ let data = {};
33
+ if (input.data.applicationId === '668e4e805f9a03927caf883b') {
34
+ data = {
35
+ ...data,
36
+ objects: [
37
+ {
38
+ id: 'adsad',
39
+ file: 'asdasdas.fbx',
40
+ position: {
41
+ x: 1000,
42
+ y: 1000,
43
+ z: 1000,
44
+ },
45
+ },
46
+ ],
47
+ };
48
+ }
49
+ return data;
50
+ }),
51
+ });
52
+ //# sourceMappingURL=oasis.router.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"oasis.router.js","sourceRoot":"","sources":["../../oasis/oasis.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,EAAuB,OAAO,EAAE,MAAM,UAAU,CAAC;AAExD,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,MAAM,CAAC,MAAM,YAAY,GAAG,GAAG,EAAE,CAC/B,MAAM,CAAC;IACL,UAAU,EAAE,SAAS;SAClB,GAAG,CAAC,OAAO,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC;SACxB,GAAG,CAAC,oBAAoB,CAAC,CAAC,CAAC,CAAC;SAC5B,MAAM,CAAC,CAAC,CAAC,KAAK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4BACR,CAAC,EAAE,IAAI;4BACP,CAAC,EAAE,IAAI;4BACP,CAAC,EAAE,IAAI;yBACR;qBACF;iBACmB;aACvB,CAAC;QACJ,CAAC;QAED,OAAO,IAAI,CAAC;IACd,CAAC,CAAC;CACL,CAAC,CAAC"}
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=oasis.schema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"oasis.schema.js","sourceRoot":"","sources":["../../oasis/oasis.schema.ts"],"names":[],"mappings":""}
@@ -0,0 +1,3 @@
1
+ export type * from './oasis.router';
2
+ export type { RouterContext } from '../types';
3
+ export type Mappings = {};
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=oasis.types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"oasis.types.js","sourceRoot":"","sources":["../../oasis/oasis.types.ts"],"names":[],"mappings":""}
@@ -0,0 +1,29 @@
1
+ {
2
+ "name": "@arken/seer-protocol",
3
+ "version": "0.1.3",
4
+ "main": "index.ts",
5
+ "scripts": {
6
+ "build": "npm-run-all dist",
7
+ "clean": "del-cli ./build && make-dir ./build",
8
+ "dist": "npm-run-all clean tsc:*",
9
+ "publish": "npm publish --access=public",
10
+ "tsc:1": "rm -rf ./build && mkdir ./build && cp package.json ./build && NODE_ENV=production NODE_OPTIONS=--max-old-space-size=8192 tsc --listFiles"
11
+ },
12
+ "dependencies": {
13
+ "@arken/node": "^1.5.3",
14
+ "@arken/forge-protocol": "^0.1.1",
15
+ "@trpc/client": "11.0.0-rc.660",
16
+ "@trpc/server": "11.0.0-rc.660",
17
+ "make-dir-cli": "^3",
18
+ "jest": "^29",
19
+ "@types/jest": "^29",
20
+ "@types/node": "^20",
21
+ "zod": "^3",
22
+ "dotenv": "^16",
23
+ "lodash": "^4",
24
+ "dayjs": "^1"
25
+ },
26
+ "devDependencies": {
27
+ "del-cli": "^5"
28
+ }
29
+ }
@@ -0,0 +1,4 @@
1
+ export * as Types from './product.types';
2
+ export * as Models from './product.models';
3
+ export * as Schemas from './product.schema';
4
+ export * from './product.router';
@@ -0,0 +1,5 @@
1
+ export * as Types from './product.types';
2
+ export * as Models from './product.models';
3
+ export * as Schemas from './product.schema';
4
+ export * from './product.router';
5
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../product/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,iBAAiB,CAAC;AACzC,OAAO,KAAK,MAAM,MAAM,kBAAkB,CAAC;AAC3C,OAAO,KAAK,OAAO,MAAM,kBAAkB,CAAC;AAC5C,cAAc,kBAAkB,CAAC"}
@@ -0,0 +1,4 @@
1
+ import * as mongo from '@arken/node/mongo';
2
+ import type * as Types from './product.types';
3
+ export declare const Product: mongo.Model<any> | mongo.Model<Types.ProductDocument>;
4
+ export declare const ProductUpdate: mongo.Model<any> | mongo.Model<Types.ProductUpdateDocument>;
@@ -0,0 +1,113 @@
1
+ import * as mongo from '@arken/node/mongo';
2
+ export const Product = mongo.createModel('Product', {
3
+ shortDescription: { type: String, maxlength: 300, required: false },
4
+ content: { type: String, required: false },
5
+ communityId: { type: mongo.Schema.Types.ObjectId, ref: 'Community', required: false },
6
+ type: { type: String, default: 'game', maxlength: 100 },
7
+ releaseDate: { type: Date },
8
+ parentId: { type: mongo.Schema.Types.ObjectId, ref: 'Product' },
9
+ score: { type: Number },
10
+ ownerId: { type: mongo.Schema.Types.ObjectId, ref: 'Profile' },
11
+ ratingId: { type: mongo.Schema.Types.ObjectId, ref: 'Rating' },
12
+ ideaId: { type: mongo.Schema.Types.ObjectId, ref: 'Idea' },
13
+ meta: {
14
+ name: String,
15
+ members: [{ type: mongo.Schema.Types.ObjectId, ref: 'Profile' }],
16
+ isProposal: Boolean,
17
+ price: Number,
18
+ oldPrice: Number,
19
+ images: Object,
20
+ video: String,
21
+ genre: String,
22
+ releaseDate: String,
23
+ developer: String,
24
+ publisher: String,
25
+ developerTags: [String],
26
+ languageSupport: [Object],
27
+ systemRequirements: [Object],
28
+ tags: [{ type: mongo.Schema.Types.ObjectId, ref: 'Tag' }],
29
+ type: String,
30
+ downloads: Number,
31
+ plans: [Object],
32
+ frequentlyTradedAssets: [{ type: mongo.Schema.Types.ObjectId, ref: 'Asset' }],
33
+ saleBox: Object,
34
+ assets: [{ type: mongo.Schema.Types.ObjectId, ref: 'Asset' }],
35
+ community: Object,
36
+ nameUrl: String,
37
+ steamId: Number,
38
+ author: String,
39
+ },
40
+ }, {
41
+ virtuals: [
42
+ {
43
+ name: 'projects',
44
+ ref: 'Project',
45
+ localField: '_id',
46
+ foreignField: 'productId',
47
+ },
48
+ {
49
+ name: 'leaderboards',
50
+ ref: 'Leaderboard',
51
+ localField: '_id',
52
+ foreignField: 'productId',
53
+ },
54
+ {
55
+ name: 'games',
56
+ ref: 'Game',
57
+ localField: '_id',
58
+ foreignField: 'productId',
59
+ },
60
+ {
61
+ name: 'productUpdates',
62
+ ref: 'ProductUpdate',
63
+ localField: '_id',
64
+ foreignField: 'productId',
65
+ },
66
+ {
67
+ name: 'owner',
68
+ ref: 'Profile',
69
+ localField: 'ownerId',
70
+ foreignField: '_id',
71
+ justOne: true,
72
+ },
73
+ {
74
+ name: 'rating',
75
+ ref: 'Rating',
76
+ localField: 'ratingId',
77
+ foreignField: '_id',
78
+ justOne: true,
79
+ },
80
+ {
81
+ name: 'community',
82
+ ref: 'Community',
83
+ localField: 'communityId',
84
+ foreignField: '_id',
85
+ justOne: true,
86
+ },
87
+ {
88
+ name: 'idea',
89
+ ref: 'Idea',
90
+ localField: 'ideaId',
91
+ foreignField: '_id',
92
+ justOne: true,
93
+ },
94
+ {
95
+ name: 'subproducts',
96
+ ref: 'Product',
97
+ localField: '_id',
98
+ foreignField: 'parentId',
99
+ },
100
+ {
101
+ name: 'servers',
102
+ ref: 'Server',
103
+ localField: '_id',
104
+ foreignField: 'productId',
105
+ },
106
+ ],
107
+ });
108
+ export const ProductUpdate = mongo.createModel('ProductUpdate', {
109
+ productId: { type: mongo.Schema.Types.ObjectId, ref: 'Product', required: true },
110
+ updateContent: { type: String, required: true },
111
+ updateDate: { type: Date, required: true },
112
+ });
113
+ //# sourceMappingURL=product.models.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"product.models.js","sourceRoot":"","sources":["../../product/product.models.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,mBAAmB,CAAC;AAG3C,MAAM,CAAC,MAAM,OAAO,GAAG,KAAK,CAAC,WAAW,CACtC,SAAS,EACT;IACE,gBAAgB,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,GAAG,EAAE,QAAQ,EAAE,KAAK,EAAE;IACnE,OAAO,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAE;IAC1C,WAAW,EAAE,EAAE,IAAI,EAAE,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,QAAQ,EAAE,GAAG,EAAE,WAAW,EAAE,QAAQ,EAAE,KAAK,EAAE;IACrF,IAAI,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,GAAG,EAAE;IACvD,WAAW,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE;IAG3B,QAAQ,EAAE,EAAE,IAAI,EAAE,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,QAAQ,EAAE,GAAG,EAAE,SAAS,EAAE;IAC/D,KAAK,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE;IACvB,OAAO,EAAE,EAAE,IAAI,EAAE,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,QAAQ,EAAE,GAAG,EAAE,SAAS,EAAE;IAC9D,QAAQ,EAAE,EAAE,IAAI,EAAE,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,QAAQ,EAAE,GAAG,EAAE,QAAQ,EAAE;IAC9D,MAAM,EAA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