@arken/node 1.5.2 → 1.5.3
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 -82
- 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 +70 -18
- package/build/index.js +216 -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 +3 -3
- 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.js → web3.js} +1 -1
- 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 +1 -46
- 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 +1 -1
- 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 +2 -1
- 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/web3.d.ts → web3.d.ts} +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
package/build/util.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '.';
|
package/build/util.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"util.js","sourceRoot":"","sources":["../util.ts"],"names":[],"mappings":"AAAA,cAAc,GAAG,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"httpProvider.js","sourceRoot":"","sources":["../../web3/httpProvider.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AAKnC,MAAM,SAAS,GAAG,IAAI,CAAC,SAAS,CAAC,CAAC,mCAAmC,CAAC,CAAC,CAAC;AAExE,IAAI,cAAc,GAAG,EAAE,CAAC;AACxB,IAAI,iBAAiB,GAAG,CAAC,CAAC;AAC1B,IAAI,gBAAgB,GAAG,IAAI,CAAC;AAE5B,MAAM,YAAa,SAAQ,KAAK;IAI9B,YAAY,OAAe,EAAE,IAAY,EAAE,IAAS;QAClD,KAAK,CAAC,OAAO,CAAC,CAAC;QACf,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC;IACpC,CAAC;CACF;AAED,MAAM,CAAC,OAAO,OAAO,QAAQ;IAQ3B,YAAY,GAAW;QACrB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,CAAC;QAE9C,MAAM,YAAY,GAAG,EAAE,eAAe,EAAE,mBAAmB,cAAc,EAAE,EAAE,CAAC;QAC9E,MAAM,KAAK,CAAC,GAAG,CAAC,QAAQ,EAAE,IAAI,QAAQ,CAAC,QAAQ,EAAE,EAAE,GAAG,QAAQ,EAAE,OAAO,EAAE,YAAY,EAAE,CAAC,CAAC,CAAC;QAE1F,IAAI,OAAO,IAAI,YAAY,EAAE,CAAC;YAC5B,MAAM,IAAI,YAAY,CACpB,CAAC,EAAE,GAAG,YAAY,CAAC,KAAK,CAAC,KAAK,IAAI,IAAI,EAAE,KAAK,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,OAAO,EACzE,CAAC,EAAE,GAAG,YAAY,CAAC,KAAK,CAAC,KAAK,IAAI,IAAI,EAAE,KAAK,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,IAAI,EACtE,CAAC,EAAE,GAAG,YAAY,CAAC,KAAK,CAAC,KAAK,IAAI,IAAI,EAAE,KAAK,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,IAAI,CACvE,CAAC;QACJ,CAAC;aAAM,CAAC;YACN,OAAO,YAAY,CAAC,MAAM,CAAC;QAC7B,CAAC;IACH,CAAC;CACF"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import _Web3 from 'web3';
|
|
2
2
|
import HDWalletProvider from '@truffle/hdwallet-provider';
|
|
3
3
|
import CryptoJS from 'crypto-js';
|
|
4
|
-
import { log, logError } from '.';
|
|
5
4
|
import { ethers } from 'ethers';
|
|
5
|
+
import { log, logError } from './log';
|
|
6
6
|
export const Web3 = _Web3;
|
|
7
7
|
export const getRandomProvider = (secret) => {
|
|
8
8
|
return new HDWalletProvider(secret.mnemonic, process.env.PROVIDER_URI);
|
|
@@ -0,0 +1 @@
|
|
|
1
|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":"","sources":["../zod.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAC;AAEpB,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,CAAC,UAAU,CAAC,CAAC,GAAG,EAAE,EAAE;IACjD,IAAI,OAAO,GAAG,KAAK,QAAQ,EAAE,CAAC;QAC5B,MAAM,IAAI,GAAG,IAAI,IAAI,CAAC,GAAG,CAAC,CAAC;QAC3B,IAAI,KAAK,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC,EAAE,CAAC;YAC1B,MAAM,IAAI,KAAK,CAAC,qBAAqB,CAAC,CAAC;QACzC,CAAC;QACD,OAAO,IAAI,CAAC;IACd,CAAC;IACD,OAAO,GAAG,CAAC;AACb,CAAC,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC;AAEb,eAAe,GAAG,EAAE,GAAE,CAAC,CAAC"}
|
package/decoder.ts
CHANGED
|
@@ -7,9 +7,9 @@ import {
|
|
|
7
7
|
itemData,
|
|
8
8
|
ItemRarity,
|
|
9
9
|
ItemRarityNameById,
|
|
10
|
-
} from '
|
|
11
|
-
import { ItemsMainCategoriesType } from '
|
|
12
|
-
import ProbabilityCache from '
|
|
10
|
+
} from './legacy/data/items';
|
|
11
|
+
import { ItemsMainCategoriesType } from './legacy/data/items.type';
|
|
12
|
+
import ProbabilityCache from './legacy/data/probabilityCache';
|
|
13
13
|
import { average, randInt } from './math';
|
|
14
14
|
|
|
15
15
|
const useLocalStorage = false;
|
package/index.ts
CHANGED
|
@@ -11,6 +11,7 @@ import * as api from './api';
|
|
|
11
11
|
import * as guid from './guid';
|
|
12
12
|
import * as number from './number';
|
|
13
13
|
import * as string from './string';
|
|
14
|
+
import * as log from './log';
|
|
14
15
|
import * as process2 from './process';
|
|
15
16
|
import * as web3 from './web3';
|
|
16
17
|
import * as math from './math';
|
|
@@ -21,52 +22,6 @@ import * as rpc from './rpc';
|
|
|
21
22
|
|
|
22
23
|
export * as decoder from './decoder';
|
|
23
24
|
|
|
24
|
-
const path = require('path');
|
|
25
|
-
const writeLogs = false;
|
|
26
|
-
const logPrefix = process.env.LOG_PREFIX || '[APP]';
|
|
27
|
-
|
|
28
|
-
export const isDebug =
|
|
29
|
-
process.env.HOME === '/Users/dev' ||
|
|
30
|
-
process.env.HOME === '/home/dev' ||
|
|
31
|
-
process.env.HOME === '/root' ||
|
|
32
|
-
process.env.LOG === '1';
|
|
33
|
-
|
|
34
|
-
export function logError(...msgs) {
|
|
35
|
-
console.log(logPrefix, nowReadable(), ...msgs);
|
|
36
|
-
|
|
37
|
-
// const errorLog = jetpack.read(path.resolve('./public/data/errors.json'), 'json') || [];
|
|
38
|
-
|
|
39
|
-
// for (const msg of msgs) {
|
|
40
|
-
// errorLog.push(JSON.stringify(msg));
|
|
41
|
-
// }
|
|
42
|
-
|
|
43
|
-
if (writeLogs) {
|
|
44
|
-
// jetpack.write(path.resolve('./public/data/errors.json'), JSON.stringify(errorLog, null, 2), { atomic: true });
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
// console.log(msgs);
|
|
48
|
-
|
|
49
|
-
// throw new Error(msgs.join('; '));
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
export function log(...msgs) {
|
|
53
|
-
if (isDebug) {
|
|
54
|
-
console.log(logPrefix, nowReadable(), ...msgs);
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
if (writeLogs) {
|
|
58
|
-
// const logData = jetpack.read(path.resolve('../public/data/log.json'), 'json') || [];
|
|
59
|
-
// for (const msg of msgs) {
|
|
60
|
-
// logData.push(JSON.stringify(msg));
|
|
61
|
-
// }
|
|
62
|
-
// jetpack.write(path.resolve('./public/data/log.json'), JSON.stringify(logData, null, 2));
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
export function nowReadable() {
|
|
67
|
-
return new Date().toISOString().replace(/T/, ' ').replace(/\..+/, '');
|
|
68
|
-
}
|
|
69
|
-
|
|
70
25
|
export function wait(ms) {
|
|
71
26
|
return new Promise((resolve) => setTimeout(resolve, ms));
|
|
72
27
|
}
|
package/legacy/data/items.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { removeTimezoneOffset } from '../../
|
|
1
|
+
import { removeTimezoneOffset } from '../../time';
|
|
2
2
|
import ItemAttributes from './generated/itemAttributes.json';
|
|
3
3
|
import generatedItems from './generated/items.json';
|
|
4
4
|
import { ItemCategoriesType, ItemsMainCategoriesType } from './items.type';
|
package/log.ts
CHANGED
|
@@ -1,5 +1,51 @@
|
|
|
1
|
+
const path = require('path');
|
|
2
|
+
const writeLogs = false;
|
|
3
|
+
const logPrefix = process.env.LOG_PREFIX || '[APP]';
|
|
4
|
+
|
|
5
|
+
export function nowReadable() {
|
|
6
|
+
return new Date().toISOString().replace(/T/, ' ').replace(/\..+/, '');
|
|
7
|
+
}
|
|
8
|
+
|
|
1
9
|
export function dev(...props: any) {
|
|
2
10
|
if (process.env.NODE_ENV === 'development') {
|
|
3
|
-
console.log(`[ARKEN]`, props)
|
|
11
|
+
console.log(`[ARKEN]`, props);
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export const isDebug =
|
|
16
|
+
process.env.HOME === '/Users/dev' ||
|
|
17
|
+
process.env.HOME === '/home/dev' ||
|
|
18
|
+
process.env.HOME === '/root' ||
|
|
19
|
+
process.env.LOG === '1';
|
|
20
|
+
|
|
21
|
+
export function logError(...msgs) {
|
|
22
|
+
console.log(logPrefix, nowReadable(), ...msgs);
|
|
23
|
+
|
|
24
|
+
// const errorLog = jetpack.read(path.resolve('./public/data/errors.json'), 'json') || [];
|
|
25
|
+
|
|
26
|
+
// for (const msg of msgs) {
|
|
27
|
+
// errorLog.push(JSON.stringify(msg));
|
|
28
|
+
// }
|
|
29
|
+
|
|
30
|
+
if (writeLogs) {
|
|
31
|
+
// jetpack.write(path.resolve('./public/data/errors.json'), JSON.stringify(errorLog, null, 2), { atomic: true });
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
// console.log(msgs);
|
|
35
|
+
|
|
36
|
+
// throw new Error(msgs.join('; '));
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export function log(...msgs) {
|
|
40
|
+
if (isDebug) {
|
|
41
|
+
console.log(logPrefix, nowReadable(), ...msgs);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
if (writeLogs) {
|
|
45
|
+
// const logData = jetpack.read(path.resolve('../public/data/log.json'), 'json') || [];
|
|
46
|
+
// for (const msg of msgs) {
|
|
47
|
+
// logData.push(JSON.stringify(msg));
|
|
48
|
+
// }
|
|
49
|
+
// jetpack.write(path.resolve('./public/data/log.json'), JSON.stringify(logData, null, 2));
|
|
4
50
|
}
|
|
5
51
|
}
|
package/merkle.ts
CHANGED
|
@@ -2,13 +2,15 @@
|
|
|
2
2
|
|
|
3
3
|
import keccak256 from 'keccak256';
|
|
4
4
|
import crypto from 'crypto';
|
|
5
|
-
import { MerkleNode } from '../modules/core/core.models';
|
|
5
|
+
// import { MerkleNode } from '../modules/core/core.models';
|
|
6
6
|
import { generateProof } from './zk'; // your UpdateLeaf zk utils
|
|
7
7
|
import { buildPoseidon } from 'circomlibjs';
|
|
8
8
|
|
|
9
9
|
const TREE_DEPTH = 16; // must match UpdateLeaf(16)
|
|
10
10
|
const TREE_SIZE = 1 << TREE_DEPTH;
|
|
11
11
|
|
|
12
|
+
const MerkleNode = {} as any; // todo: fix
|
|
13
|
+
|
|
12
14
|
// -----------------------------------------------------------------------------
|
|
13
15
|
// Poseidon setup
|
|
14
16
|
// -----------------------------------------------------------------------------
|
package/mongo.ts
CHANGED
|
@@ -23,7 +23,7 @@ import { VirtualType, HydratedDocument } from 'mongoose';
|
|
|
23
23
|
|
|
24
24
|
export type { Mixed, ObjectIdSchemaDefinition, AnyArray, StringSchemaDefinition } from 'mongoose'; // Mixed type
|
|
25
25
|
import pluralize from 'pluralize';
|
|
26
|
-
import { toCamelCase } from '
|
|
26
|
+
import { toCamelCase } from './string';
|
|
27
27
|
export { z } from 'zod';
|
|
28
28
|
|
|
29
29
|
export { Schema } from 'mongoose';
|
package/package.json
CHANGED
package/process.ts
CHANGED
package/trpc/socketLink.ts
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
//
|
|
3
3
|
import { TRPCClientError, type TRPCLink, createTRPCProxyClient } from '@trpc/client';
|
|
4
4
|
import { observable } from '@trpc/server/observable';
|
|
5
|
-
import { serialize, deserialize } from '../
|
|
6
|
-
import { generateShortId } from '../
|
|
5
|
+
import { serialize, deserialize } from '../rpc';
|
|
6
|
+
import { generateShortId } from '../db';
|
|
7
7
|
|
|
8
8
|
// ======================
|
|
9
9
|
// Types
|
package/trpc/socketServer.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { AnyRouter } from '@trpc/server';
|
|
2
|
-
import { serialize, deserialize } from '../
|
|
2
|
+
import { serialize, deserialize } from '../rpc';
|
|
3
3
|
|
|
4
4
|
export type CreateCallerFactory<TRouter extends AnyRouter = AnyRouter> = (router: TRouter) => (ctx: any) => any;
|
|
5
5
|
|
package/tsconfig.json
CHANGED
|
@@ -20,10 +20,7 @@
|
|
|
20
20
|
"resolveJsonModule": true,
|
|
21
21
|
"allowSyntheticDefaultImports": true,
|
|
22
22
|
"types": ["jest", "node"],
|
|
23
|
-
"paths": {
|
|
24
|
-
"~/*": ["*"]
|
|
25
|
-
},
|
|
26
|
-
"baseUrl": "./",
|
|
23
|
+
"paths": {},
|
|
27
24
|
"allowJs": true,
|
|
28
25
|
"declaration": true,
|
|
29
26
|
"isolatedModules": true,
|
|
@@ -47,6 +44,7 @@
|
|
|
47
44
|
"trpc/**/*",
|
|
48
45
|
"types/**/*",
|
|
49
46
|
"web3/**/*",
|
|
47
|
+
"time/**/*",
|
|
50
48
|
"./api.ts",
|
|
51
49
|
"./array.ts",
|
|
52
50
|
"./browser.ts",
|
package/web3.ts
CHANGED
|
@@ -5,8 +5,8 @@ import CryptoJS from 'crypto-js';
|
|
|
5
5
|
import ethersAddress from '@ethersproject/address';
|
|
6
6
|
import { Contract } from '@ethersproject/contracts';
|
|
7
7
|
import { Web3Provider } from '@ethersproject/providers';
|
|
8
|
-
import { log, logError } from '.';
|
|
9
8
|
import { ethers } from 'ethers';
|
|
9
|
+
import { log, logError } from './log';
|
|
10
10
|
|
|
11
11
|
// const fetchPrice = async (id, vs = 'usd') => {
|
|
12
12
|
// const response = await fetch(`https://api.coingecko.com/api/v3/simple/price?ids=${id}&vs_currencies=${vs}`)
|
|
@@ -72,6 +72,7 @@ export async function iterateBlocks(app, name, address, fromBlock, toBlock, even
|
|
|
72
72
|
export const getAddress = (address) => {
|
|
73
73
|
const mainNetChainId = 56;
|
|
74
74
|
const chainId =
|
|
75
|
+
// @ts-ignore
|
|
75
76
|
typeof window !== 'undefined' && window?.location?.hostname === 'testnet.arken.gg'
|
|
76
77
|
? 97
|
|
77
78
|
: process.env.REACT_APP_CHAIN_ID;
|
package/websocket.ts
CHANGED
package/zod.ts
CHANGED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import * as mongo from '../../util/mongo';
|
|
2
|
-
import type * as Types from './area.types';
|
|
3
|
-
export declare const Area: mongo.Model<any> | mongo.Model<Types.AreaDocument>;
|
|
4
|
-
export declare const AreaLandmark: mongo.Model<any> | mongo.Model<Types.AreaLandmarkDocument>;
|
|
5
|
-
export declare const AreaType: mongo.Model<any> | mongo.Model<Types.AreaTypeDocument>;
|
|
6
|
-
export declare const AreaNameChoice: mongo.Model<any> | mongo.Model<Types.AreaNameChoiceDocument>;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import * as mongo from '../../util/mongo';
|
|
2
|
-
export const Area = mongo.createModel('Area', {
|
|
3
|
-
type: { type: String, default: 'Zone' },
|
|
4
|
-
shortDescription: { type: String },
|
|
5
|
-
});
|
|
6
|
-
export const AreaLandmark = mongo.createModel('AreaLandmark', {
|
|
7
|
-
areaId: { type: mongo.Schema.Types.ObjectId, ref: 'Area' },
|
|
8
|
-
});
|
|
9
|
-
export const AreaType = mongo.createModel('AreaType', {});
|
|
10
|
-
export const AreaNameChoice = mongo.createModel('AreaNameChoice', {});
|
|
11
|
-
//# sourceMappingURL=area.models.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"area.models.js","sourceRoot":"","sources":["../../../modules/area/area.models.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,kBAAkB,CAAC;AAG1C,MAAM,CAAC,MAAM,IAAI,GAAG,KAAK,CAAC,WAAW,CAAqB,MAAM,EAAE;IAChE,IAAI,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE;IACvC,gBAAgB,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE;CAEnC,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,YAAY,GAAG,KAAK,CAAC,WAAW,CAA6B,cAAc,EAAE;IACxF,MAAM,EAAE,EAAE,IAAI,EAAE,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,QAAQ,EAAE,GAAG,EAAE,MAAM,EAAE;CAC3D,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,QAAQ,GAAG,KAAK,CAAC,WAAW,CAAyB,UAAU,EAAE,EAAE,CAAC,CAAC;AAClF,MAAM,CAAC,MAAM,cAAc,GAAG,KAAK,CAAC,WAAW,CAA+B,gBAAgB,EAAE,EAAE,CAAC,CAAC"}
|
|
@@ -1,274 +0,0 @@
|
|
|
1
|
-
import { z as zod } from 'zod';
|
|
2
|
-
import type { RouterContext } from '../../types';
|
|
3
|
-
import { inferRouterOutputs, inferRouterInputs } from '../../schema';
|
|
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
|
-
getArea: import("@trpc/server").TRPCQueryProcedure<{
|
|
63
|
-
input: {
|
|
64
|
-
data?: any;
|
|
65
|
-
skip?: number;
|
|
66
|
-
cursor?: Record<string, any>;
|
|
67
|
-
where?: {
|
|
68
|
-
[x: string]: any;
|
|
69
|
-
};
|
|
70
|
-
orderBy?: Record<string, "asc" | "desc">;
|
|
71
|
-
include?: Record<string, boolean>;
|
|
72
|
-
select?: Record<string, boolean>;
|
|
73
|
-
limit?: number;
|
|
74
|
-
};
|
|
75
|
-
output: any;
|
|
76
|
-
}>;
|
|
77
|
-
getAreas: import("@trpc/server").TRPCQueryProcedure<{
|
|
78
|
-
input: {
|
|
79
|
-
data?: any;
|
|
80
|
-
skip?: number;
|
|
81
|
-
cursor?: Record<string, any>;
|
|
82
|
-
where?: {
|
|
83
|
-
[x: string]: any;
|
|
84
|
-
};
|
|
85
|
-
orderBy?: Record<string, "asc" | "desc">;
|
|
86
|
-
include?: Record<string, boolean>;
|
|
87
|
-
select?: Record<string, boolean>;
|
|
88
|
-
limit?: number;
|
|
89
|
-
};
|
|
90
|
-
output: any;
|
|
91
|
-
}>;
|
|
92
|
-
saveArea: import("@trpc/server").TRPCMutationProcedure<{
|
|
93
|
-
input: {
|
|
94
|
-
data?: any;
|
|
95
|
-
skip?: number;
|
|
96
|
-
cursor?: Record<string, any>;
|
|
97
|
-
where?: {
|
|
98
|
-
[x: string]: any;
|
|
99
|
-
};
|
|
100
|
-
orderBy?: Record<string, "asc" | "desc">;
|
|
101
|
-
include?: Record<string, boolean>;
|
|
102
|
-
select?: Record<string, boolean>;
|
|
103
|
-
limit?: number;
|
|
104
|
-
};
|
|
105
|
-
output: {
|
|
106
|
-
id?: string | import("mongoose").Types.ObjectId;
|
|
107
|
-
};
|
|
108
|
-
}>;
|
|
109
|
-
getAreaLandmark: import("@trpc/server").TRPCQueryProcedure<{
|
|
110
|
-
input: {
|
|
111
|
-
query?: {
|
|
112
|
-
skip?: number;
|
|
113
|
-
take?: number;
|
|
114
|
-
cursor?: Record<string, any>;
|
|
115
|
-
where?: any;
|
|
116
|
-
orderBy?: Record<string, "asc" | "desc">;
|
|
117
|
-
include?: Record<string, boolean>;
|
|
118
|
-
select?: Record<string, boolean>;
|
|
119
|
-
};
|
|
120
|
-
};
|
|
121
|
-
output: any;
|
|
122
|
-
}>;
|
|
123
|
-
createAreaLandmark: import("@trpc/server").TRPCMutationProcedure<{
|
|
124
|
-
input: {
|
|
125
|
-
data?: {
|
|
126
|
-
name?: string;
|
|
127
|
-
data?: any;
|
|
128
|
-
description?: string;
|
|
129
|
-
key?: string;
|
|
130
|
-
status?: "Archived" | "Paused" | "Pending" | "Active";
|
|
131
|
-
meta?: any;
|
|
132
|
-
merkleLeaf?: string;
|
|
133
|
-
merkleIndex?: number;
|
|
134
|
-
createdById?: string | import("mongoose").Types.ObjectId;
|
|
135
|
-
editedById?: string | import("mongoose").Types.ObjectId;
|
|
136
|
-
deletedById?: string | import("mongoose").Types.ObjectId;
|
|
137
|
-
createdDate?: Date;
|
|
138
|
-
updatedDate?: Date;
|
|
139
|
-
deletedDate?: Date;
|
|
140
|
-
applicationId?: string | import("mongoose").Types.ObjectId;
|
|
141
|
-
ownerId?: string | import("mongoose").Types.ObjectId;
|
|
142
|
-
areaId?: string | import("mongoose").Types.ObjectId;
|
|
143
|
-
area?: string | import("mongoose").Types.ObjectId;
|
|
144
|
-
};
|
|
145
|
-
};
|
|
146
|
-
output: any;
|
|
147
|
-
}>;
|
|
148
|
-
updateAreaLandmark: import("@trpc/server").TRPCMutationProcedure<{
|
|
149
|
-
input: {
|
|
150
|
-
data?: {
|
|
151
|
-
id?: string | import("mongoose").Types.ObjectId;
|
|
152
|
-
name?: string;
|
|
153
|
-
data?: any;
|
|
154
|
-
description?: string;
|
|
155
|
-
key?: string;
|
|
156
|
-
status?: "Archived" | "Paused" | "Pending" | "Active";
|
|
157
|
-
meta?: any;
|
|
158
|
-
merkleLeaf?: string;
|
|
159
|
-
merkleIndex?: number;
|
|
160
|
-
createdById?: string | import("mongoose").Types.ObjectId;
|
|
161
|
-
editedById?: string | import("mongoose").Types.ObjectId;
|
|
162
|
-
deletedById?: string | import("mongoose").Types.ObjectId;
|
|
163
|
-
createdDate?: Date;
|
|
164
|
-
updatedDate?: Date;
|
|
165
|
-
deletedDate?: Date;
|
|
166
|
-
applicationId?: string | import("mongoose").Types.ObjectId;
|
|
167
|
-
ownerId?: string | import("mongoose").Types.ObjectId;
|
|
168
|
-
areaId?: string | import("mongoose").Types.ObjectId;
|
|
169
|
-
area?: string | import("mongoose").Types.ObjectId;
|
|
170
|
-
};
|
|
171
|
-
query?: {
|
|
172
|
-
skip?: number;
|
|
173
|
-
take?: number;
|
|
174
|
-
cursor?: Record<string, any>;
|
|
175
|
-
where?: any;
|
|
176
|
-
orderBy?: Record<string, "asc" | "desc">;
|
|
177
|
-
include?: Record<string, boolean>;
|
|
178
|
-
select?: Record<string, boolean>;
|
|
179
|
-
};
|
|
180
|
-
};
|
|
181
|
-
output: any;
|
|
182
|
-
}>;
|
|
183
|
-
getAreaType: import("@trpc/server").TRPCQueryProcedure<{
|
|
184
|
-
input: {
|
|
185
|
-
query?: {
|
|
186
|
-
skip?: number;
|
|
187
|
-
take?: number;
|
|
188
|
-
cursor?: Record<string, any>;
|
|
189
|
-
where?: any;
|
|
190
|
-
orderBy?: Record<string, "asc" | "desc">;
|
|
191
|
-
include?: Record<string, boolean>;
|
|
192
|
-
select?: Record<string, boolean>;
|
|
193
|
-
};
|
|
194
|
-
};
|
|
195
|
-
output: any;
|
|
196
|
-
}>;
|
|
197
|
-
createAreaType: import("@trpc/server").TRPCMutationProcedure<{
|
|
198
|
-
input: {
|
|
199
|
-
data?: {
|
|
200
|
-
name?: string;
|
|
201
|
-
data?: any;
|
|
202
|
-
description?: string;
|
|
203
|
-
key?: string;
|
|
204
|
-
status?: "Archived" | "Paused" | "Pending" | "Active";
|
|
205
|
-
meta?: any;
|
|
206
|
-
merkleLeaf?: string;
|
|
207
|
-
merkleIndex?: number;
|
|
208
|
-
createdById?: string | import("mongoose").Types.ObjectId;
|
|
209
|
-
editedById?: string | import("mongoose").Types.ObjectId;
|
|
210
|
-
deletedById?: string | import("mongoose").Types.ObjectId;
|
|
211
|
-
createdDate?: Date;
|
|
212
|
-
updatedDate?: Date;
|
|
213
|
-
deletedDate?: Date;
|
|
214
|
-
applicationId?: string | import("mongoose").Types.ObjectId;
|
|
215
|
-
ownerId?: string | import("mongoose").Types.ObjectId;
|
|
216
|
-
};
|
|
217
|
-
};
|
|
218
|
-
output: any;
|
|
219
|
-
}>;
|
|
220
|
-
updateAreaType: import("@trpc/server").TRPCMutationProcedure<{
|
|
221
|
-
input: {
|
|
222
|
-
data?: {
|
|
223
|
-
id?: string | import("mongoose").Types.ObjectId;
|
|
224
|
-
name?: string;
|
|
225
|
-
data?: any;
|
|
226
|
-
description?: string;
|
|
227
|
-
key?: string;
|
|
228
|
-
status?: "Archived" | "Paused" | "Pending" | "Active";
|
|
229
|
-
meta?: any;
|
|
230
|
-
merkleLeaf?: string;
|
|
231
|
-
merkleIndex?: number;
|
|
232
|
-
createdById?: string | import("mongoose").Types.ObjectId;
|
|
233
|
-
editedById?: string | import("mongoose").Types.ObjectId;
|
|
234
|
-
deletedById?: string | import("mongoose").Types.ObjectId;
|
|
235
|
-
createdDate?: Date;
|
|
236
|
-
updatedDate?: Date;
|
|
237
|
-
deletedDate?: Date;
|
|
238
|
-
applicationId?: string | import("mongoose").Types.ObjectId;
|
|
239
|
-
ownerId?: string | import("mongoose").Types.ObjectId;
|
|
240
|
-
};
|
|
241
|
-
query?: {
|
|
242
|
-
skip?: number;
|
|
243
|
-
take?: number;
|
|
244
|
-
cursor?: Record<string, any>;
|
|
245
|
-
where?: any;
|
|
246
|
-
orderBy?: Record<string, "asc" | "desc">;
|
|
247
|
-
include?: Record<string, boolean>;
|
|
248
|
-
select?: Record<string, boolean>;
|
|
249
|
-
};
|
|
250
|
-
};
|
|
251
|
-
output: {
|
|
252
|
-
id?: string | import("mongoose").Types.ObjectId;
|
|
253
|
-
name?: string;
|
|
254
|
-
data?: any;
|
|
255
|
-
description?: string;
|
|
256
|
-
key?: string;
|
|
257
|
-
status?: "Archived" | "Paused" | "Pending" | "Active";
|
|
258
|
-
meta?: any;
|
|
259
|
-
merkleLeaf?: string;
|
|
260
|
-
merkleIndex?: number;
|
|
261
|
-
createdById?: string | import("mongoose").Types.ObjectId;
|
|
262
|
-
editedById?: string | import("mongoose").Types.ObjectId;
|
|
263
|
-
deletedById?: string | import("mongoose").Types.ObjectId;
|
|
264
|
-
createdDate?: Date;
|
|
265
|
-
updatedDate?: Date;
|
|
266
|
-
deletedDate?: Date;
|
|
267
|
-
applicationId?: string | import("mongoose").Types.ObjectId;
|
|
268
|
-
ownerId?: string | import("mongoose").Types.ObjectId;
|
|
269
|
-
};
|
|
270
|
-
}>;
|
|
271
|
-
}>;
|
|
272
|
-
export type Router = ReturnType<typeof createRouter>;
|
|
273
|
-
export type RouterInput = inferRouterInputs<Router>;
|
|
274
|
-
export type RouterOutput = inferRouterOutputs<Router>;
|