@arken/node 1.5.1 → 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/db.ts +76 -1
- package/{util/decoder.ts → decoder.ts} +3 -3
- package/index.ts +306 -18
- package/legacy/data/items.ts +1 -1
- package/log.ts +51 -0
- package/{util/merkle.ts → merkle.ts} +3 -1
- package/{util/mongo.ts → mongo.ts} +1 -1
- package/package.json +3 -3
- package/{util/process.ts → process.ts} +1 -1
- package/trpc/socketLink.ts +2 -2
- package/trpc/socketServer.ts +1 -1
- package/tsconfig.json +35 -6
- package/util.ts +1 -0
- package/{util/web3.ts → web3.ts} +2 -1
- package/{util/websocket.ts → websocket.ts} +1 -1
- package/{util/zod.ts → 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/modules/area/area.models.ts +0 -15
- package/modules/area/area.router.ts +0 -74
- package/modules/area/area.schema.ts +0 -22
- package/modules/area/area.service.ts +0 -124
- package/modules/area/area.types.ts +0 -26
- package/modules/area/index.ts +0 -5
- package/modules/asset/asset.models.ts +0 -59
- package/modules/asset/asset.router.ts +0 -55
- package/modules/asset/asset.schema.ts +0 -27
- package/modules/asset/asset.service.ts +0 -85
- package/modules/asset/asset.types.ts +0 -22
- package/modules/asset/index.ts +0 -5
- package/modules/chain/chain.models.ts +0 -50
- package/modules/chain/chain.router.ts +0 -104
- package/modules/chain/chain.schema.ts +0 -52
- package/modules/chain/chain.service.ts +0 -167
- package/modules/chain/chain.types.ts +0 -24
- package/modules/chain/index.ts +0 -5
- package/modules/character/character.models.ts +0 -174
- package/modules/character/character.router.ts +0 -314
- package/modules/character/character.schema.ts +0 -147
- package/modules/character/character.service.ts +0 -876
- package/modules/character/character.types.ts +0 -64
- package/modules/character/index.ts +0 -5
- package/modules/chat/chat.models.ts +0 -43
- package/modules/chat/chat.router.ts +0 -67
- package/modules/chat/chat.schema.ts +0 -36
- package/modules/chat/chat.service.ts +0 -128
- package/modules/chat/chat.types.ts +0 -20
- package/modules/chat/index.ts +0 -5
- package/modules/collection/collection.models.ts +0 -76
- package/modules/collection/collection.router.ts +0 -91
- package/modules/collection/collection.schema.ts +0 -90
- package/modules/collection/collection.service.ts +0 -192
- package/modules/collection/collection.types.ts +0 -36
- package/modules/collection/index.ts +0 -5
- package/modules/core/core.models.ts +0 -1380
- package/modules/core/core.router.ts +0 -1781
- package/modules/core/core.schema.ts +0 -847
- package/modules/core/core.service.ts +0 -2824
- package/modules/core/core.types.ts +0 -340
- package/modules/core/index.ts +0 -5
- package/modules/core/mail/applyPatchesOrMail.ts +0 -568
- package/modules/core/mail/mailClaimablePatchesBatch.ts +0 -381
- package/modules/game/game.models.ts +0 -53
- package/modules/game/game.router.ts +0 -110
- package/modules/game/game.schema.ts +0 -23
- package/modules/game/game.service.ts +0 -143
- package/modules/game/game.types.ts +0 -28
- package/modules/game/index.ts +0 -5
- package/modules/interface/index.ts +0 -5
- package/modules/interface/interface.canonicalize.ts +0 -279
- package/modules/interface/interface.models.ts +0 -40
- package/modules/interface/interface.router.ts +0 -175
- package/modules/interface/interface.schema.ts +0 -59
- package/modules/interface/interface.service.ts +0 -356
- package/modules/interface/interface.types.ts +0 -25
- package/modules/item/index.ts +0 -5
- package/modules/item/item.models.ts +0 -124
- package/modules/item/item.router.ts +0 -103
- package/modules/item/item.schema.ts +0 -120
- package/modules/item/item.service.ts +0 -167
- package/modules/item/item.types.ts +0 -74
- package/modules/job/index.ts +0 -5
- package/modules/job/job.models.ts +0 -14
- package/modules/job/job.router.ts +0 -44
- package/modules/job/job.schema.ts +0 -9
- package/modules/job/job.service.ts +0 -243
- package/modules/job/job.types.ts +0 -23
- package/modules/market/index.ts +0 -5
- package/modules/market/market.models.ts +0 -113
- package/modules/market/market.router.ts +0 -73
- package/modules/market/market.schema.ts +0 -140
- package/modules/market/market.service.ts +0 -122
- package/modules/market/market.types.ts +0 -56
- package/modules/product/index.ts +0 -5
- package/modules/product/product.models.ts +0 -166
- package/modules/product/product.router.ts +0 -93
- package/modules/product/product.schema.ts +0 -149
- package/modules/product/product.service.ts +0 -160
- package/modules/product/product.types.ts +0 -33
- package/modules/profile/index.ts +0 -5
- package/modules/profile/profile.models.ts +0 -214
- package/modules/profile/profile.router.ts +0 -72
- package/modules/profile/profile.schema.ts +0 -156
- package/modules/profile/profile.service.ts +0 -149
- package/modules/profile/profile.types.ts +0 -22
- package/modules/raffle/index.ts +0 -5
- package/modules/raffle/raffle.models.ts +0 -44
- package/modules/raffle/raffle.router.ts +0 -90
- package/modules/raffle/raffle.schema.ts +0 -32
- package/modules/raffle/raffle.service.ts +0 -167
- package/modules/raffle/raffle.types.ts +0 -30
- package/modules/skill/index.ts +0 -5
- package/modules/skill/skill.models.ts +0 -16
- package/modules/skill/skill.router.ts +0 -201
- package/modules/skill/skill.schema.ts +0 -40
- package/modules/skill/skill.service.ts +0 -390
- package/modules/skill/skill.types.ts +0 -33
- package/modules/video/index.ts +0 -5
- package/modules/video/video.models.ts +0 -25
- package/modules/video/video.router.ts +0 -143
- package/modules/video/video.schema.ts +0 -46
- package/modules/video/video.service.ts +0 -274
- package/modules/video/video.types.ts +0 -33
- package/router.ts +0 -49
- package/types.ts +0 -183
- package/util/db/index.ts +0 -7
- package/util/db/isPostgresError.ts +0 -9
- package/util/db/isUniqueConstraintViolation.ts +0 -3
- package/util/db.ts +0 -62
- package/util/index.ts +0 -351
- package/util/log.ts +0 -5
- /package/{util/api.ts → api.ts} +0 -0
- /package/{util/array.ts → array.ts} +0 -0
- /package/{util/browser.ts → browser.ts} +0 -0
- /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/{util/codebase.ts → codebase.ts} +0 -0
- /package/{util/config.ts → config.ts} +0 -0
- /package/{util/decoder.test.ts → decoder.test.ts} +0 -0
- /package/{util/format.ts → format.ts} +0 -0
- /package/{util/guid.ts → guid.ts} +0 -0
- /package/{util/json.ts → json.ts} +0 -0
- /package/{util/math.ts → math.ts} +0 -0
- /package/{util/number.ts → number.ts} +0 -0
- /package/{util/object.ts → object.ts} +0 -0
- /package/{util/otp.ts → otp.ts} +0 -0
- /package/{util/physics.ts → physics.ts} +0 -0
- /package/{util/rpc.ts → rpc.ts} +0 -0
- /package/{util/seer.ts → seer.ts} +0 -0
- /package/{util/string.ts → string.ts} +0 -0
- /package/{util/text.ts → text.ts} +0 -0
- /package/{util/time → time}/date.ts +0 -0
- /package/{util/time → time}/fancyTimeFormat.ts +0 -0
- /package/{util/time → time}/index.ts +0 -0
- /package/{util/time → time}/now.ts +0 -0
- /package/{util/types → types}/mongo.d.ts +0 -0
- /package/{util/web3 → web3}/httpProvider.ts +0 -0
- /package/{util/zk.ts → zk.ts} +0 -0
|
@@ -1,323 +0,0 @@
|
|
|
1
|
-
export declare const Chain: import("zod").ZodObject<import("zod").objectUtil.extendShape<import("zod").objectUtil.extendShape<{
|
|
2
|
-
id: import("zod").ZodOptional<import("zod").ZodString>;
|
|
3
|
-
key: import("zod").ZodOptional<import("zod").ZodString>;
|
|
4
|
-
name: import("zod").ZodOptional<import("zod").ZodString>;
|
|
5
|
-
description: import("zod").ZodOptional<import("zod").ZodString>;
|
|
6
|
-
applicationId: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodEffects<import("zod").ZodString, string, string>, import("zod").ZodType<import("mongoose").Types.ObjectId, import("zod").ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
|
|
7
|
-
ownerId: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodEffects<import("zod").ZodString, string, string>, import("zod").ZodType<import("mongoose").Types.ObjectId, import("zod").ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
|
|
8
|
-
}, {
|
|
9
|
-
id: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodEffects<import("zod").ZodString, string, string>, import("zod").ZodType<import("mongoose").Types.ObjectId, import("zod").ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
|
|
10
|
-
meta: import("zod").ZodAny;
|
|
11
|
-
data: import("zod").ZodAny;
|
|
12
|
-
status: import("zod").ZodDefault<import("zod").ZodEnum<["Paused", "Pending", "Active", "Archived"]>>;
|
|
13
|
-
merkleLeaf: import("zod").ZodOptional<import("zod").ZodString>;
|
|
14
|
-
merkleIndex: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
15
|
-
createdById: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodEffects<import("zod").ZodString, string, string>, import("zod").ZodType<import("mongoose").Types.ObjectId, import("zod").ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
|
|
16
|
-
editedById: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodEffects<import("zod").ZodString, string, string>, import("zod").ZodType<import("mongoose").Types.ObjectId, import("zod").ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
|
|
17
|
-
deletedById: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodEffects<import("zod").ZodString, string, string>, import("zod").ZodType<import("mongoose").Types.ObjectId, import("zod").ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
|
|
18
|
-
createdDate: import("zod").ZodDefault<import("zod").ZodDate>;
|
|
19
|
-
updatedDate: import("zod").ZodOptional<import("zod").ZodDate>;
|
|
20
|
-
deletedDate: import("zod").ZodOptional<import("zod").ZodDate>;
|
|
21
|
-
}>, {
|
|
22
|
-
content: import("zod").ZodString;
|
|
23
|
-
type: import("zod").ZodString;
|
|
24
|
-
standard: import("zod").ZodString;
|
|
25
|
-
}>, "strip", import("zod").ZodTypeAny, {
|
|
26
|
-
id?: string | import("mongoose").Types.ObjectId;
|
|
27
|
-
name?: string;
|
|
28
|
-
data?: any;
|
|
29
|
-
description?: string;
|
|
30
|
-
type?: string;
|
|
31
|
-
key?: string;
|
|
32
|
-
status?: "Archived" | "Paused" | "Pending" | "Active";
|
|
33
|
-
meta?: any;
|
|
34
|
-
merkleLeaf?: string;
|
|
35
|
-
merkleIndex?: number;
|
|
36
|
-
createdById?: string | import("mongoose").Types.ObjectId;
|
|
37
|
-
editedById?: string | import("mongoose").Types.ObjectId;
|
|
38
|
-
deletedById?: string | import("mongoose").Types.ObjectId;
|
|
39
|
-
createdDate?: Date;
|
|
40
|
-
updatedDate?: Date;
|
|
41
|
-
deletedDate?: Date;
|
|
42
|
-
applicationId?: string | import("mongoose").Types.ObjectId;
|
|
43
|
-
ownerId?: string | import("mongoose").Types.ObjectId;
|
|
44
|
-
content?: string;
|
|
45
|
-
standard?: string;
|
|
46
|
-
}, {
|
|
47
|
-
id?: string | import("mongoose").Types.ObjectId;
|
|
48
|
-
name?: string;
|
|
49
|
-
data?: any;
|
|
50
|
-
description?: string;
|
|
51
|
-
type?: string;
|
|
52
|
-
key?: string;
|
|
53
|
-
status?: "Archived" | "Paused" | "Pending" | "Active";
|
|
54
|
-
meta?: any;
|
|
55
|
-
merkleLeaf?: string;
|
|
56
|
-
merkleIndex?: number;
|
|
57
|
-
createdById?: string | import("mongoose").Types.ObjectId;
|
|
58
|
-
editedById?: string | import("mongoose").Types.ObjectId;
|
|
59
|
-
deletedById?: string | import("mongoose").Types.ObjectId;
|
|
60
|
-
createdDate?: Date;
|
|
61
|
-
updatedDate?: Date;
|
|
62
|
-
deletedDate?: Date;
|
|
63
|
-
applicationId?: string | import("mongoose").Types.ObjectId;
|
|
64
|
-
ownerId?: string | import("mongoose").Types.ObjectId;
|
|
65
|
-
content?: string;
|
|
66
|
-
standard?: string;
|
|
67
|
-
}>;
|
|
68
|
-
export declare const ChainContract: import("zod").ZodObject<import("zod").objectUtil.extendShape<import("zod").objectUtil.extendShape<{
|
|
69
|
-
id: import("zod").ZodOptional<import("zod").ZodString>;
|
|
70
|
-
key: import("zod").ZodOptional<import("zod").ZodString>;
|
|
71
|
-
name: import("zod").ZodOptional<import("zod").ZodString>;
|
|
72
|
-
description: import("zod").ZodOptional<import("zod").ZodString>;
|
|
73
|
-
applicationId: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodEffects<import("zod").ZodString, string, string>, import("zod").ZodType<import("mongoose").Types.ObjectId, import("zod").ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
|
|
74
|
-
ownerId: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodEffects<import("zod").ZodString, string, string>, import("zod").ZodType<import("mongoose").Types.ObjectId, import("zod").ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
|
|
75
|
-
}, {
|
|
76
|
-
id: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodEffects<import("zod").ZodString, string, string>, import("zod").ZodType<import("mongoose").Types.ObjectId, import("zod").ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
|
|
77
|
-
meta: import("zod").ZodAny;
|
|
78
|
-
data: import("zod").ZodAny;
|
|
79
|
-
status: import("zod").ZodDefault<import("zod").ZodEnum<["Paused", "Pending", "Active", "Archived"]>>;
|
|
80
|
-
merkleLeaf: import("zod").ZodOptional<import("zod").ZodString>;
|
|
81
|
-
merkleIndex: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
82
|
-
createdById: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodEffects<import("zod").ZodString, string, string>, import("zod").ZodType<import("mongoose").Types.ObjectId, import("zod").ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
|
|
83
|
-
editedById: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodEffects<import("zod").ZodString, string, string>, import("zod").ZodType<import("mongoose").Types.ObjectId, import("zod").ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
|
|
84
|
-
deletedById: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodEffects<import("zod").ZodString, string, string>, import("zod").ZodType<import("mongoose").Types.ObjectId, import("zod").ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
|
|
85
|
-
createdDate: import("zod").ZodDefault<import("zod").ZodDate>;
|
|
86
|
-
updatedDate: import("zod").ZodOptional<import("zod").ZodDate>;
|
|
87
|
-
deletedDate: import("zod").ZodOptional<import("zod").ZodDate>;
|
|
88
|
-
}>, {
|
|
89
|
-
chainId: import("zod").ZodUnion<[import("zod").ZodEffects<import("zod").ZodString, string, string>, import("zod").ZodType<import("mongoose").Types.ObjectId, import("zod").ZodTypeDef, import("mongoose").Types.ObjectId>]>;
|
|
90
|
-
content: import("zod").ZodOptional<import("zod").ZodString>;
|
|
91
|
-
address: import("zod").ZodString;
|
|
92
|
-
type: import("zod").ZodString;
|
|
93
|
-
standards: import("zod").ZodArray<import("zod").ZodUnion<[import("zod").ZodEffects<import("zod").ZodString, string, string>, import("zod").ZodType<import("mongoose").Types.ObjectId, import("zod").ZodTypeDef, import("mongoose").Types.ObjectId>]>, "many">;
|
|
94
|
-
}>, "strip", import("zod").ZodTypeAny, {
|
|
95
|
-
id?: string | import("mongoose").Types.ObjectId;
|
|
96
|
-
name?: string;
|
|
97
|
-
data?: any;
|
|
98
|
-
description?: string;
|
|
99
|
-
type?: string;
|
|
100
|
-
key?: string;
|
|
101
|
-
status?: "Archived" | "Paused" | "Pending" | "Active";
|
|
102
|
-
address?: string;
|
|
103
|
-
meta?: any;
|
|
104
|
-
merkleLeaf?: string;
|
|
105
|
-
merkleIndex?: number;
|
|
106
|
-
createdById?: string | import("mongoose").Types.ObjectId;
|
|
107
|
-
editedById?: string | import("mongoose").Types.ObjectId;
|
|
108
|
-
deletedById?: string | import("mongoose").Types.ObjectId;
|
|
109
|
-
createdDate?: Date;
|
|
110
|
-
updatedDate?: Date;
|
|
111
|
-
deletedDate?: Date;
|
|
112
|
-
applicationId?: string | import("mongoose").Types.ObjectId;
|
|
113
|
-
ownerId?: string | import("mongoose").Types.ObjectId;
|
|
114
|
-
standards?: (string | import("mongoose").Types.ObjectId)[];
|
|
115
|
-
chainId?: string | import("mongoose").Types.ObjectId;
|
|
116
|
-
content?: string;
|
|
117
|
-
}, {
|
|
118
|
-
id?: string | import("mongoose").Types.ObjectId;
|
|
119
|
-
name?: string;
|
|
120
|
-
data?: any;
|
|
121
|
-
description?: string;
|
|
122
|
-
type?: string;
|
|
123
|
-
key?: string;
|
|
124
|
-
status?: "Archived" | "Paused" | "Pending" | "Active";
|
|
125
|
-
address?: string;
|
|
126
|
-
meta?: any;
|
|
127
|
-
merkleLeaf?: string;
|
|
128
|
-
merkleIndex?: number;
|
|
129
|
-
createdById?: string | import("mongoose").Types.ObjectId;
|
|
130
|
-
editedById?: string | import("mongoose").Types.ObjectId;
|
|
131
|
-
deletedById?: string | import("mongoose").Types.ObjectId;
|
|
132
|
-
createdDate?: Date;
|
|
133
|
-
updatedDate?: Date;
|
|
134
|
-
deletedDate?: Date;
|
|
135
|
-
applicationId?: string | import("mongoose").Types.ObjectId;
|
|
136
|
-
ownerId?: string | import("mongoose").Types.ObjectId;
|
|
137
|
-
standards?: (string | import("mongoose").Types.ObjectId)[];
|
|
138
|
-
chainId?: string | import("mongoose").Types.ObjectId;
|
|
139
|
-
content?: string;
|
|
140
|
-
}>;
|
|
141
|
-
export declare const ChainToken: import("zod").ZodObject<import("zod").objectUtil.extendShape<import("zod").objectUtil.extendShape<{
|
|
142
|
-
id: import("zod").ZodOptional<import("zod").ZodString>;
|
|
143
|
-
key: import("zod").ZodOptional<import("zod").ZodString>;
|
|
144
|
-
name: import("zod").ZodOptional<import("zod").ZodString>;
|
|
145
|
-
description: import("zod").ZodOptional<import("zod").ZodString>;
|
|
146
|
-
applicationId: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodEffects<import("zod").ZodString, string, string>, import("zod").ZodType<import("mongoose").Types.ObjectId, import("zod").ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
|
|
147
|
-
ownerId: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodEffects<import("zod").ZodString, string, string>, import("zod").ZodType<import("mongoose").Types.ObjectId, import("zod").ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
|
|
148
|
-
}, {
|
|
149
|
-
id: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodEffects<import("zod").ZodString, string, string>, import("zod").ZodType<import("mongoose").Types.ObjectId, import("zod").ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
|
|
150
|
-
meta: import("zod").ZodAny;
|
|
151
|
-
data: import("zod").ZodAny;
|
|
152
|
-
status: import("zod").ZodDefault<import("zod").ZodEnum<["Paused", "Pending", "Active", "Archived"]>>;
|
|
153
|
-
merkleLeaf: import("zod").ZodOptional<import("zod").ZodString>;
|
|
154
|
-
merkleIndex: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
155
|
-
createdById: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodEffects<import("zod").ZodString, string, string>, import("zod").ZodType<import("mongoose").Types.ObjectId, import("zod").ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
|
|
156
|
-
editedById: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodEffects<import("zod").ZodString, string, string>, import("zod").ZodType<import("mongoose").Types.ObjectId, import("zod").ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
|
|
157
|
-
deletedById: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodEffects<import("zod").ZodString, string, string>, import("zod").ZodType<import("mongoose").Types.ObjectId, import("zod").ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
|
|
158
|
-
createdDate: import("zod").ZodDefault<import("zod").ZodDate>;
|
|
159
|
-
updatedDate: import("zod").ZodOptional<import("zod").ZodDate>;
|
|
160
|
-
deletedDate: import("zod").ZodOptional<import("zod").ZodDate>;
|
|
161
|
-
}>, {
|
|
162
|
-
chainId: import("zod").ZodUnion<[import("zod").ZodEffects<import("zod").ZodString, string, string>, import("zod").ZodType<import("mongoose").Types.ObjectId, import("zod").ZodTypeDef, import("mongoose").Types.ObjectId>]>;
|
|
163
|
-
chainContractId: import("zod").ZodUnion<[import("zod").ZodEffects<import("zod").ZodString, string, string>, import("zod").ZodType<import("mongoose").Types.ObjectId, import("zod").ZodTypeDef, import("mongoose").Types.ObjectId>]>;
|
|
164
|
-
address: import("zod").ZodString;
|
|
165
|
-
decimals: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
166
|
-
rank: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
167
|
-
description: import("zod").ZodOptional<import("zod").ZodString>;
|
|
168
|
-
content: import("zod").ZodOptional<import("zod").ZodString>;
|
|
169
|
-
price: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
170
|
-
hourChange: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
171
|
-
dayChange: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
172
|
-
weekChange: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
173
|
-
marketCap: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
174
|
-
volume: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
175
|
-
symbol: import("zod").ZodString;
|
|
176
|
-
circulatingSupply: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
177
|
-
cmcLink: import("zod").ZodOptional<import("zod").ZodString>;
|
|
178
|
-
movementDown: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
179
|
-
movementUp: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
180
|
-
enteredTop100: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
181
|
-
exitedTop100: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
182
|
-
largeMoveDown: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
183
|
-
}>, "strip", import("zod").ZodTypeAny, {
|
|
184
|
-
symbol?: string;
|
|
185
|
-
id?: string | import("mongoose").Types.ObjectId;
|
|
186
|
-
name?: string;
|
|
187
|
-
data?: any;
|
|
188
|
-
description?: string;
|
|
189
|
-
key?: string;
|
|
190
|
-
status?: "Archived" | "Paused" | "Pending" | "Active";
|
|
191
|
-
address?: string;
|
|
192
|
-
meta?: any;
|
|
193
|
-
merkleLeaf?: string;
|
|
194
|
-
merkleIndex?: number;
|
|
195
|
-
createdById?: string | import("mongoose").Types.ObjectId;
|
|
196
|
-
editedById?: string | import("mongoose").Types.ObjectId;
|
|
197
|
-
deletedById?: string | import("mongoose").Types.ObjectId;
|
|
198
|
-
createdDate?: Date;
|
|
199
|
-
updatedDate?: Date;
|
|
200
|
-
deletedDate?: Date;
|
|
201
|
-
applicationId?: string | import("mongoose").Types.ObjectId;
|
|
202
|
-
ownerId?: string | import("mongoose").Types.ObjectId;
|
|
203
|
-
chainId?: string | import("mongoose").Types.ObjectId;
|
|
204
|
-
content?: string;
|
|
205
|
-
chainContractId?: string | import("mongoose").Types.ObjectId;
|
|
206
|
-
decimals?: number;
|
|
207
|
-
rank?: number;
|
|
208
|
-
price?: number;
|
|
209
|
-
hourChange?: number;
|
|
210
|
-
dayChange?: number;
|
|
211
|
-
weekChange?: number;
|
|
212
|
-
marketCap?: number;
|
|
213
|
-
volume?: number;
|
|
214
|
-
circulatingSupply?: number;
|
|
215
|
-
cmcLink?: string;
|
|
216
|
-
movementDown?: number;
|
|
217
|
-
movementUp?: number;
|
|
218
|
-
enteredTop100?: number;
|
|
219
|
-
exitedTop100?: number;
|
|
220
|
-
largeMoveDown?: number;
|
|
221
|
-
}, {
|
|
222
|
-
symbol?: string;
|
|
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
|
-
address?: string;
|
|
230
|
-
meta?: any;
|
|
231
|
-
merkleLeaf?: string;
|
|
232
|
-
merkleIndex?: number;
|
|
233
|
-
createdById?: string | import("mongoose").Types.ObjectId;
|
|
234
|
-
editedById?: string | import("mongoose").Types.ObjectId;
|
|
235
|
-
deletedById?: string | import("mongoose").Types.ObjectId;
|
|
236
|
-
createdDate?: Date;
|
|
237
|
-
updatedDate?: Date;
|
|
238
|
-
deletedDate?: Date;
|
|
239
|
-
applicationId?: string | import("mongoose").Types.ObjectId;
|
|
240
|
-
ownerId?: string | import("mongoose").Types.ObjectId;
|
|
241
|
-
chainId?: string | import("mongoose").Types.ObjectId;
|
|
242
|
-
content?: string;
|
|
243
|
-
chainContractId?: string | import("mongoose").Types.ObjectId;
|
|
244
|
-
decimals?: number;
|
|
245
|
-
rank?: number;
|
|
246
|
-
price?: number;
|
|
247
|
-
hourChange?: number;
|
|
248
|
-
dayChange?: number;
|
|
249
|
-
weekChange?: number;
|
|
250
|
-
marketCap?: number;
|
|
251
|
-
volume?: number;
|
|
252
|
-
circulatingSupply?: number;
|
|
253
|
-
cmcLink?: string;
|
|
254
|
-
movementDown?: number;
|
|
255
|
-
movementUp?: number;
|
|
256
|
-
enteredTop100?: number;
|
|
257
|
-
exitedTop100?: number;
|
|
258
|
-
largeMoveDown?: number;
|
|
259
|
-
}>;
|
|
260
|
-
export declare const ChainTransaction: import("zod").ZodObject<import("zod").objectUtil.extendShape<import("zod").objectUtil.extendShape<{
|
|
261
|
-
id: import("zod").ZodOptional<import("zod").ZodString>;
|
|
262
|
-
key: import("zod").ZodOptional<import("zod").ZodString>;
|
|
263
|
-
name: import("zod").ZodOptional<import("zod").ZodString>;
|
|
264
|
-
description: import("zod").ZodOptional<import("zod").ZodString>;
|
|
265
|
-
applicationId: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodEffects<import("zod").ZodString, string, string>, import("zod").ZodType<import("mongoose").Types.ObjectId, import("zod").ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
|
|
266
|
-
ownerId: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodEffects<import("zod").ZodString, string, string>, import("zod").ZodType<import("mongoose").Types.ObjectId, import("zod").ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
|
|
267
|
-
}, {
|
|
268
|
-
id: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodEffects<import("zod").ZodString, string, string>, import("zod").ZodType<import("mongoose").Types.ObjectId, import("zod").ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
|
|
269
|
-
meta: import("zod").ZodAny;
|
|
270
|
-
data: import("zod").ZodAny;
|
|
271
|
-
status: import("zod").ZodDefault<import("zod").ZodEnum<["Paused", "Pending", "Active", "Archived"]>>;
|
|
272
|
-
merkleLeaf: import("zod").ZodOptional<import("zod").ZodString>;
|
|
273
|
-
merkleIndex: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
274
|
-
createdById: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodEffects<import("zod").ZodString, string, string>, import("zod").ZodType<import("mongoose").Types.ObjectId, import("zod").ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
|
|
275
|
-
editedById: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodEffects<import("zod").ZodString, string, string>, import("zod").ZodType<import("mongoose").Types.ObjectId, import("zod").ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
|
|
276
|
-
deletedById: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodEffects<import("zod").ZodString, string, string>, import("zod").ZodType<import("mongoose").Types.ObjectId, import("zod").ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
|
|
277
|
-
createdDate: import("zod").ZodDefault<import("zod").ZodDate>;
|
|
278
|
-
updatedDate: import("zod").ZodOptional<import("zod").ZodDate>;
|
|
279
|
-
deletedDate: import("zod").ZodOptional<import("zod").ZodDate>;
|
|
280
|
-
}>, {
|
|
281
|
-
value: import("zod").ZodString;
|
|
282
|
-
chainId: import("zod").ZodUnion<[import("zod").ZodEffects<import("zod").ZodString, string, string>, import("zod").ZodType<import("mongoose").Types.ObjectId, import("zod").ZodTypeDef, import("mongoose").Types.ObjectId>]>;
|
|
283
|
-
}>, "strip", import("zod").ZodTypeAny, {
|
|
284
|
-
id?: string | import("mongoose").Types.ObjectId;
|
|
285
|
-
name?: string;
|
|
286
|
-
value?: string;
|
|
287
|
-
data?: any;
|
|
288
|
-
description?: string;
|
|
289
|
-
key?: string;
|
|
290
|
-
status?: "Archived" | "Paused" | "Pending" | "Active";
|
|
291
|
-
meta?: any;
|
|
292
|
-
merkleLeaf?: string;
|
|
293
|
-
merkleIndex?: number;
|
|
294
|
-
createdById?: string | import("mongoose").Types.ObjectId;
|
|
295
|
-
editedById?: string | import("mongoose").Types.ObjectId;
|
|
296
|
-
deletedById?: string | import("mongoose").Types.ObjectId;
|
|
297
|
-
createdDate?: Date;
|
|
298
|
-
updatedDate?: Date;
|
|
299
|
-
deletedDate?: Date;
|
|
300
|
-
applicationId?: string | import("mongoose").Types.ObjectId;
|
|
301
|
-
ownerId?: string | import("mongoose").Types.ObjectId;
|
|
302
|
-
chainId?: string | import("mongoose").Types.ObjectId;
|
|
303
|
-
}, {
|
|
304
|
-
id?: string | import("mongoose").Types.ObjectId;
|
|
305
|
-
name?: string;
|
|
306
|
-
value?: string;
|
|
307
|
-
data?: any;
|
|
308
|
-
description?: string;
|
|
309
|
-
key?: string;
|
|
310
|
-
status?: "Archived" | "Paused" | "Pending" | "Active";
|
|
311
|
-
meta?: any;
|
|
312
|
-
merkleLeaf?: string;
|
|
313
|
-
merkleIndex?: number;
|
|
314
|
-
createdById?: string | import("mongoose").Types.ObjectId;
|
|
315
|
-
editedById?: string | import("mongoose").Types.ObjectId;
|
|
316
|
-
deletedById?: string | import("mongoose").Types.ObjectId;
|
|
317
|
-
createdDate?: Date;
|
|
318
|
-
updatedDate?: Date;
|
|
319
|
-
deletedDate?: Date;
|
|
320
|
-
applicationId?: string | import("mongoose").Types.ObjectId;
|
|
321
|
-
ownerId?: string | import("mongoose").Types.ObjectId;
|
|
322
|
-
chainId?: string | import("mongoose").Types.ObjectId;
|
|
323
|
-
}>;
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import { z, ObjectId, Entity } from '../../schema';
|
|
2
|
-
export const Chain = Entity.merge(z.object({
|
|
3
|
-
content: z.string().min(1),
|
|
4
|
-
type: z.string().max(100).min(1),
|
|
5
|
-
standard: z.string().max(100).min(1),
|
|
6
|
-
}));
|
|
7
|
-
export const ChainContract = Entity.merge(z.object({
|
|
8
|
-
chainId: ObjectId,
|
|
9
|
-
content: z.string().min(1).optional(),
|
|
10
|
-
address: z.string().max(100),
|
|
11
|
-
type: z.string().max(100).min(1),
|
|
12
|
-
standards: z.array(ObjectId),
|
|
13
|
-
}));
|
|
14
|
-
export const ChainToken = Entity.merge(z.object({
|
|
15
|
-
chainId: ObjectId,
|
|
16
|
-
chainContractId: ObjectId,
|
|
17
|
-
address: z.string().max(100),
|
|
18
|
-
decimals: z.number().optional(),
|
|
19
|
-
rank: z.number().optional(),
|
|
20
|
-
description: z.string().optional(),
|
|
21
|
-
content: z.string().min(1).optional(),
|
|
22
|
-
price: z.number().optional(),
|
|
23
|
-
hourChange: z.number().optional(),
|
|
24
|
-
dayChange: z.number().optional(),
|
|
25
|
-
weekChange: z.number().optional(),
|
|
26
|
-
marketCap: z.number().optional(),
|
|
27
|
-
volume: z.number().optional(),
|
|
28
|
-
symbol: z.string().min(1),
|
|
29
|
-
circulatingSupply: z.number().optional(),
|
|
30
|
-
cmcLink: z.string().optional(),
|
|
31
|
-
movementDown: z.number().optional(),
|
|
32
|
-
movementUp: z.number().optional(),
|
|
33
|
-
enteredTop100: z.number().optional(),
|
|
34
|
-
exitedTop100: z.number().optional(),
|
|
35
|
-
largeMoveDown: z.number().optional(),
|
|
36
|
-
}));
|
|
37
|
-
export const ChainTransaction = Entity.merge(z.object({
|
|
38
|
-
value: z.string().min(1),
|
|
39
|
-
chainId: ObjectId,
|
|
40
|
-
}));
|
|
41
|
-
//# sourceMappingURL=chain.schema.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"chain.schema.js","sourceRoot":"","sources":["../../../modules/chain/chain.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAEnD,MAAM,CAAC,MAAM,KAAK,GAAG,MAAM,CAAC,KAAK,CAC/B,CAAC,CAAC,MAAM,CAAC;IACP,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IAC1B,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC;IAChC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C,QAAQ,EAAE;IAChC,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACjC,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAChC,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC7B,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IACzB,iBAAiB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACxC,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC9B,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACnC,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACjC,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACpC,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACnC,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CACrC,CAAC,CACH,CAAC;AAEF,MAAM,CAAC,MAAM,gBAAgB,GAAG,MAAM,CAAC,KAAK,CAC1C,CAAC,CAAC,MAAM,CAAC;IACP,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IACxB,OAAO,EAAE,QAAQ;CAClB,CAAC,CACH,CAAC"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import type { RouterInput, RouterOutput, RouterContext } from './chain.types';
|
|
2
|
-
export declare class Service {
|
|
3
|
-
getChain(input: RouterInput['getChain'], ctx: RouterContext): Promise<RouterOutput['getChain']>;
|
|
4
|
-
getChainContract(input: RouterInput['getChainContract'], ctx: RouterContext): Promise<RouterOutput['getChainContract']>;
|
|
5
|
-
getChainToken(input: RouterInput['getChainToken'], ctx: RouterContext): Promise<RouterOutput['getChainToken']>;
|
|
6
|
-
getChainTransaction(input: RouterInput['getChainTransaction'], ctx: RouterContext): Promise<RouterOutput['getChainTransaction']>;
|
|
7
|
-
createChain(input: RouterInput['createChain'], ctx: RouterContext): Promise<RouterOutput['createChain']>;
|
|
8
|
-
createChainContract(input: RouterInput['createChainContract'], ctx: RouterContext): Promise<RouterOutput['createChainContract']>;
|
|
9
|
-
createChainToken(input: RouterInput['createChainToken'], ctx: RouterContext): Promise<RouterOutput['createChainToken']>;
|
|
10
|
-
createChainTransaction(input: RouterInput['createChainTransaction'], ctx: RouterContext): Promise<RouterOutput['createChainTransaction']>;
|
|
11
|
-
updateChain(input: RouterInput['updateChain'], ctx: RouterContext): Promise<RouterOutput['updateChain']>;
|
|
12
|
-
updateChainContract(input: RouterInput['updateChainContract'], ctx: RouterContext): Promise<RouterOutput['updateChainContract']>;
|
|
13
|
-
updateChainToken(input: RouterInput['updateChainToken'], ctx: RouterContext): Promise<RouterOutput['updateChainToken']>;
|
|
14
|
-
updateChainTransaction(input: RouterInput['updateChainTransaction'], ctx: RouterContext): Promise<RouterOutput['updateChainTransaction']>;
|
|
15
|
-
}
|
|
@@ -1,115 +0,0 @@
|
|
|
1
|
-
import { ARXError } from '../../util/rpc';
|
|
2
|
-
import { getFilter } from '../../util/api';
|
|
3
|
-
export class Service {
|
|
4
|
-
async getChain(input, ctx) {
|
|
5
|
-
if (!input)
|
|
6
|
-
throw new ARXError('NO_INPUT');
|
|
7
|
-
console.log('Chain.Service.getChain', input);
|
|
8
|
-
const chain = await ctx.app.model.Chain.findOne(getFilter(input)).lean().exec();
|
|
9
|
-
if (!chain)
|
|
10
|
-
throw new Error('Chain not found');
|
|
11
|
-
return chain;
|
|
12
|
-
}
|
|
13
|
-
async getChainContract(input, ctx) {
|
|
14
|
-
if (!input)
|
|
15
|
-
throw new ARXError('NO_INPUT');
|
|
16
|
-
console.log('Chain.Service.getChainContract', input);
|
|
17
|
-
const chainContract = await ctx.app.model.ChainContract.findOne(getFilter(input)).lean().exec();
|
|
18
|
-
if (!chainContract)
|
|
19
|
-
throw new Error('ChainContract not found');
|
|
20
|
-
return chainContract;
|
|
21
|
-
}
|
|
22
|
-
async getChainToken(input, ctx) {
|
|
23
|
-
if (!input)
|
|
24
|
-
throw new ARXError('NO_INPUT');
|
|
25
|
-
console.log('Chain.Service.getChainToken', input);
|
|
26
|
-
const chainToken = await ctx.app.model.ChainToken.findOne(getFilter(input)).lean().exec();
|
|
27
|
-
if (!chainToken)
|
|
28
|
-
throw new Error('ChainToken not found');
|
|
29
|
-
return chainToken;
|
|
30
|
-
}
|
|
31
|
-
async getChainTransaction(input, ctx) {
|
|
32
|
-
if (!input)
|
|
33
|
-
throw new ARXError('NO_INPUT');
|
|
34
|
-
console.log('Chain.Service.getChainTransaction', input);
|
|
35
|
-
const chainTransaction = await ctx.app.model.ChainTransaction.findOne(getFilter(input)).lean().exec();
|
|
36
|
-
if (!chainTransaction)
|
|
37
|
-
throw new Error('ChainTransaction not found');
|
|
38
|
-
return chainTransaction;
|
|
39
|
-
}
|
|
40
|
-
async createChain(input, ctx) {
|
|
41
|
-
if (!input)
|
|
42
|
-
throw new ARXError('NO_INPUT');
|
|
43
|
-
console.log('Chain.Service.createChain', input);
|
|
44
|
-
const chain = await ctx.app.model.Chain.create(input);
|
|
45
|
-
return chain;
|
|
46
|
-
}
|
|
47
|
-
async createChainContract(input, ctx) {
|
|
48
|
-
if (!input)
|
|
49
|
-
throw new ARXError('NO_INPUT');
|
|
50
|
-
console.log('Chain.Service.createChainContract', input);
|
|
51
|
-
const chainContract = await ctx.app.model.ChainContract.create(input);
|
|
52
|
-
return chainContract;
|
|
53
|
-
}
|
|
54
|
-
async createChainToken(input, ctx) {
|
|
55
|
-
if (!input)
|
|
56
|
-
throw new ARXError('NO_INPUT');
|
|
57
|
-
console.log('Chain.Service.createChainToken', input);
|
|
58
|
-
const chainToken = await ctx.app.model.ChainToken.create(input);
|
|
59
|
-
return chainToken;
|
|
60
|
-
}
|
|
61
|
-
async createChainTransaction(input, ctx) {
|
|
62
|
-
if (!input)
|
|
63
|
-
throw new ARXError('NO_INPUT');
|
|
64
|
-
console.log('Chain.Service.createChainTransaction', input);
|
|
65
|
-
const chainTransaction = await ctx.app.model.ChainToken.create(input);
|
|
66
|
-
return chainTransaction;
|
|
67
|
-
}
|
|
68
|
-
async updateChain(input, ctx) {
|
|
69
|
-
if (!input)
|
|
70
|
-
throw new ARXError('NO_INPUT');
|
|
71
|
-
console.log('Chain.Service.updateChain', input);
|
|
72
|
-
const updatedChain = await ctx.app.model.Game.findByIdAndUpdate(input.where.id.equals, { new: true }).lean().exec();
|
|
73
|
-
if (!updatedChain)
|
|
74
|
-
throw new Error('Chain update failed');
|
|
75
|
-
return updatedChain;
|
|
76
|
-
}
|
|
77
|
-
async updateChainContract(input, ctx) {
|
|
78
|
-
if (!input)
|
|
79
|
-
throw new ARXError('NO_INPUT');
|
|
80
|
-
console.log('Chain.Service.updateChainContract', input);
|
|
81
|
-
const updatedChainContract = await ctx.app.model.ChainContract.findByIdAndUpdate(input.where.id.equals, {
|
|
82
|
-
new: true,
|
|
83
|
-
})
|
|
84
|
-
.lean()
|
|
85
|
-
.exec();
|
|
86
|
-
if (!updatedChainContract)
|
|
87
|
-
throw new Error('ChainContract update failed');
|
|
88
|
-
return updatedChainContract;
|
|
89
|
-
}
|
|
90
|
-
async updateChainToken(input, ctx) {
|
|
91
|
-
if (!input)
|
|
92
|
-
throw new ARXError('NO_INPUT');
|
|
93
|
-
console.log('Chain.Service.updateChainToken', input);
|
|
94
|
-
const updatedChainToken = await ctx.app.model.ChainToken.findByIdAndUpdate(input.where.id.equals, { new: true })
|
|
95
|
-
.lean()
|
|
96
|
-
.exec();
|
|
97
|
-
if (!updatedChainToken)
|
|
98
|
-
throw new Error('ChainToken update failed');
|
|
99
|
-
return updatedChainToken;
|
|
100
|
-
}
|
|
101
|
-
async updateChainTransaction(input, ctx) {
|
|
102
|
-
if (!input)
|
|
103
|
-
throw new ARXError('NO_INPUT');
|
|
104
|
-
console.log('Chain.Service.updateChainTransaction', input);
|
|
105
|
-
const updatedChainTransaction = await ctx.app.model.ChainTransaction.findByIdAndUpdate(input.where.id.equals, {
|
|
106
|
-
new: true,
|
|
107
|
-
})
|
|
108
|
-
.lean()
|
|
109
|
-
.exec();
|
|
110
|
-
if (!updatedChainTransaction)
|
|
111
|
-
throw new Error('ChainTransaction update failed');
|
|
112
|
-
return updatedChainTransaction;
|
|
113
|
-
}
|
|
114
|
-
}
|
|
115
|
-
//# sourceMappingURL=chain.service.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"chain.service.js","sourceRoot":"","sources":["../../../modules/chain/chain.service.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAC1C,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAE3C,MAAM,OAAO,OAAO;IAClB,KAAK,CAAC,QAAQ,CAAC,KAA8B,EAAE,GAAkB;QAC/D,IAAI,CAAC,KAAK;YAAE,MAAM,IAAI,QAAQ,CAAC,UAAU,CAAC,CAAC;QAC3C,OAAO,CAAC,GAAG,CAAC,wBAAwB,EAAE,KAAK,CAAC,CAAC;QAE7C,MAAM,KAAK,GAAG,MAAM,GAAG,CAAC,GAAG,CAAC,KAAK,CAAC,KAAK,CAAC,OAAO,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC,IAAI,EAAE,CAAC;QAChF,IAAI,CAAC,KAAK;YAAE,MAAM,IAAI,KAAK,CAAC,iBAAiB,CAAC,CAAC;QAE/C,OAAO,KAAc,CAAC;IACxB,CAAC;IAED,KAAK,CAAC,gBAAgB,CACpB,KAAsC,EACtC,GAAkB;QAElB,IAAI,CAAC,KAAK;YAAE,MAAM,IAAI,QAAQ,CAAC,UAAU,CAAC,CAAC;QAC3C,OAAO,CAAC,GAAG,CAAC,gCAAgC,EAAE,KAAK,CAAC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AAM,IAAI,QAAQ,CAAC,UAAU,CAAC,CAAC;QAC3C,OAAO,CAAC,GAAG,CAAC,gCAAgC,EAAE,KAAK,CAAC,CAAC;QAErD,MAAM,iBAAiB,GAAG,MAAM,GAAG,CAAC,GAAG,CAAC,KAAK,CAAC,UAAU,CAAC,iBAAiB,CAAC,KAAK,CAAC,KAAK,CAAC,EAAE,CAAC,MAAM,EAAE,EAAE,GAAG,EAAE,IAAI,EAAE,CAAC;aAC7G,IAAI,EAAE;aACN,IAAI,EAAE,CAAC;QAEV,IAAI,CAAC,iBAAiB;YAAE,MAAM,IAAI,KAAK,CAAC,0BAA0B,CAAC,CAAC;QAEpE,OAAO,iBAA+B,CAAC;IACzC,CAAC;IAED,KAAK,CAAC,sBAAsB,CAC1B,KAA4C,EAC5C,GAAkB;QAElB,IAAI,CAAC,KAAK;YAAE,MAAM,IAAI,QAAQ,CAAC,UAAU,CAAC,CAAC;QAC3C,OAAO,CAAC,GAAG,CAAC,sCAAsC,EAAE,KAAK,CAAC,CAAC;QAE3D,MAAM,uBAAuB,GAAG,MAAM,GAAG,CAAC,GAAG,CAAC,KAAK,CAAC,gBAAgB,CAAC,iBAAiB,CAAC,KAAK,CAAC,KAAK,CAAC,EAAE,CAAC,MAAM,EAAE;YAC5G,GAAG,EAAE,IAAI;SACV,CAAC;aACC,IAAI,EAAE;aACN,IAAI,EAAE,CAAC;QAEV,IAAI,CAAC,uBAAuB;YAAE,MAAM,IAAI,KAAK,CAAC,gCAAgC,CAAC,CAAC;QAEhF,OAAO,uBAA2C,CAAC;IACrD,CAAC;CACF"}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import * as schema from './chain.schema';
|
|
3
|
-
import { Document, Model } from '../../util/mongo';
|
|
4
|
-
export type * from './chain.router';
|
|
5
|
-
export type * from './chain.service';
|
|
6
|
-
export type { RouterContext } from '../../types';
|
|
7
|
-
export type Chain = z.infer<typeof schema.Chain>;
|
|
8
|
-
export type ChainContract = z.infer<typeof schema.ChainContract>;
|
|
9
|
-
export type ChainToken = z.infer<typeof schema.ChainToken>;
|
|
10
|
-
export type ChainTransaction = z.infer<typeof schema.ChainTransaction>;
|
|
11
|
-
export type ChainDocument = Chain & Document;
|
|
12
|
-
export type ChainContractDocument = ChainContract & Document;
|
|
13
|
-
export type ChainTokenDocument = ChainToken & Document;
|
|
14
|
-
export type ChainTransactionDocument = ChainTransaction & Document;
|
|
15
|
-
export type Mappings = {
|
|
16
|
-
Chain: Model<ChainDocument>;
|
|
17
|
-
ChainContract: Model<ChainContractDocument>;
|
|
18
|
-
ChainToken: Model<ChainTokenDocument>;
|
|
19
|
-
ChainTransaction: Model<ChainTransactionDocument>;
|
|
20
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"chain.types.js","sourceRoot":"","sources":["../../../modules/chain/chain.types.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../modules/chain/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,eAAe,CAAC;AACvC,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AACzC,OAAO,KAAK,OAAO,MAAM,gBAAgB,CAAC;AAC1C,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import * as mongo from '../../util/mongo';
|
|
2
|
-
import type * as Types from './character.types';
|
|
3
|
-
export declare const Character: mongo.Model<any> | mongo.Model<Types.CharacterDocument>;
|
|
4
|
-
export declare const CharacterAbility: mongo.Model<any> | mongo.Model<Types.CharacterAbilityDocument>;
|
|
5
|
-
export declare const CharacterAttribute: mongo.Model<any> | mongo.Model<Types.CharacterAttributeDocument>;
|
|
6
|
-
export declare const CharacterType: mongo.Model<any> | mongo.Model<Types.CharacterTypeDocument>;
|
|
7
|
-
export declare const CharacterClass: mongo.Model<any> | mongo.Model<Types.CharacterClassDocument>;
|
|
8
|
-
export declare const CharacterFaction: mongo.Model<any> | mongo.Model<Types.CharacterFactionDocument>;
|
|
9
|
-
export declare const CharacterRace: mongo.Model<any> | mongo.Model<Types.CharacterRaceDocument>;
|
|
10
|
-
export declare const CharacterGender: mongo.Model<any> | mongo.Model<Types.CharacterGenderDocument>;
|
|
11
|
-
export declare const CharacterPersonality: mongo.Model<any> | mongo.Model<Types.CharacterPersonalityDocument>;
|
|
12
|
-
export declare const CharacterTitle: mongo.Model<any> | mongo.Model<Types.CharacterTitleDocument>;
|
|
13
|
-
export declare const CharacterGuild: mongo.Model<any> | mongo.Model<Types.CharacterGuildDocument>;
|
|
14
|
-
export declare const CharacterNameChoice: mongo.Model<any> | mongo.Model<Types.CharacterNameChoiceDocument>;
|