@arken/node 1.5.2 → 1.5.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.rush/temp/shrinkwrap-deps.json +39 -298
- package/build/api.js.map +1 -0
- package/build/array.js.map +1 -0
- package/build/browser.js.map +1 -0
- package/build/codebase.js.map +1 -0
- package/build/config.js.map +1 -0
- package/build/db.d.ts +41 -0
- package/build/db.js +234 -0
- package/build/db.js.map +1 -0
- package/build/{util/decoder.js → decoder.js} +3 -3
- package/build/decoder.js.map +1 -0
- package/build/format.js.map +1 -0
- package/build/guid.js.map +1 -0
- package/build/index.d.ts +67 -18
- package/build/index.js +213 -18
- package/build/index.js.map +1 -1
- package/build/json.js.map +1 -0
- package/build/legacy/data/items.js +1 -1
- package/build/legacy/data/items.js.map +1 -1
- package/build/log.d.ts +5 -0
- package/build/log.js +28 -0
- package/build/log.js.map +1 -0
- package/build/math.js.map +1 -0
- package/build/{util/merkle.js → merkle.js} +1 -1
- package/build/merkle.js.map +1 -0
- package/build/{util/mongo.js → mongo.js} +1 -1
- package/build/mongo.js.map +1 -0
- package/build/number.js.map +1 -0
- package/build/object.js.map +1 -0
- package/build/otp.js.map +1 -0
- package/build/package.json +4 -17
- package/build/physics.js.map +1 -0
- package/build/{util/process.js → process.js} +1 -1
- package/build/process.js.map +1 -0
- package/build/rpc.js.map +1 -0
- package/build/schema.d.ts +42 -51
- package/build/seer.js.map +1 -0
- package/build/string.js.map +1 -0
- package/build/text.js.map +1 -0
- package/build/time/date.js.map +1 -0
- package/build/time/fancyTimeFormat.js.map +1 -0
- package/build/time/index.js.map +1 -0
- package/build/time/now.js.map +1 -0
- package/build/trpc/socketLink.d.ts +62 -0
- package/build/trpc/socketLink.js +261 -0
- package/build/trpc/socketLink.js.map +1 -0
- package/build/trpc/socketServer.d.ts +15 -0
- package/build/trpc/socketServer.js +47 -0
- package/build/trpc/socketServer.js.map +1 -0
- package/build/tsconfig.tsbuildinfo +1 -1
- package/build/util.d.ts +1 -0
- package/build/util.js +2 -0
- package/build/util.js.map +1 -0
- package/build/web3/httpProvider.js.map +1 -0
- package/build/{util/web3.d.ts → web3.d.ts} +7 -10
- package/build/{util/web3.js → web3.js} +10 -12
- package/build/web3.js.map +1 -0
- package/build/{util/websocket.js → websocket.js} +1 -1
- package/build/websocket.js.map +1 -0
- package/build/zk.js.map +1 -0
- package/build/{util/zod.d.ts → zod.d.ts} +2 -0
- package/build/{util/zod.js → zod.js} +1 -0
- package/build/zod.js.map +1 -0
- package/decoder.ts +3 -3
- package/index.ts +5 -50
- package/legacy/data/items.ts +1 -1
- package/log.ts +47 -1
- package/merkle.ts +3 -1
- package/mongo.ts +1 -1
- package/package.json +2 -15
- package/process.ts +1 -1
- package/trpc/socketLink.ts +2 -2
- package/trpc/socketServer.ts +1 -1
- package/tsconfig.json +2 -4
- package/web3.ts +18 -16
- package/websocket.ts +1 -1
- package/zod.ts +2 -0
- package/build/modules/area/area.models.d.ts +0 -6
- package/build/modules/area/area.models.js +0 -11
- package/build/modules/area/area.models.js.map +0 -1
- package/build/modules/area/area.router.d.ts +0 -274
- package/build/modules/area/area.router.js +0 -59
- package/build/modules/area/area.router.js.map +0 -1
- package/build/modules/area/area.schema.d.ts +0 -245
- package/build/modules/area/area.schema.js +0 -13
- package/build/modules/area/area.schema.js.map +0 -1
- package/build/modules/area/area.service.d.ts +0 -12
- package/build/modules/area/area.service.js +0 -95
- package/build/modules/area/area.service.js.map +0 -1
- package/build/modules/area/area.types.d.ts +0 -20
- package/build/modules/area/area.types.js +0 -2
- package/build/modules/area/area.types.js.map +0 -1
- package/build/modules/area/index.d.ts +0 -5
- package/build/modules/area/index.js +0 -6
- package/build/modules/area/index.js.map +0 -1
- package/build/modules/asset/asset.models.d.ts +0 -5
- package/build/modules/asset/asset.models.js +0 -44
- package/build/modules/asset/asset.models.js.map +0 -1
- package/build/modules/asset/asset.router.d.ts +0 -189
- package/build/modules/asset/asset.router.js +0 -41
- package/build/modules/asset/asset.router.js.map +0 -1
- package/build/modules/asset/asset.schema.d.ts +0 -207
- package/build/modules/asset/asset.schema.js +0 -19
- package/build/modules/asset/asset.schema.js.map +0 -1
- package/build/modules/asset/asset.service.d.ts +0 -9
- package/build/modules/asset/asset.service.js +0 -68
- package/build/modules/asset/asset.service.js.map +0 -1
- package/build/modules/asset/asset.types.d.ts +0 -17
- package/build/modules/asset/asset.types.js +0 -2
- package/build/modules/asset/asset.types.js.map +0 -1
- package/build/modules/asset/index.d.ts +0 -5
- package/build/modules/asset/index.js +0 -6
- package/build/modules/asset/index.js.map +0 -1
- package/build/modules/chain/chain.models.d.ts +0 -6
- package/build/modules/chain/chain.models.js +0 -42
- package/build/modules/chain/chain.models.js.map +0 -1
- package/build/modules/chain/chain.router.d.ts +0 -364
- package/build/modules/chain/chain.router.js +0 -84
- package/build/modules/chain/chain.router.js.map +0 -1
- package/build/modules/chain/chain.schema.d.ts +0 -323
- package/build/modules/chain/chain.schema.js +0 -41
- package/build/modules/chain/chain.schema.js.map +0 -1
- package/build/modules/chain/chain.service.d.ts +0 -15
- package/build/modules/chain/chain.service.js +0 -115
- package/build/modules/chain/chain.service.js.map +0 -1
- package/build/modules/chain/chain.types.d.ts +0 -20
- package/build/modules/chain/chain.types.js +0 -2
- package/build/modules/chain/chain.types.js.map +0 -1
- package/build/modules/chain/index.d.ts +0 -5
- package/build/modules/chain/index.js +0 -6
- package/build/modules/chain/index.js.map +0 -1
- package/build/modules/character/character.models.d.ts +0 -14
- package/build/modules/character/character.models.js +0 -123
- package/build/modules/character/character.models.js.map +0 -1
- package/build/modules/character/character.router.d.ts +0 -945
- package/build/modules/character/character.router.js +0 -246
- package/build/modules/character/character.router.js.map +0 -1
- package/build/modules/character/character.schema.d.ts +0 -1239
- package/build/modules/character/character.schema.js +0 -67
- package/build/modules/character/character.schema.js.map +0 -1
- package/build/modules/character/character.service.d.ts +0 -73
- package/build/modules/character/character.service.js +0 -533
- package/build/modules/character/character.service.js.map +0 -1
- package/build/modules/character/character.types.d.ts +0 -48
- package/build/modules/character/character.types.js +0 -2
- package/build/modules/character/character.types.js.map +0 -1
- package/build/modules/character/index.d.ts +0 -5
- package/build/modules/character/index.js +0 -6
- package/build/modules/character/index.js.map +0 -1
- package/build/modules/chat/chat.models.d.ts +0 -4
- package/build/modules/chat/chat.models.js +0 -35
- package/build/modules/chat/chat.models.js.map +0 -1
- package/build/modules/chat/chat.router.d.ts +0 -223
- package/build/modules/chat/chat.router.js +0 -51
- package/build/modules/chat/chat.router.js.map +0 -1
- package/build/modules/chat/chat.schema.d.ts +0 -183
- package/build/modules/chat/chat.schema.js +0 -29
- package/build/modules/chat/chat.schema.js.map +0 -1
- package/build/modules/chat/chat.service.d.ts +0 -12
- package/build/modules/chat/chat.service.js +0 -85
- package/build/modules/chat/chat.service.js.map +0 -1
- package/build/modules/chat/chat.types.d.ts +0 -14
- package/build/modules/chat/chat.types.js +0 -2
- package/build/modules/chat/chat.types.js.map +0 -1
- package/build/modules/chat/index.d.ts +0 -5
- package/build/modules/chat/index.js +0 -6
- package/build/modules/chat/index.js.map +0 -1
- package/build/modules/collection/collection.models.d.ts +0 -9
- package/build/modules/collection/collection.models.js +0 -69
- package/build/modules/collection/collection.models.js.map +0 -1
- package/build/modules/collection/collection.router.d.ts +0 -361
- package/build/modules/collection/collection.router.js +0 -71
- package/build/modules/collection/collection.router.js.map +0 -1
- package/build/modules/collection/collection.schema.d.ts +0 -676
- package/build/modules/collection/collection.schema.js +0 -70
- package/build/modules/collection/collection.schema.js.map +0 -1
- package/build/modules/collection/collection.service.d.ts +0 -15
- package/build/modules/collection/collection.service.js +0 -117
- package/build/modules/collection/collection.service.js.map +0 -1
- package/build/modules/collection/collection.types.d.ts +0 -29
- package/build/modules/collection/collection.types.js +0 -2
- package/build/modules/collection/collection.types.js.map +0 -1
- package/build/modules/collection/index.d.ts +0 -5
- package/build/modules/collection/index.js +0 -6
- package/build/modules/collection/index.js.map +0 -1
- package/build/modules/core/core.models.d.ts +0 -123
- package/build/modules/core/core.models.js +0 -811
- package/build/modules/core/core.models.js.map +0 -1
- package/build/modules/core/core.router.d.ts +0 -5297
- package/build/modules/core/core.router.js +0 -1372
- package/build/modules/core/core.router.js.map +0 -1
- package/build/modules/core/core.schema.d.ts +0 -5918
- package/build/modules/core/core.schema.js +0 -519
- package/build/modules/core/core.schema.js.map +0 -1
- package/build/modules/core/core.service.d.ts +0 -270
- package/build/modules/core/core.service.js +0 -2515
- package/build/modules/core/core.service.js.map +0 -1
- package/build/modules/core/core.types.d.ts +0 -251
- package/build/modules/core/core.types.js +0 -2
- package/build/modules/core/core.types.js.map +0 -1
- package/build/modules/core/index.d.ts +0 -5
- package/build/modules/core/index.js +0 -6
- package/build/modules/core/index.js.map +0 -1
- package/build/modules/core/mail/applyPatchesOrMail.d.ts +0 -72
- package/build/modules/core/mail/applyPatchesOrMail.js +0 -416
- package/build/modules/core/mail/applyPatchesOrMail.js.map +0 -1
- package/build/modules/core/mail/mailClaimablePatchesBatch.d.ts +0 -51
- package/build/modules/core/mail/mailClaimablePatchesBatch.js +0 -239
- package/build/modules/core/mail/mailClaimablePatchesBatch.js.map +0 -1
- package/build/modules/game/game.models.d.ts +0 -6
- package/build/modules/game/game.models.js +0 -29
- package/build/modules/game/game.models.js.map +0 -1
- package/build/modules/game/game.router.d.ts +0 -428
- package/build/modules/game/game.router.js +0 -90
- package/build/modules/game/game.router.js.map +0 -1
- package/build/modules/game/game.schema.d.ts +0 -344
- package/build/modules/game/game.schema.js +0 -14
- package/build/modules/game/game.schema.js.map +0 -1
- package/build/modules/game/game.service.d.ts +0 -16
- package/build/modules/game/game.service.js +0 -111
- package/build/modules/game/game.service.js.map +0 -1
- package/build/modules/game/game.types.d.ts +0 -20
- package/build/modules/game/game.types.js +0 -2
- package/build/modules/game/game.types.js.map +0 -1
- package/build/modules/game/index.d.ts +0 -5
- package/build/modules/game/index.js +0 -5
- package/build/modules/game/index.js.map +0 -1
- package/build/modules/interface/index.d.ts +0 -5
- package/build/modules/interface/index.js +0 -6
- package/build/modules/interface/index.js.map +0 -1
- package/build/modules/interface/interface.canonicalize.d.ts +0 -2
- package/build/modules/interface/interface.canonicalize.js +0 -241
- package/build/modules/interface/interface.canonicalize.js.map +0 -1
- package/build/modules/interface/interface.models.d.ts +0 -6
- package/build/modules/interface/interface.models.js +0 -30
- package/build/modules/interface/interface.models.js.map +0 -1
- package/build/modules/interface/interface.router.d.ts +0 -472
- package/build/modules/interface/interface.router.js +0 -113
- package/build/modules/interface/interface.router.js.map +0 -1
- package/build/modules/interface/interface.schema.d.ts +0 -313
- package/build/modules/interface/interface.schema.js +0 -36
- package/build/modules/interface/interface.schema.js.map +0 -1
- package/build/modules/interface/interface.service.d.ts +0 -19
- package/build/modules/interface/interface.service.js +0 -168
- package/build/modules/interface/interface.service.js.map +0 -1
- package/build/modules/interface/interface.types.d.ts +0 -19
- package/build/modules/interface/interface.types.js +0 -2
- package/build/modules/interface/interface.types.js.map +0 -1
- package/build/modules/item/index.d.ts +0 -5
- package/build/modules/item/index.js +0 -6
- package/build/modules/item/index.js.map +0 -1
- package/build/modules/item/item.models.d.ts +0 -16
- package/build/modules/item/item.models.js +0 -101
- package/build/modules/item/item.models.js.map +0 -1
- package/build/modules/item/item.router.d.ts +0 -263
- package/build/modules/item/item.router.js +0 -70
- package/build/modules/item/item.router.js.map +0 -1
- package/build/modules/item/item.schema.d.ts +0 -778
- package/build/modules/item/item.schema.js +0 -56
- package/build/modules/item/item.schema.js.map +0 -1
- package/build/modules/item/item.service.d.ts +0 -13
- package/build/modules/item/item.service.js +0 -116
- package/build/modules/item/item.service.js.map +0 -1
- package/build/modules/item/item.types.d.ts +0 -55
- package/build/modules/item/item.types.js +0 -2
- package/build/modules/item/item.types.js.map +0 -1
- package/build/modules/job/index.d.ts +0 -5
- package/build/modules/job/index.js +0 -6
- package/build/modules/job/index.js.map +0 -1
- package/build/modules/job/job.models.d.ts +0 -3
- package/build/modules/job/job.models.js +0 -9
- package/build/modules/job/job.models.js.map +0 -1
- package/build/modules/job/job.router.d.ts +0 -146
- package/build/modules/job/job.router.js +0 -32
- package/build/modules/job/job.router.js.map +0 -1
- package/build/modules/job/job.schema.d.ts +0 -67
- package/build/modules/job/job.schema.js +0 -7
- package/build/modules/job/job.schema.js.map +0 -1
- package/build/modules/job/job.service.d.ts +0 -7
- package/build/modules/job/job.service.js +0 -144
- package/build/modules/job/job.service.js.map +0 -1
- package/build/modules/job/job.types.d.ts +0 -16
- package/build/modules/job/job.types.js +0 -2
- package/build/modules/job/job.types.js.map +0 -1
- package/build/modules/market/index.d.ts +0 -5
- package/build/modules/market/index.js +0 -6
- package/build/modules/market/index.js.map +0 -1
- package/build/modules/market/market.models.d.ts +0 -14
- package/build/modules/market/market.models.js +0 -98
- package/build/modules/market/market.models.js.map +0 -1
- package/build/modules/market/market.router.d.ts +0 -230
- package/build/modules/market/market.router.js +0 -56
- package/build/modules/market/market.router.js.map +0 -1
- package/build/modules/market/market.schema.d.ts +0 -949
- package/build/modules/market/market.schema.js +0 -101
- package/build/modules/market/market.schema.js.map +0 -1
- package/build/modules/market/market.service.d.ts +0 -12
- package/build/modules/market/market.service.js +0 -88
- package/build/modules/market/market.service.js.map +0 -1
- package/build/modules/market/market.types.d.ts +0 -49
- package/build/modules/market/market.types.js +0 -2
- package/build/modules/market/market.types.js.map +0 -1
- package/build/modules/product/index.d.ts +0 -5
- package/build/modules/product/index.js +0 -6
- package/build/modules/product/index.js.map +0 -1
- package/build/modules/product/product.models.d.ts +0 -4
- package/build/modules/product/product.models.js +0 -113
- package/build/modules/product/product.models.js.map +0 -1
- package/build/modules/product/product.router.d.ts +0 -447
- package/build/modules/product/product.router.js +0 -71
- package/build/modules/product/product.router.js.map +0 -1
- package/build/modules/product/product.schema.d.ts +0 -654
- package/build/modules/product/product.schema.js +0 -117
- package/build/modules/product/product.schema.js.map +0 -1
- package/build/modules/product/product.service.d.ts +0 -15
- package/build/modules/product/product.service.js +0 -115
- package/build/modules/product/product.service.js.map +0 -1
- package/build/modules/product/product.types.d.ts +0 -28
- package/build/modules/product/product.types.js +0 -2
- package/build/modules/product/product.types.js.map +0 -1
- package/build/modules/profile/index.d.ts +0 -5
- package/build/modules/profile/index.js +0 -6
- package/build/modules/profile/index.js.map +0 -1
- package/build/modules/profile/profile.models.d.ts +0 -2
- package/build/modules/profile/profile.models.js +0 -165
- package/build/modules/profile/profile.models.js.map +0 -1
- package/build/modules/profile/profile.router.d.ts +0 -163
- package/build/modules/profile/profile.router.js +0 -54
- package/build/modules/profile/profile.router.js.map +0 -1
- package/build/modules/profile/profile.schema.d.ts +0 -1
- package/build/modules/profile/profile.schema.js +0 -138
- package/build/modules/profile/profile.schema.js.map +0 -1
- package/build/modules/profile/profile.service.d.ts +0 -11
- package/build/modules/profile/profile.service.js +0 -120
- package/build/modules/profile/profile.service.js.map +0 -1
- package/build/modules/profile/profile.types.d.ts +0 -16
- package/build/modules/profile/profile.types.js +0 -2
- package/build/modules/profile/profile.types.js.map +0 -1
- package/build/modules/raffle/index.d.ts +0 -5
- package/build/modules/raffle/index.js +0 -6
- package/build/modules/raffle/index.js.map +0 -1
- package/build/modules/raffle/raffle.models.d.ts +0 -6
- package/build/modules/raffle/raffle.models.js +0 -36
- package/build/modules/raffle/raffle.models.js.map +0 -1
- package/build/modules/raffle/raffle.router.d.ts +0 -299
- package/build/modules/raffle/raffle.router.js +0 -71
- package/build/modules/raffle/raffle.router.js.map +0 -1
- package/build/modules/raffle/raffle.schema.d.ts +0 -265
- package/build/modules/raffle/raffle.schema.js +0 -21
- package/build/modules/raffle/raffle.schema.js.map +0 -1
- package/build/modules/raffle/raffle.service.d.ts +0 -15
- package/build/modules/raffle/raffle.service.js +0 -115
- package/build/modules/raffle/raffle.service.js.map +0 -1
- package/build/modules/raffle/raffle.types.d.ts +0 -25
- package/build/modules/raffle/raffle.types.js +0 -2
- package/build/modules/raffle/raffle.types.js.map +0 -1
- package/build/modules/skill/index.d.ts +0 -5
- package/build/modules/skill/index.js +0 -6
- package/build/modules/skill/index.js.map +0 -1
- package/build/modules/skill/skill.models.d.ts +0 -9
- package/build/modules/skill/skill.models.js +0 -9
- package/build/modules/skill/skill.models.js.map +0 -1
- package/build/modules/skill/skill.router.d.ts +0 -659
- package/build/modules/skill/skill.router.js +0 -152
- package/build/modules/skill/skill.router.js.map +0 -1
- package/build/modules/skill/skill.schema.d.ts +0 -548
- package/build/modules/skill/skill.schema.js +0 -26
- package/build/modules/skill/skill.schema.js.map +0 -1
- package/build/modules/skill/skill.service.d.ts +0 -32
- package/build/modules/skill/skill.service.js +0 -279
- package/build/modules/skill/skill.service.js.map +0 -1
- package/build/modules/skill/skill.types.d.ts +0 -29
- package/build/modules/skill/skill.types.js +0 -2
- package/build/modules/skill/skill.types.js.map +0 -1
- package/build/modules/video/index.d.ts +0 -5
- package/build/modules/video/index.js +0 -6
- package/build/modules/video/index.js.map +0 -1
- package/build/modules/video/video.models.d.ts +0 -7
- package/build/modules/video/video.models.js +0 -19
- package/build/modules/video/video.models.js.map +0 -1
- package/build/modules/video/video.router.d.ts +0 -563
- package/build/modules/video/video.router.js +0 -112
- package/build/modules/video/video.router.js.map +0 -1
- package/build/modules/video/video.schema.d.ts +0 -456
- package/build/modules/video/video.schema.js +0 -31
- package/build/modules/video/video.schema.js.map +0 -1
- package/build/modules/video/video.service.d.ts +0 -23
- package/build/modules/video/video.service.js +0 -197
- package/build/modules/video/video.service.js.map +0 -1
- package/build/modules/video/video.types.d.ts +0 -28
- package/build/modules/video/video.types.js +0 -2
- package/build/modules/video/video.types.js.map +0 -1
- package/build/router.d.ts +0 -10406
- package/build/router.js +0 -44
- package/build/router.js.map +0 -1
- package/build/types.d.ts +0 -164
- package/build/types.js +0 -19
- package/build/types.js.map +0 -1
- package/build/util/api.js.map +0 -1
- package/build/util/array.js.map +0 -1
- package/build/util/browser.js.map +0 -1
- package/build/util/codebase.js.map +0 -1
- package/build/util/config.js.map +0 -1
- package/build/util/db/index.d.ts +0 -5
- package/build/util/db/index.js +0 -7
- package/build/util/db/index.js.map +0 -1
- package/build/util/db/isPostgresError.d.ts +0 -2
- package/build/util/db/isPostgresError.js +0 -8
- package/build/util/db/isPostgresError.js.map +0 -1
- package/build/util/db/isUniqueConstraintViolation.d.ts +0 -2
- package/build/util/db/isUniqueConstraintViolation.js +0 -3
- package/build/util/db/isUniqueConstraintViolation.js.map +0 -1
- package/build/util/db.d.ts +0 -6
- package/build/util/db.js +0 -51
- package/build/util/db.js.map +0 -1
- package/build/util/decoder.js.map +0 -1
- package/build/util/decoder.test.d.ts +0 -1
- package/build/util/decoder.test.js +0 -7
- package/build/util/decoder.test.js.map +0 -1
- package/build/util/format.js.map +0 -1
- package/build/util/guid.js.map +0 -1
- package/build/util/index.d.ts +0 -74
- package/build/util/index.js +0 -239
- package/build/util/index.js.map +0 -1
- package/build/util/json.js.map +0 -1
- package/build/util/log.d.ts +0 -1
- package/build/util/log.js +0 -6
- package/build/util/log.js.map +0 -1
- package/build/util/math.js.map +0 -1
- package/build/util/merkle.js.map +0 -1
- package/build/util/mongo.js.map +0 -1
- package/build/util/number.js.map +0 -1
- package/build/util/object.js.map +0 -1
- package/build/util/otp.js.map +0 -1
- package/build/util/physics.js.map +0 -1
- package/build/util/process.js.map +0 -1
- package/build/util/rpc.js.map +0 -1
- package/build/util/seer.js.map +0 -1
- package/build/util/string.js.map +0 -1
- package/build/util/text.js.map +0 -1
- package/build/util/time/date.js.map +0 -1
- package/build/util/time/fancyTimeFormat.js.map +0 -1
- package/build/util/time/index.js.map +0 -1
- package/build/util/time/now.js.map +0 -1
- package/build/util/web3/httpProvider.js.map +0 -1
- package/build/util/web3.js.map +0 -1
- package/build/util/websocket.js.map +0 -1
- package/build/util/zk.js.map +0 -1
- package/build/util/zod.js.map +0 -1
- package/router.ts +0 -49
- package/types.ts +0 -183
- /package/build/{util/api.d.ts → api.d.ts} +0 -0
- /package/build/{util/api.js → api.js} +0 -0
- /package/build/{util/array.d.ts → array.d.ts} +0 -0
- /package/build/{util/array.js → array.js} +0 -0
- /package/build/{util/browser.d.ts → browser.d.ts} +0 -0
- /package/build/{util/browser.js → browser.js} +0 -0
- /package/build/{util/codebase.d.ts → codebase.d.ts} +0 -0
- /package/build/{util/codebase.js → codebase.js} +0 -0
- /package/build/{util/config.d.ts → config.d.ts} +0 -0
- /package/build/{util/config.js → config.js} +0 -0
- /package/build/{util/decoder.d.ts → decoder.d.ts} +0 -0
- /package/build/{util/format.d.ts → format.d.ts} +0 -0
- /package/build/{util/format.js → format.js} +0 -0
- /package/build/{util/guid.d.ts → guid.d.ts} +0 -0
- /package/build/{util/guid.js → guid.js} +0 -0
- /package/build/{util/json.d.ts → json.d.ts} +0 -0
- /package/build/{util/json.js → json.js} +0 -0
- /package/build/{util/math.d.ts → math.d.ts} +0 -0
- /package/build/{util/math.js → math.js} +0 -0
- /package/build/{util/merkle.d.ts → merkle.d.ts} +0 -0
- /package/build/{util/mongo.d.ts → mongo.d.ts} +0 -0
- /package/build/{util/number.d.ts → number.d.ts} +0 -0
- /package/build/{util/number.js → number.js} +0 -0
- /package/build/{util/object.d.ts → object.d.ts} +0 -0
- /package/build/{util/object.js → object.js} +0 -0
- /package/build/{util/otp.d.ts → otp.d.ts} +0 -0
- /package/build/{util/otp.js → otp.js} +0 -0
- /package/build/{util/physics.d.ts → physics.d.ts} +0 -0
- /package/build/{util/physics.js → physics.js} +0 -0
- /package/build/{util/process.d.ts → process.d.ts} +0 -0
- /package/build/{util/rpc.d.ts → rpc.d.ts} +0 -0
- /package/build/{util/rpc.js → rpc.js} +0 -0
- /package/build/{util/seer.d.ts → seer.d.ts} +0 -0
- /package/build/{util/seer.js → seer.js} +0 -0
- /package/build/{util/string.d.ts → string.d.ts} +0 -0
- /package/build/{util/string.js → string.js} +0 -0
- /package/build/{util/text.d.ts → text.d.ts} +0 -0
- /package/build/{util/text.js → text.js} +0 -0
- /package/build/{util/time → time}/date.d.ts +0 -0
- /package/build/{util/time → time}/date.js +0 -0
- /package/build/{util/time → time}/fancyTimeFormat.d.ts +0 -0
- /package/build/{util/time → time}/fancyTimeFormat.js +0 -0
- /package/build/{util/time → time}/index.d.ts +0 -0
- /package/build/{util/time → time}/index.js +0 -0
- /package/build/{util/time → time}/now.d.ts +0 -0
- /package/build/{util/time → time}/now.js +0 -0
- /package/build/{util/web3 → web3}/httpProvider.d.ts +0 -0
- /package/build/{util/web3 → web3}/httpProvider.js +0 -0
- /package/build/{util/websocket.d.ts → websocket.d.ts} +0 -0
- /package/build/{util/zk.d.ts → zk.d.ts} +0 -0
- /package/build/{util/zk.js → zk.js} +0 -0
|
@@ -1,163 +0,0 @@
|
|
|
1
|
-
import { z as zod } from 'zod';
|
|
2
|
-
import { inferRouterInputs } from '@trpc/server';
|
|
3
|
-
import type { RouterContext } from '../../types';
|
|
4
|
-
import { inferRouterOutputs } from '../../schema';
|
|
5
|
-
export declare const z: typeof zod;
|
|
6
|
-
export declare const t: {
|
|
7
|
-
_config: import("@trpc/server/dist/unstable-core-do-not-import").RootConfig<{
|
|
8
|
-
ctx: RouterContext;
|
|
9
|
-
meta: object;
|
|
10
|
-
errorShape: import("@trpc/server/dist/unstable-core-do-not-import").DefaultErrorShape;
|
|
11
|
-
transformer: false;
|
|
12
|
-
}>;
|
|
13
|
-
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>;
|
|
14
|
-
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>;
|
|
15
|
-
router: {
|
|
16
|
-
<TInput extends import("@trpc/server").RouterRecord>(input: TInput): import("@trpc/server/dist/unstable-core-do-not-import").BuiltRouter<{
|
|
17
|
-
ctx: RouterContext;
|
|
18
|
-
meta: object;
|
|
19
|
-
errorShape: import("@trpc/server/dist/unstable-core-do-not-import").DefaultErrorShape;
|
|
20
|
-
transformer: false;
|
|
21
|
-
}, TInput>;
|
|
22
|
-
<TInput extends import("@trpc/server/dist/unstable-core-do-not-import").CreateRouterOptions>(input: TInput): import("@trpc/server/dist/unstable-core-do-not-import").BuiltRouter<{
|
|
23
|
-
ctx: RouterContext;
|
|
24
|
-
meta: object;
|
|
25
|
-
errorShape: import("@trpc/server/dist/unstable-core-do-not-import").DefaultErrorShape;
|
|
26
|
-
transformer: false;
|
|
27
|
-
}, import("@trpc/server/dist/unstable-core-do-not-import").DecorateCreateRouterOptions<TInput>>;
|
|
28
|
-
};
|
|
29
|
-
mergeRouters: typeof import("@trpc/server/dist/unstable-core-do-not-import").mergeRouters;
|
|
30
|
-
createCallerFactory: <TRecord extends import("@trpc/server").RouterRecord>(router: Pick<import("@trpc/server/dist/unstable-core-do-not-import").Router<{
|
|
31
|
-
ctx: RouterContext;
|
|
32
|
-
meta: object;
|
|
33
|
-
errorShape: import("@trpc/server/dist/unstable-core-do-not-import").DefaultErrorShape;
|
|
34
|
-
transformer: false;
|
|
35
|
-
}, TRecord>, "_def">) => import("@trpc/server/dist/unstable-core-do-not-import").RouterCaller<{
|
|
36
|
-
ctx: RouterContext;
|
|
37
|
-
meta: object;
|
|
38
|
-
errorShape: import("@trpc/server/dist/unstable-core-do-not-import").DefaultErrorShape;
|
|
39
|
-
transformer: false;
|
|
40
|
-
}, TRecord>;
|
|
41
|
-
};
|
|
42
|
-
export declare const router: {
|
|
43
|
-
<TInput extends import("@trpc/server").RouterRecord>(input: TInput): import("@trpc/server/dist/unstable-core-do-not-import").BuiltRouter<{
|
|
44
|
-
ctx: RouterContext;
|
|
45
|
-
meta: object;
|
|
46
|
-
errorShape: import("@trpc/server/dist/unstable-core-do-not-import").DefaultErrorShape;
|
|
47
|
-
transformer: false;
|
|
48
|
-
}, TInput>;
|
|
49
|
-
<TInput extends import("@trpc/server/dist/unstable-core-do-not-import").CreateRouterOptions>(input: TInput): import("@trpc/server/dist/unstable-core-do-not-import").BuiltRouter<{
|
|
50
|
-
ctx: RouterContext;
|
|
51
|
-
meta: object;
|
|
52
|
-
errorShape: import("@trpc/server/dist/unstable-core-do-not-import").DefaultErrorShape;
|
|
53
|
-
transformer: false;
|
|
54
|
-
}, import("@trpc/server/dist/unstable-core-do-not-import").DecorateCreateRouterOptions<TInput>>;
|
|
55
|
-
};
|
|
56
|
-
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>;
|
|
57
|
-
export declare const createRouter: () => import("@trpc/server/dist/unstable-core-do-not-import").BuiltRouter<{
|
|
58
|
-
ctx: RouterContext;
|
|
59
|
-
meta: object;
|
|
60
|
-
errorShape: import("@trpc/server/dist/unstable-core-do-not-import").DefaultErrorShape;
|
|
61
|
-
transformer: false;
|
|
62
|
-
}, {
|
|
63
|
-
setProfileMode: import("@trpc/server").TRPCMutationProcedure<{
|
|
64
|
-
input: string;
|
|
65
|
-
output: any;
|
|
66
|
-
}>;
|
|
67
|
-
me: import("@trpc/server").TRPCQueryProcedure<{
|
|
68
|
-
input: void;
|
|
69
|
-
output: any;
|
|
70
|
-
}>;
|
|
71
|
-
getProfile: import("@trpc/server").TRPCQueryProcedure<{
|
|
72
|
-
input: {
|
|
73
|
-
data?: any;
|
|
74
|
-
skip?: number;
|
|
75
|
-
cursor?: Record<string, any>;
|
|
76
|
-
where?: {
|
|
77
|
-
[x: string]: any;
|
|
78
|
-
};
|
|
79
|
-
orderBy?: Record<string, "asc" | "desc">;
|
|
80
|
-
include?: Record<string, boolean>;
|
|
81
|
-
select?: Record<string, boolean>;
|
|
82
|
-
limit?: number;
|
|
83
|
-
};
|
|
84
|
-
output: any;
|
|
85
|
-
}>;
|
|
86
|
-
getProfiles: import("@trpc/server").TRPCQueryProcedure<{
|
|
87
|
-
input: {
|
|
88
|
-
data?: any;
|
|
89
|
-
skip?: number;
|
|
90
|
-
cursor?: Record<string, any>;
|
|
91
|
-
where?: {
|
|
92
|
-
[x: string]: any;
|
|
93
|
-
};
|
|
94
|
-
orderBy?: Record<string, "asc" | "desc">;
|
|
95
|
-
include?: Record<string, boolean>;
|
|
96
|
-
select?: Record<string, boolean>;
|
|
97
|
-
limit?: number;
|
|
98
|
-
};
|
|
99
|
-
output: any[];
|
|
100
|
-
}>;
|
|
101
|
-
createProfile: import("@trpc/server").TRPCMutationProcedure<{
|
|
102
|
-
input: {
|
|
103
|
-
data?: any;
|
|
104
|
-
skip?: number;
|
|
105
|
-
cursor?: Record<string, any>;
|
|
106
|
-
where?: {
|
|
107
|
-
[x: string]: any;
|
|
108
|
-
};
|
|
109
|
-
orderBy?: Record<string, "asc" | "desc">;
|
|
110
|
-
include?: Record<string, boolean>;
|
|
111
|
-
select?: Record<string, boolean>;
|
|
112
|
-
limit?: number;
|
|
113
|
-
};
|
|
114
|
-
output: unknown;
|
|
115
|
-
}>;
|
|
116
|
-
updateProfile: import("@trpc/server").TRPCMutationProcedure<{
|
|
117
|
-
input: {
|
|
118
|
-
data?: any;
|
|
119
|
-
skip?: number;
|
|
120
|
-
cursor?: Record<string, any>;
|
|
121
|
-
where?: {
|
|
122
|
-
[x: string]: any;
|
|
123
|
-
};
|
|
124
|
-
orderBy?: Record<string, "asc" | "desc">;
|
|
125
|
-
include?: Record<string, boolean>;
|
|
126
|
-
select?: Record<string, boolean>;
|
|
127
|
-
limit?: number;
|
|
128
|
-
};
|
|
129
|
-
output: unknown;
|
|
130
|
-
}>;
|
|
131
|
-
getProfileStats: import("@trpc/server").TRPCQueryProcedure<{
|
|
132
|
-
input: {
|
|
133
|
-
query?: {
|
|
134
|
-
skip?: number;
|
|
135
|
-
take?: number;
|
|
136
|
-
cursor?: Record<string, any>;
|
|
137
|
-
where?: any;
|
|
138
|
-
orderBy?: Record<string, "asc" | "desc">;
|
|
139
|
-
include?: Record<string, boolean>;
|
|
140
|
-
select?: Record<string, boolean>;
|
|
141
|
-
};
|
|
142
|
-
};
|
|
143
|
-
output: any;
|
|
144
|
-
}>;
|
|
145
|
-
updateProfileSettings: import("@trpc/server").TRPCMutationProcedure<{
|
|
146
|
-
input: {
|
|
147
|
-
query?: {
|
|
148
|
-
skip?: number;
|
|
149
|
-
take?: number;
|
|
150
|
-
cursor?: Record<string, any>;
|
|
151
|
-
where?: any;
|
|
152
|
-
orderBy?: Record<string, "asc" | "desc">;
|
|
153
|
-
include?: Record<string, boolean>;
|
|
154
|
-
select?: Record<string, boolean>;
|
|
155
|
-
};
|
|
156
|
-
settings?: any;
|
|
157
|
-
};
|
|
158
|
-
output: any;
|
|
159
|
-
}>;
|
|
160
|
-
}>;
|
|
161
|
-
export type Router = ReturnType<typeof createRouter>;
|
|
162
|
-
export type RouterInput = inferRouterInputs<Router>;
|
|
163
|
-
export type RouterOutput = inferRouterOutputs<Router>;
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import { z as zod } from 'zod';
|
|
2
|
-
import { initTRPC } from '@trpc/server';
|
|
3
|
-
import { customErrorFormatter, hasRole } from '../../util/rpc';
|
|
4
|
-
import { Profile } from './profile.schema';
|
|
5
|
-
import { Query, getQueryInput } from '../../schema';
|
|
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
|
-
setProfileMode: procedure
|
|
12
|
-
.use(hasRole('user', t))
|
|
13
|
-
.use(customErrorFormatter(t))
|
|
14
|
-
.input(z.string())
|
|
15
|
-
.mutation(({ input, ctx }) => ctx.app.service.Profile.setProfileMode(input, ctx)),
|
|
16
|
-
me: procedure
|
|
17
|
-
.use(hasRole('user', t))
|
|
18
|
-
.use(customErrorFormatter(t))
|
|
19
|
-
.query(({ input, ctx }) => ctx.app.service.Profile.me(input, ctx)),
|
|
20
|
-
getProfile: procedure
|
|
21
|
-
.use(hasRole('guest', t))
|
|
22
|
-
.use(customErrorFormatter(t))
|
|
23
|
-
.input(getQueryInput(Profile))
|
|
24
|
-
.query(({ input, ctx }) => ctx.app.service.Profile.getProfile(input, ctx)),
|
|
25
|
-
getProfiles: procedure
|
|
26
|
-
.use(hasRole('guest', t))
|
|
27
|
-
.use(customErrorFormatter(t))
|
|
28
|
-
.input(getQueryInput(Profile))
|
|
29
|
-
.output(z.array(Profile))
|
|
30
|
-
.query(({ input, ctx }) => ctx.app.service.Profile.getProfiles(input, ctx)),
|
|
31
|
-
createProfile: procedure
|
|
32
|
-
.use(hasRole('user', t))
|
|
33
|
-
.use(customErrorFormatter(t))
|
|
34
|
-
.input(getQueryInput(Profile))
|
|
35
|
-
.output(Profile.partial())
|
|
36
|
-
.mutation(({ input, ctx }) => ctx.app.service.Profile.createProfile(input, ctx)),
|
|
37
|
-
updateProfile: procedure
|
|
38
|
-
.use(hasRole('user', t))
|
|
39
|
-
.use(customErrorFormatter(t))
|
|
40
|
-
.input(getQueryInput(Profile))
|
|
41
|
-
.output(Profile.partial())
|
|
42
|
-
.mutation(({ input, ctx }) => ctx.app.service.Profile.updateProfile(input, ctx)),
|
|
43
|
-
getProfileStats: procedure
|
|
44
|
-
.use(hasRole('guest', t))
|
|
45
|
-
.use(customErrorFormatter(t))
|
|
46
|
-
.input(z.object({ query: Query }))
|
|
47
|
-
.query(({ input, ctx }) => ctx.app.service.Profile.getProfileStats(input, ctx)),
|
|
48
|
-
updateProfileSettings: procedure
|
|
49
|
-
.use(hasRole('user', t))
|
|
50
|
-
.use(customErrorFormatter(t))
|
|
51
|
-
.input(z.object({ query: Query, settings: Profile.shape.settings }))
|
|
52
|
-
.mutation(({ input, ctx }) => ctx.app.service.Profile.updateProfileSettings(input, ctx)),
|
|
53
|
-
});
|
|
54
|
-
//# sourceMappingURL=profile.router.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"profile.router.js","sourceRoot":"","sources":["../../../modules/profile/profile.router.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,IAAI,GAAG,EAAE,MAAM,KAAK,CAAC;AAC/B,OAAO,EAAE,QAAQ,EAAqB,MAAM,cAAc,CAAC;AAC3D,OAAO,EAAE,oBAAoB,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AAE/D,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAC3C,OAAO,EAAE,KAAK,EAAE,aAAa,EAAsC,MAAM,cAAc,CAAC;AAExF,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,cAAc,EAAE,SAAS;SACtB,GAAG,CAAC,OAAO,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC;SACvB,GAAG,CAAC,oBAAoB,CAAC,CAAC,CAAC,CAAC;SAC5B,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;SACjB,QAAQ,CAAC,CAAC,EAAE,KAAK,EAAE,GAAG,EAAE,EAAE,EAAE,CAAE,GAAG,CAAC,GAAG,CAAC,OAAO,CAAC,OAAO,CAAC,cAAsB,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC;IAG5F,EAAE,EAAE,SAAS;SACV,GAAG,CA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E,CAAC,CAAC;SACnE,QAAQ,CAAC,CAAC,EAAE,KAAK,EAAE,GAAG,EAAE,EAAE,EAAE,CAAE,GAAG,CAAC,GAAG,CAAC,OAAO,CAAC,OAAO,CAAC,qBAA6B,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC;CACpG,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const Profile: any;
|
|
@@ -1,138 +0,0 @@
|
|
|
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.number().nullable().optional(),
|
|
41
|
-
killDeathRatio: z.number().optional(),
|
|
42
|
-
roundPointRatio: z.number().optional(),
|
|
43
|
-
});
|
|
44
|
-
export const Profile = Entity.merge(z.object({
|
|
45
|
-
accountId: ObjectId.optional(),
|
|
46
|
-
partyId: ObjectId.optional(),
|
|
47
|
-
points: z.number().optional(),
|
|
48
|
-
telegramUserId: z.number().optional(),
|
|
49
|
-
interactions: z.number().default(0),
|
|
50
|
-
activityRating: z.number().default(0),
|
|
51
|
-
address: z.string().max(100).optional(),
|
|
52
|
-
avatar: z.string().max(100).optional(),
|
|
53
|
-
roleId: ObjectId.optional(),
|
|
54
|
-
privateKey: z.string().max(300).optional(),
|
|
55
|
-
signature: z.string().max(200).optional(),
|
|
56
|
-
chainId: ObjectId.optional(),
|
|
57
|
-
teamId: ObjectId.optional(),
|
|
58
|
-
characterId: ObjectId.optional(),
|
|
59
|
-
isBanned: z.boolean().optional(),
|
|
60
|
-
banExpireDate: z.date().optional(),
|
|
61
|
-
banReason: z.string().optional(),
|
|
62
|
-
mode: z.string().default('gamer').optional(),
|
|
63
|
-
bio: z.string().optional(),
|
|
64
|
-
banner: z.string().url().optional(),
|
|
65
|
-
friends: z
|
|
66
|
-
.array(z.object({
|
|
67
|
-
friend: z.lazy(() => Profile),
|
|
68
|
-
meta: z.any().optional(),
|
|
69
|
-
}))
|
|
70
|
-
.optional(),
|
|
71
|
-
achievements: z
|
|
72
|
-
.array(z.object({
|
|
73
|
-
achievementId: ObjectId,
|
|
74
|
-
meta: z.any().optional(),
|
|
75
|
-
current: z.number().default(0),
|
|
76
|
-
}))
|
|
77
|
-
.optional(),
|
|
78
|
-
badges: z
|
|
79
|
-
.array(z.object({
|
|
80
|
-
badgeId: ObjectId,
|
|
81
|
-
meta: z.any().optional(),
|
|
82
|
-
}))
|
|
83
|
-
.optional(),
|
|
84
|
-
character: Character.optional(),
|
|
85
|
-
characters: z.array(ObjectId.optional()).optional(),
|
|
86
|
-
settings: z
|
|
87
|
-
.object({
|
|
88
|
-
warp: z.any().default({}),
|
|
89
|
-
designer: z.any().default({}),
|
|
90
|
-
privacy: z.enum(['public', 'private', 'friends-only']).default('public'),
|
|
91
|
-
notifications: z.boolean().default(true),
|
|
92
|
-
})
|
|
93
|
-
.optional(),
|
|
94
|
-
stats: z
|
|
95
|
-
.object({
|
|
96
|
-
gamesOwned: z.number().int().nonnegative().default(0),
|
|
97
|
-
playedMinutes: z.number().nonnegative().default(0),
|
|
98
|
-
leveledUpCount: z.number().int().nonnegative().default(0),
|
|
99
|
-
xpEarnedCount: z.number().int().nonnegative().default(0),
|
|
100
|
-
craftedItemCount: z.number().int().nonnegative().default(0),
|
|
101
|
-
equippedItemCount: z.number().int().nonnegative().default(0),
|
|
102
|
-
transferredInCount: z.number().int().nonnegative().default(0),
|
|
103
|
-
transferredOutCount: z.number().int().nonnegative().default(0),
|
|
104
|
-
marketTradeSoldCount: z.number().int().nonnegative().default(0),
|
|
105
|
-
marketTradeListedCount: z.number().int().nonnegative().default(0),
|
|
106
|
-
evolution: z
|
|
107
|
-
.object({
|
|
108
|
-
hashes: z.array(z.string()).default([]),
|
|
109
|
-
overall: z
|
|
110
|
-
.object({
|
|
111
|
-
orbs: z.number().optional(),
|
|
112
|
-
wins: z.number().optional(),
|
|
113
|
-
kills: z.number().optional(),
|
|
114
|
-
deaths: z.number().optional(),
|
|
115
|
-
points: z.number().optional(),
|
|
116
|
-
rounds: z.number().optional(),
|
|
117
|
-
evolves: z.number().optional(),
|
|
118
|
-
ranking: RankingSchema.optional(),
|
|
119
|
-
rewards: z.number().optional(),
|
|
120
|
-
earnings: z.number().optional(),
|
|
121
|
-
powerups: z.number().optional(),
|
|
122
|
-
revenges: z.number().optional(),
|
|
123
|
-
winRatio: z.number().optional(),
|
|
124
|
-
timeSpent: z.number().optional(),
|
|
125
|
-
winStreak: z.number().optional(),
|
|
126
|
-
averageLatency: z.number().optional().nullable(),
|
|
127
|
-
killDeathRatio: z.number().optional(),
|
|
128
|
-
roundPointRatio: z.number().optional(),
|
|
129
|
-
})
|
|
130
|
-
.default({}),
|
|
131
|
-
servers: z.record(ServerDataSchema).optional(),
|
|
132
|
-
lastUpdated: z.number().optional(),
|
|
133
|
-
})
|
|
134
|
-
.optional(),
|
|
135
|
-
})
|
|
136
|
-
.optional(),
|
|
137
|
-
}));
|
|
138
|
-
//# sourceMappingURL=profile.schema.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"profile.schema.js","sourceRoot":"","sources":["../../../modules/profile/profile.schema.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AACnD,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,QAAQ,EAAE,iBAAiB;IAC3B,QAAQ,EAAE,iBAAiB;IAC3B,QAAQ,EAAE,iBAAiB;IAC3B,SAAS,EAAE,iBAAiB;IAC5B,cAAc,EAAE,iBAAiB;IACjC,cAAc,EAAE,iBAAiB;IACjC,eAAe,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AAQ,EAAE,CAAC,QAAQ,EAAE;gBAChD,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"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { RouterContext, RouterInput, RouterOutput } from './profile.types';
|
|
2
|
-
export declare class Service {
|
|
3
|
-
setProfileMode(input: RouterInput['setProfileMode'], ctx: RouterContext): Promise<RouterOutput['setProfileMode']>;
|
|
4
|
-
me(input: RouterInput['me'], ctx: RouterContext): Promise<RouterOutput['me']>;
|
|
5
|
-
getProfile(input: RouterInput['getProfile'], ctx: RouterContext): Promise<RouterOutput['getProfile']>;
|
|
6
|
-
getProfiles(input: RouterInput['getProfiles'], ctx: RouterContext): Promise<RouterOutput['getProfiles']>;
|
|
7
|
-
createProfile(input: RouterInput['createProfile'], ctx: RouterContext): Promise<RouterOutput['createProfile']>;
|
|
8
|
-
updateProfile(input: RouterInput['updateProfile'], ctx: RouterContext): Promise<RouterOutput['updateProfile']>;
|
|
9
|
-
getProfileStats(input: RouterInput['getProfileStats'], ctx: RouterContext): Promise<RouterOutput['getProfileStats']>;
|
|
10
|
-
updateProfileSettings(input: RouterInput['updateProfileSettings'], ctx: RouterContext): Promise<RouterOutput['updateProfileSettings']>;
|
|
11
|
-
}
|
|
@@ -1,120 +0,0 @@
|
|
|
1
|
-
import { ARXError } from '../../util/rpc';
|
|
2
|
-
import { getFilter } from '../../util/api';
|
|
3
|
-
import { deepMerge } from '../../util/object';
|
|
4
|
-
export class Service {
|
|
5
|
-
async setProfileMode(input, ctx) {
|
|
6
|
-
if (!input)
|
|
7
|
-
throw new ARXError('NO_INPUT');
|
|
8
|
-
console.log('Profile.Service.setProfileMode', input);
|
|
9
|
-
ctx.client.profile.mode = input;
|
|
10
|
-
await ctx.client.profile.save();
|
|
11
|
-
}
|
|
12
|
-
async me(input, ctx) {
|
|
13
|
-
return {
|
|
14
|
-
id: ctx.client.profile.id,
|
|
15
|
-
address: ctx.client.profile.address,
|
|
16
|
-
name: ctx.client.profile.name,
|
|
17
|
-
points: ctx.client.profile.points,
|
|
18
|
-
status: ctx.client.profile.status,
|
|
19
|
-
isBanned: ctx.client.profile.isBanned,
|
|
20
|
-
banExpireDate: ctx.client.profile.banExpireDate,
|
|
21
|
-
banReason: ctx.client.profile.banReason,
|
|
22
|
-
mode: ctx.client.profile.mode,
|
|
23
|
-
settings: ctx.client.profile.settings,
|
|
24
|
-
roles: ctx.client.roles,
|
|
25
|
-
permissions: ctx.client.permissions,
|
|
26
|
-
data: ctx.client.profile.data,
|
|
27
|
-
meta: {
|
|
28
|
-
rewards: ctx.client.profile.meta.rewards,
|
|
29
|
-
evolution: {
|
|
30
|
-
settings: {
|
|
31
|
-
zoom: ctx.client.profile.meta?.evolution?.settings?.zoom || 0.7,
|
|
32
|
-
opacity: ctx.client.profile.meta?.evolution?.settings?.opacity || 1,
|
|
33
|
-
},
|
|
34
|
-
},
|
|
35
|
-
},
|
|
36
|
-
};
|
|
37
|
-
}
|
|
38
|
-
async getProfile(input, ctx) {
|
|
39
|
-
if (!input)
|
|
40
|
-
throw new ARXError('NO_INPUT');
|
|
41
|
-
console.log('Profile.Service.getProfile', input);
|
|
42
|
-
const filter = getFilter(input);
|
|
43
|
-
const profile = await ctx.app.model.Profile.findOne(filter).lean().exec();
|
|
44
|
-
if (!profile)
|
|
45
|
-
throw new ARXError('NOT_FOUND');
|
|
46
|
-
if (profile?.meta?.market?.trades)
|
|
47
|
-
delete profile?.meta?.market?.trades;
|
|
48
|
-
return profile;
|
|
49
|
-
}
|
|
50
|
-
async getProfiles(input, ctx) {
|
|
51
|
-
if (!input)
|
|
52
|
-
throw new ARXError('NO_INPUT');
|
|
53
|
-
console.log('Profile.Service.getProfiles', input);
|
|
54
|
-
const filter = getFilter(input);
|
|
55
|
-
const profiles = await ctx.app.model.Profile.aggregate([
|
|
56
|
-
{ $limit: input.limit || 10 },
|
|
57
|
-
{
|
|
58
|
-
$lookup: {
|
|
59
|
-
from: 'Character',
|
|
60
|
-
localField: 'characterId',
|
|
61
|
-
foreignField: '_id',
|
|
62
|
-
as: 'character',
|
|
63
|
-
},
|
|
64
|
-
},
|
|
65
|
-
{ $unwind: '$character' },
|
|
66
|
-
{
|
|
67
|
-
$lookup: {
|
|
68
|
-
from: 'Character',
|
|
69
|
-
localField: '_id',
|
|
70
|
-
foreignField: 'profileId',
|
|
71
|
-
as: 'characters',
|
|
72
|
-
},
|
|
73
|
-
},
|
|
74
|
-
{ $unwind: '$characters' },
|
|
75
|
-
]);
|
|
76
|
-
return profiles;
|
|
77
|
-
}
|
|
78
|
-
async createProfile(input, ctx) {
|
|
79
|
-
if (!input)
|
|
80
|
-
throw new ARXError('NO_INPUT');
|
|
81
|
-
console.log('Profile.Service.createProfile', input.data);
|
|
82
|
-
const profile = await ctx.app.model.Profile.create(input.data);
|
|
83
|
-
return profile;
|
|
84
|
-
}
|
|
85
|
-
async updateProfile(input, ctx) {
|
|
86
|
-
if (!input)
|
|
87
|
-
throw new ARXError('NO_INPUT');
|
|
88
|
-
console.log('Profile.Service.updateProfile', input, input.data);
|
|
89
|
-
const filter = getFilter(input);
|
|
90
|
-
const updatedProfile = await ctx.app.model.Profile.findOneAndUpdate(filter, input.data, { new: true })
|
|
91
|
-
.lean()
|
|
92
|
-
.exec();
|
|
93
|
-
if (!updatedProfile)
|
|
94
|
-
throw new ARXError('INTERNAL_SERVER_ERROR');
|
|
95
|
-
return updatedProfile;
|
|
96
|
-
}
|
|
97
|
-
async getProfileStats(input, ctx) {
|
|
98
|
-
if (!input)
|
|
99
|
-
throw new ARXError('NO_INPUT');
|
|
100
|
-
console.log('Profile.Service.getProfileStats', input);
|
|
101
|
-
const filter = getFilter(input);
|
|
102
|
-
const profile = await ctx.app.model.Profile.findOne(filter).lean().exec();
|
|
103
|
-
if (!profile)
|
|
104
|
-
throw new ARXError('NOT_FOUND');
|
|
105
|
-
return profile.stats;
|
|
106
|
-
}
|
|
107
|
-
async updateProfileSettings(input, ctx) {
|
|
108
|
-
if (!input)
|
|
109
|
-
throw new ARXError('NO_INPUT');
|
|
110
|
-
console.log('Profile.Service.updateProfileSettings', input, input.settings);
|
|
111
|
-
const filter = getFilter(input);
|
|
112
|
-
const updatedProfile = await ctx.app.model.Profile.findOneAndUpdate(filter, { settings: deepMerge(ctx.client.profile.settings, input.settings) }, { new: true })
|
|
113
|
-
.lean()
|
|
114
|
-
.exec();
|
|
115
|
-
if (!updatedProfile)
|
|
116
|
-
throw new ARXError('INTERNAL_SERVER_ERROR');
|
|
117
|
-
return updatedProfile.settings;
|
|
118
|
-
}
|
|
119
|
-
}
|
|
120
|
-
//# sourceMappingURL=profile.service.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"profile.service.js","sourceRoot":"","sources":["../../../modules/profile/profile.service.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAC1C,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAC3C,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAE9C,MAAM,OAAO,OAAO;IAClB,KAAK,CAAC,cAAc,CAClB,KAAoC,EACpC,GAAkB;QAElB,IAAI,CAAC,KAAK;YAAE,MAAM,IAAI,QAAQ,CAAC,UAAU,CAAC,CAAC;QAC3C,OAAO,CAAC,GAAG,CAAC,gCAAgC,EAAE,KAAK,CAAC,CAAC;QAErD,GAAG,CAAC,MAAM,CAAC,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|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import * as schema from './profile.schema';
|
|
3
|
-
import { Document, Model } from '../../util/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 * from './profile.service';
|
|
9
|
-
export type { RouterContext };
|
|
10
|
-
export type Profile = z.infer<typeof schema.Profile>;
|
|
11
|
-
export type ProfileDocument = Profile & Document;
|
|
12
|
-
export type Mappings = {
|
|
13
|
-
Profile: Model<ProfileDocument>;
|
|
14
|
-
};
|
|
15
|
-
export type RouterInput = inferRouterInputs<Router>;
|
|
16
|
-
export type RouterOutput = inferRouterOutputs<Router>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"profile.types.js","sourceRoot":"","sources":["../../../modules/profile/profile.types.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../modules/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;AAChC,cAAc,kBAAkB,CAAC"}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import * as mongo from '../../util/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>;
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import * as mongo from '../../util/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
|
|
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