@arken/node 1.5.2 → 1.5.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.rush/temp/shrinkwrap-deps.json +39 -298
- package/build/api.js.map +1 -0
- package/build/array.js.map +1 -0
- package/build/browser.js.map +1 -0
- package/build/codebase.js.map +1 -0
- package/build/config.js.map +1 -0
- package/build/db.d.ts +41 -0
- package/build/db.js +234 -0
- package/build/db.js.map +1 -0
- package/build/{util/decoder.js → decoder.js} +3 -3
- package/build/decoder.js.map +1 -0
- package/build/format.js.map +1 -0
- package/build/guid.js.map +1 -0
- package/build/index.d.ts +67 -18
- package/build/index.js +213 -18
- package/build/index.js.map +1 -1
- package/build/json.js.map +1 -0
- package/build/legacy/data/items.js +1 -1
- package/build/legacy/data/items.js.map +1 -1
- package/build/log.d.ts +5 -0
- package/build/log.js +28 -0
- package/build/log.js.map +1 -0
- package/build/math.js.map +1 -0
- package/build/{util/merkle.js → merkle.js} +1 -1
- package/build/merkle.js.map +1 -0
- package/build/{util/mongo.js → mongo.js} +1 -1
- package/build/mongo.js.map +1 -0
- package/build/number.js.map +1 -0
- package/build/object.js.map +1 -0
- package/build/otp.js.map +1 -0
- package/build/package.json +4 -17
- package/build/physics.js.map +1 -0
- package/build/{util/process.js → process.js} +1 -1
- package/build/process.js.map +1 -0
- package/build/rpc.js.map +1 -0
- package/build/schema.d.ts +42 -51
- package/build/seer.js.map +1 -0
- package/build/string.js.map +1 -0
- package/build/text.js.map +1 -0
- package/build/time/date.js.map +1 -0
- package/build/time/fancyTimeFormat.js.map +1 -0
- package/build/time/index.js.map +1 -0
- package/build/time/now.js.map +1 -0
- package/build/trpc/socketLink.d.ts +62 -0
- package/build/trpc/socketLink.js +261 -0
- package/build/trpc/socketLink.js.map +1 -0
- package/build/trpc/socketServer.d.ts +15 -0
- package/build/trpc/socketServer.js +47 -0
- package/build/trpc/socketServer.js.map +1 -0
- package/build/tsconfig.tsbuildinfo +1 -1
- package/build/util.d.ts +1 -0
- package/build/util.js +2 -0
- package/build/util.js.map +1 -0
- package/build/web3/httpProvider.js.map +1 -0
- package/build/{util/web3.d.ts → web3.d.ts} +7 -10
- package/build/{util/web3.js → web3.js} +10 -12
- package/build/web3.js.map +1 -0
- package/build/{util/websocket.js → websocket.js} +1 -1
- package/build/websocket.js.map +1 -0
- package/build/zk.js.map +1 -0
- package/build/{util/zod.d.ts → zod.d.ts} +2 -0
- package/build/{util/zod.js → zod.js} +1 -0
- package/build/zod.js.map +1 -0
- package/decoder.ts +3 -3
- package/index.ts +5 -50
- package/legacy/data/items.ts +1 -1
- package/log.ts +47 -1
- package/merkle.ts +3 -1
- package/mongo.ts +1 -1
- package/package.json +2 -15
- package/process.ts +1 -1
- package/trpc/socketLink.ts +2 -2
- package/trpc/socketServer.ts +1 -1
- package/tsconfig.json +2 -4
- package/web3.ts +18 -16
- package/websocket.ts +1 -1
- package/zod.ts +2 -0
- package/build/modules/area/area.models.d.ts +0 -6
- package/build/modules/area/area.models.js +0 -11
- package/build/modules/area/area.models.js.map +0 -1
- package/build/modules/area/area.router.d.ts +0 -274
- package/build/modules/area/area.router.js +0 -59
- package/build/modules/area/area.router.js.map +0 -1
- package/build/modules/area/area.schema.d.ts +0 -245
- package/build/modules/area/area.schema.js +0 -13
- package/build/modules/area/area.schema.js.map +0 -1
- package/build/modules/area/area.service.d.ts +0 -12
- package/build/modules/area/area.service.js +0 -95
- package/build/modules/area/area.service.js.map +0 -1
- package/build/modules/area/area.types.d.ts +0 -20
- package/build/modules/area/area.types.js +0 -2
- package/build/modules/area/area.types.js.map +0 -1
- package/build/modules/area/index.d.ts +0 -5
- package/build/modules/area/index.js +0 -6
- package/build/modules/area/index.js.map +0 -1
- package/build/modules/asset/asset.models.d.ts +0 -5
- package/build/modules/asset/asset.models.js +0 -44
- package/build/modules/asset/asset.models.js.map +0 -1
- package/build/modules/asset/asset.router.d.ts +0 -189
- package/build/modules/asset/asset.router.js +0 -41
- package/build/modules/asset/asset.router.js.map +0 -1
- package/build/modules/asset/asset.schema.d.ts +0 -207
- package/build/modules/asset/asset.schema.js +0 -19
- package/build/modules/asset/asset.schema.js.map +0 -1
- package/build/modules/asset/asset.service.d.ts +0 -9
- package/build/modules/asset/asset.service.js +0 -68
- package/build/modules/asset/asset.service.js.map +0 -1
- package/build/modules/asset/asset.types.d.ts +0 -17
- package/build/modules/asset/asset.types.js +0 -2
- package/build/modules/asset/asset.types.js.map +0 -1
- package/build/modules/asset/index.d.ts +0 -5
- package/build/modules/asset/index.js +0 -6
- package/build/modules/asset/index.js.map +0 -1
- package/build/modules/chain/chain.models.d.ts +0 -6
- package/build/modules/chain/chain.models.js +0 -42
- package/build/modules/chain/chain.models.js.map +0 -1
- package/build/modules/chain/chain.router.d.ts +0 -364
- package/build/modules/chain/chain.router.js +0 -84
- package/build/modules/chain/chain.router.js.map +0 -1
- package/build/modules/chain/chain.schema.d.ts +0 -323
- package/build/modules/chain/chain.schema.js +0 -41
- package/build/modules/chain/chain.schema.js.map +0 -1
- package/build/modules/chain/chain.service.d.ts +0 -15
- package/build/modules/chain/chain.service.js +0 -115
- package/build/modules/chain/chain.service.js.map +0 -1
- package/build/modules/chain/chain.types.d.ts +0 -20
- package/build/modules/chain/chain.types.js +0 -2
- package/build/modules/chain/chain.types.js.map +0 -1
- package/build/modules/chain/index.d.ts +0 -5
- package/build/modules/chain/index.js +0 -6
- package/build/modules/chain/index.js.map +0 -1
- package/build/modules/character/character.models.d.ts +0 -14
- package/build/modules/character/character.models.js +0 -123
- package/build/modules/character/character.models.js.map +0 -1
- package/build/modules/character/character.router.d.ts +0 -945
- package/build/modules/character/character.router.js +0 -246
- package/build/modules/character/character.router.js.map +0 -1
- package/build/modules/character/character.schema.d.ts +0 -1239
- package/build/modules/character/character.schema.js +0 -67
- package/build/modules/character/character.schema.js.map +0 -1
- package/build/modules/character/character.service.d.ts +0 -73
- package/build/modules/character/character.service.js +0 -533
- package/build/modules/character/character.service.js.map +0 -1
- package/build/modules/character/character.types.d.ts +0 -48
- package/build/modules/character/character.types.js +0 -2
- package/build/modules/character/character.types.js.map +0 -1
- package/build/modules/character/index.d.ts +0 -5
- package/build/modules/character/index.js +0 -6
- package/build/modules/character/index.js.map +0 -1
- package/build/modules/chat/chat.models.d.ts +0 -4
- package/build/modules/chat/chat.models.js +0 -35
- package/build/modules/chat/chat.models.js.map +0 -1
- package/build/modules/chat/chat.router.d.ts +0 -223
- package/build/modules/chat/chat.router.js +0 -51
- package/build/modules/chat/chat.router.js.map +0 -1
- package/build/modules/chat/chat.schema.d.ts +0 -183
- package/build/modules/chat/chat.schema.js +0 -29
- package/build/modules/chat/chat.schema.js.map +0 -1
- package/build/modules/chat/chat.service.d.ts +0 -12
- package/build/modules/chat/chat.service.js +0 -85
- package/build/modules/chat/chat.service.js.map +0 -1
- package/build/modules/chat/chat.types.d.ts +0 -14
- package/build/modules/chat/chat.types.js +0 -2
- package/build/modules/chat/chat.types.js.map +0 -1
- package/build/modules/chat/index.d.ts +0 -5
- package/build/modules/chat/index.js +0 -6
- package/build/modules/chat/index.js.map +0 -1
- package/build/modules/collection/collection.models.d.ts +0 -9
- package/build/modules/collection/collection.models.js +0 -69
- package/build/modules/collection/collection.models.js.map +0 -1
- package/build/modules/collection/collection.router.d.ts +0 -361
- package/build/modules/collection/collection.router.js +0 -71
- package/build/modules/collection/collection.router.js.map +0 -1
- package/build/modules/collection/collection.schema.d.ts +0 -676
- package/build/modules/collection/collection.schema.js +0 -70
- package/build/modules/collection/collection.schema.js.map +0 -1
- package/build/modules/collection/collection.service.d.ts +0 -15
- package/build/modules/collection/collection.service.js +0 -117
- package/build/modules/collection/collection.service.js.map +0 -1
- package/build/modules/collection/collection.types.d.ts +0 -29
- package/build/modules/collection/collection.types.js +0 -2
- package/build/modules/collection/collection.types.js.map +0 -1
- package/build/modules/collection/index.d.ts +0 -5
- package/build/modules/collection/index.js +0 -6
- package/build/modules/collection/index.js.map +0 -1
- package/build/modules/core/core.models.d.ts +0 -123
- package/build/modules/core/core.models.js +0 -811
- package/build/modules/core/core.models.js.map +0 -1
- package/build/modules/core/core.router.d.ts +0 -5297
- package/build/modules/core/core.router.js +0 -1372
- package/build/modules/core/core.router.js.map +0 -1
- package/build/modules/core/core.schema.d.ts +0 -5918
- package/build/modules/core/core.schema.js +0 -519
- package/build/modules/core/core.schema.js.map +0 -1
- package/build/modules/core/core.service.d.ts +0 -270
- package/build/modules/core/core.service.js +0 -2515
- package/build/modules/core/core.service.js.map +0 -1
- package/build/modules/core/core.types.d.ts +0 -251
- package/build/modules/core/core.types.js +0 -2
- package/build/modules/core/core.types.js.map +0 -1
- package/build/modules/core/index.d.ts +0 -5
- package/build/modules/core/index.js +0 -6
- package/build/modules/core/index.js.map +0 -1
- package/build/modules/core/mail/applyPatchesOrMail.d.ts +0 -72
- package/build/modules/core/mail/applyPatchesOrMail.js +0 -416
- package/build/modules/core/mail/applyPatchesOrMail.js.map +0 -1
- package/build/modules/core/mail/mailClaimablePatchesBatch.d.ts +0 -51
- package/build/modules/core/mail/mailClaimablePatchesBatch.js +0 -239
- package/build/modules/core/mail/mailClaimablePatchesBatch.js.map +0 -1
- package/build/modules/game/game.models.d.ts +0 -6
- package/build/modules/game/game.models.js +0 -29
- package/build/modules/game/game.models.js.map +0 -1
- package/build/modules/game/game.router.d.ts +0 -428
- package/build/modules/game/game.router.js +0 -90
- package/build/modules/game/game.router.js.map +0 -1
- package/build/modules/game/game.schema.d.ts +0 -344
- package/build/modules/game/game.schema.js +0 -14
- package/build/modules/game/game.schema.js.map +0 -1
- package/build/modules/game/game.service.d.ts +0 -16
- package/build/modules/game/game.service.js +0 -111
- package/build/modules/game/game.service.js.map +0 -1
- package/build/modules/game/game.types.d.ts +0 -20
- package/build/modules/game/game.types.js +0 -2
- package/build/modules/game/game.types.js.map +0 -1
- package/build/modules/game/index.d.ts +0 -5
- package/build/modules/game/index.js +0 -5
- package/build/modules/game/index.js.map +0 -1
- package/build/modules/interface/index.d.ts +0 -5
- package/build/modules/interface/index.js +0 -6
- package/build/modules/interface/index.js.map +0 -1
- package/build/modules/interface/interface.canonicalize.d.ts +0 -2
- package/build/modules/interface/interface.canonicalize.js +0 -241
- package/build/modules/interface/interface.canonicalize.js.map +0 -1
- package/build/modules/interface/interface.models.d.ts +0 -6
- package/build/modules/interface/interface.models.js +0 -30
- package/build/modules/interface/interface.models.js.map +0 -1
- package/build/modules/interface/interface.router.d.ts +0 -472
- package/build/modules/interface/interface.router.js +0 -113
- package/build/modules/interface/interface.router.js.map +0 -1
- package/build/modules/interface/interface.schema.d.ts +0 -313
- package/build/modules/interface/interface.schema.js +0 -36
- package/build/modules/interface/interface.schema.js.map +0 -1
- package/build/modules/interface/interface.service.d.ts +0 -19
- package/build/modules/interface/interface.service.js +0 -168
- package/build/modules/interface/interface.service.js.map +0 -1
- package/build/modules/interface/interface.types.d.ts +0 -19
- package/build/modules/interface/interface.types.js +0 -2
- package/build/modules/interface/interface.types.js.map +0 -1
- package/build/modules/item/index.d.ts +0 -5
- package/build/modules/item/index.js +0 -6
- package/build/modules/item/index.js.map +0 -1
- package/build/modules/item/item.models.d.ts +0 -16
- package/build/modules/item/item.models.js +0 -101
- package/build/modules/item/item.models.js.map +0 -1
- package/build/modules/item/item.router.d.ts +0 -263
- package/build/modules/item/item.router.js +0 -70
- package/build/modules/item/item.router.js.map +0 -1
- package/build/modules/item/item.schema.d.ts +0 -778
- package/build/modules/item/item.schema.js +0 -56
- package/build/modules/item/item.schema.js.map +0 -1
- package/build/modules/item/item.service.d.ts +0 -13
- package/build/modules/item/item.service.js +0 -116
- package/build/modules/item/item.service.js.map +0 -1
- package/build/modules/item/item.types.d.ts +0 -55
- package/build/modules/item/item.types.js +0 -2
- package/build/modules/item/item.types.js.map +0 -1
- package/build/modules/job/index.d.ts +0 -5
- package/build/modules/job/index.js +0 -6
- package/build/modules/job/index.js.map +0 -1
- package/build/modules/job/job.models.d.ts +0 -3
- package/build/modules/job/job.models.js +0 -9
- package/build/modules/job/job.models.js.map +0 -1
- package/build/modules/job/job.router.d.ts +0 -146
- package/build/modules/job/job.router.js +0 -32
- package/build/modules/job/job.router.js.map +0 -1
- package/build/modules/job/job.schema.d.ts +0 -67
- package/build/modules/job/job.schema.js +0 -7
- package/build/modules/job/job.schema.js.map +0 -1
- package/build/modules/job/job.service.d.ts +0 -7
- package/build/modules/job/job.service.js +0 -144
- package/build/modules/job/job.service.js.map +0 -1
- package/build/modules/job/job.types.d.ts +0 -16
- package/build/modules/job/job.types.js +0 -2
- package/build/modules/job/job.types.js.map +0 -1
- package/build/modules/market/index.d.ts +0 -5
- package/build/modules/market/index.js +0 -6
- package/build/modules/market/index.js.map +0 -1
- package/build/modules/market/market.models.d.ts +0 -14
- package/build/modules/market/market.models.js +0 -98
- package/build/modules/market/market.models.js.map +0 -1
- package/build/modules/market/market.router.d.ts +0 -230
- package/build/modules/market/market.router.js +0 -56
- package/build/modules/market/market.router.js.map +0 -1
- package/build/modules/market/market.schema.d.ts +0 -949
- package/build/modules/market/market.schema.js +0 -101
- package/build/modules/market/market.schema.js.map +0 -1
- package/build/modules/market/market.service.d.ts +0 -12
- package/build/modules/market/market.service.js +0 -88
- package/build/modules/market/market.service.js.map +0 -1
- package/build/modules/market/market.types.d.ts +0 -49
- package/build/modules/market/market.types.js +0 -2
- package/build/modules/market/market.types.js.map +0 -1
- package/build/modules/product/index.d.ts +0 -5
- package/build/modules/product/index.js +0 -6
- package/build/modules/product/index.js.map +0 -1
- package/build/modules/product/product.models.d.ts +0 -4
- package/build/modules/product/product.models.js +0 -113
- package/build/modules/product/product.models.js.map +0 -1
- package/build/modules/product/product.router.d.ts +0 -447
- package/build/modules/product/product.router.js +0 -71
- package/build/modules/product/product.router.js.map +0 -1
- package/build/modules/product/product.schema.d.ts +0 -654
- package/build/modules/product/product.schema.js +0 -117
- package/build/modules/product/product.schema.js.map +0 -1
- package/build/modules/product/product.service.d.ts +0 -15
- package/build/modules/product/product.service.js +0 -115
- package/build/modules/product/product.service.js.map +0 -1
- package/build/modules/product/product.types.d.ts +0 -28
- package/build/modules/product/product.types.js +0 -2
- package/build/modules/product/product.types.js.map +0 -1
- package/build/modules/profile/index.d.ts +0 -5
- package/build/modules/profile/index.js +0 -6
- package/build/modules/profile/index.js.map +0 -1
- package/build/modules/profile/profile.models.d.ts +0 -2
- package/build/modules/profile/profile.models.js +0 -165
- package/build/modules/profile/profile.models.js.map +0 -1
- package/build/modules/profile/profile.router.d.ts +0 -163
- package/build/modules/profile/profile.router.js +0 -54
- package/build/modules/profile/profile.router.js.map +0 -1
- package/build/modules/profile/profile.schema.d.ts +0 -1
- package/build/modules/profile/profile.schema.js +0 -138
- package/build/modules/profile/profile.schema.js.map +0 -1
- package/build/modules/profile/profile.service.d.ts +0 -11
- package/build/modules/profile/profile.service.js +0 -120
- package/build/modules/profile/profile.service.js.map +0 -1
- package/build/modules/profile/profile.types.d.ts +0 -16
- package/build/modules/profile/profile.types.js +0 -2
- package/build/modules/profile/profile.types.js.map +0 -1
- package/build/modules/raffle/index.d.ts +0 -5
- package/build/modules/raffle/index.js +0 -6
- package/build/modules/raffle/index.js.map +0 -1
- package/build/modules/raffle/raffle.models.d.ts +0 -6
- package/build/modules/raffle/raffle.models.js +0 -36
- package/build/modules/raffle/raffle.models.js.map +0 -1
- package/build/modules/raffle/raffle.router.d.ts +0 -299
- package/build/modules/raffle/raffle.router.js +0 -71
- package/build/modules/raffle/raffle.router.js.map +0 -1
- package/build/modules/raffle/raffle.schema.d.ts +0 -265
- package/build/modules/raffle/raffle.schema.js +0 -21
- package/build/modules/raffle/raffle.schema.js.map +0 -1
- package/build/modules/raffle/raffle.service.d.ts +0 -15
- package/build/modules/raffle/raffle.service.js +0 -115
- package/build/modules/raffle/raffle.service.js.map +0 -1
- package/build/modules/raffle/raffle.types.d.ts +0 -25
- package/build/modules/raffle/raffle.types.js +0 -2
- package/build/modules/raffle/raffle.types.js.map +0 -1
- package/build/modules/skill/index.d.ts +0 -5
- package/build/modules/skill/index.js +0 -6
- package/build/modules/skill/index.js.map +0 -1
- package/build/modules/skill/skill.models.d.ts +0 -9
- package/build/modules/skill/skill.models.js +0 -9
- package/build/modules/skill/skill.models.js.map +0 -1
- package/build/modules/skill/skill.router.d.ts +0 -659
- package/build/modules/skill/skill.router.js +0 -152
- package/build/modules/skill/skill.router.js.map +0 -1
- package/build/modules/skill/skill.schema.d.ts +0 -548
- package/build/modules/skill/skill.schema.js +0 -26
- package/build/modules/skill/skill.schema.js.map +0 -1
- package/build/modules/skill/skill.service.d.ts +0 -32
- package/build/modules/skill/skill.service.js +0 -279
- package/build/modules/skill/skill.service.js.map +0 -1
- package/build/modules/skill/skill.types.d.ts +0 -29
- package/build/modules/skill/skill.types.js +0 -2
- package/build/modules/skill/skill.types.js.map +0 -1
- package/build/modules/video/index.d.ts +0 -5
- package/build/modules/video/index.js +0 -6
- package/build/modules/video/index.js.map +0 -1
- package/build/modules/video/video.models.d.ts +0 -7
- package/build/modules/video/video.models.js +0 -19
- package/build/modules/video/video.models.js.map +0 -1
- package/build/modules/video/video.router.d.ts +0 -563
- package/build/modules/video/video.router.js +0 -112
- package/build/modules/video/video.router.js.map +0 -1
- package/build/modules/video/video.schema.d.ts +0 -456
- package/build/modules/video/video.schema.js +0 -31
- package/build/modules/video/video.schema.js.map +0 -1
- package/build/modules/video/video.service.d.ts +0 -23
- package/build/modules/video/video.service.js +0 -197
- package/build/modules/video/video.service.js.map +0 -1
- package/build/modules/video/video.types.d.ts +0 -28
- package/build/modules/video/video.types.js +0 -2
- package/build/modules/video/video.types.js.map +0 -1
- package/build/router.d.ts +0 -10406
- package/build/router.js +0 -44
- package/build/router.js.map +0 -1
- package/build/types.d.ts +0 -164
- package/build/types.js +0 -19
- package/build/types.js.map +0 -1
- package/build/util/api.js.map +0 -1
- package/build/util/array.js.map +0 -1
- package/build/util/browser.js.map +0 -1
- package/build/util/codebase.js.map +0 -1
- package/build/util/config.js.map +0 -1
- package/build/util/db/index.d.ts +0 -5
- package/build/util/db/index.js +0 -7
- package/build/util/db/index.js.map +0 -1
- package/build/util/db/isPostgresError.d.ts +0 -2
- package/build/util/db/isPostgresError.js +0 -8
- package/build/util/db/isPostgresError.js.map +0 -1
- package/build/util/db/isUniqueConstraintViolation.d.ts +0 -2
- package/build/util/db/isUniqueConstraintViolation.js +0 -3
- package/build/util/db/isUniqueConstraintViolation.js.map +0 -1
- package/build/util/db.d.ts +0 -6
- package/build/util/db.js +0 -51
- package/build/util/db.js.map +0 -1
- package/build/util/decoder.js.map +0 -1
- package/build/util/decoder.test.d.ts +0 -1
- package/build/util/decoder.test.js +0 -7
- package/build/util/decoder.test.js.map +0 -1
- package/build/util/format.js.map +0 -1
- package/build/util/guid.js.map +0 -1
- package/build/util/index.d.ts +0 -74
- package/build/util/index.js +0 -239
- package/build/util/index.js.map +0 -1
- package/build/util/json.js.map +0 -1
- package/build/util/log.d.ts +0 -1
- package/build/util/log.js +0 -6
- package/build/util/log.js.map +0 -1
- package/build/util/math.js.map +0 -1
- package/build/util/merkle.js.map +0 -1
- package/build/util/mongo.js.map +0 -1
- package/build/util/number.js.map +0 -1
- package/build/util/object.js.map +0 -1
- package/build/util/otp.js.map +0 -1
- package/build/util/physics.js.map +0 -1
- package/build/util/process.js.map +0 -1
- package/build/util/rpc.js.map +0 -1
- package/build/util/seer.js.map +0 -1
- package/build/util/string.js.map +0 -1
- package/build/util/text.js.map +0 -1
- package/build/util/time/date.js.map +0 -1
- package/build/util/time/fancyTimeFormat.js.map +0 -1
- package/build/util/time/index.js.map +0 -1
- package/build/util/time/now.js.map +0 -1
- package/build/util/web3/httpProvider.js.map +0 -1
- package/build/util/web3.js.map +0 -1
- package/build/util/websocket.js.map +0 -1
- package/build/util/zk.js.map +0 -1
- package/build/util/zod.js.map +0 -1
- package/router.ts +0 -49
- package/types.ts +0 -183
- /package/build/{util/api.d.ts → api.d.ts} +0 -0
- /package/build/{util/api.js → api.js} +0 -0
- /package/build/{util/array.d.ts → array.d.ts} +0 -0
- /package/build/{util/array.js → array.js} +0 -0
- /package/build/{util/browser.d.ts → browser.d.ts} +0 -0
- /package/build/{util/browser.js → browser.js} +0 -0
- /package/build/{util/codebase.d.ts → codebase.d.ts} +0 -0
- /package/build/{util/codebase.js → codebase.js} +0 -0
- /package/build/{util/config.d.ts → config.d.ts} +0 -0
- /package/build/{util/config.js → config.js} +0 -0
- /package/build/{util/decoder.d.ts → decoder.d.ts} +0 -0
- /package/build/{util/format.d.ts → format.d.ts} +0 -0
- /package/build/{util/format.js → format.js} +0 -0
- /package/build/{util/guid.d.ts → guid.d.ts} +0 -0
- /package/build/{util/guid.js → guid.js} +0 -0
- /package/build/{util/json.d.ts → json.d.ts} +0 -0
- /package/build/{util/json.js → json.js} +0 -0
- /package/build/{util/math.d.ts → math.d.ts} +0 -0
- /package/build/{util/math.js → math.js} +0 -0
- /package/build/{util/merkle.d.ts → merkle.d.ts} +0 -0
- /package/build/{util/mongo.d.ts → mongo.d.ts} +0 -0
- /package/build/{util/number.d.ts → number.d.ts} +0 -0
- /package/build/{util/number.js → number.js} +0 -0
- /package/build/{util/object.d.ts → object.d.ts} +0 -0
- /package/build/{util/object.js → object.js} +0 -0
- /package/build/{util/otp.d.ts → otp.d.ts} +0 -0
- /package/build/{util/otp.js → otp.js} +0 -0
- /package/build/{util/physics.d.ts → physics.d.ts} +0 -0
- /package/build/{util/physics.js → physics.js} +0 -0
- /package/build/{util/process.d.ts → process.d.ts} +0 -0
- /package/build/{util/rpc.d.ts → rpc.d.ts} +0 -0
- /package/build/{util/rpc.js → rpc.js} +0 -0
- /package/build/{util/seer.d.ts → seer.d.ts} +0 -0
- /package/build/{util/seer.js → seer.js} +0 -0
- /package/build/{util/string.d.ts → string.d.ts} +0 -0
- /package/build/{util/string.js → string.js} +0 -0
- /package/build/{util/text.d.ts → text.d.ts} +0 -0
- /package/build/{util/text.js → text.js} +0 -0
- /package/build/{util/time → time}/date.d.ts +0 -0
- /package/build/{util/time → time}/date.js +0 -0
- /package/build/{util/time → time}/fancyTimeFormat.d.ts +0 -0
- /package/build/{util/time → time}/fancyTimeFormat.js +0 -0
- /package/build/{util/time → time}/index.d.ts +0 -0
- /package/build/{util/time → time}/index.js +0 -0
- /package/build/{util/time → time}/now.d.ts +0 -0
- /package/build/{util/time → time}/now.js +0 -0
- /package/build/{util/web3 → web3}/httpProvider.d.ts +0 -0
- /package/build/{util/web3 → web3}/httpProvider.js +0 -0
- /package/build/{util/websocket.d.ts → websocket.d.ts} +0 -0
- /package/build/{util/zk.d.ts → zk.d.ts} +0 -0
- /package/build/{util/zk.js → zk.js} +0 -0
|
@@ -1,101 +0,0 @@
|
|
|
1
|
-
import { z, Entity, ObjectId } from '../../schema';
|
|
2
|
-
export const Market = Entity.merge(z.object({
|
|
3
|
-
value: z.string(),
|
|
4
|
-
}));
|
|
5
|
-
export const MarketPair = Entity.merge(z.object({
|
|
6
|
-
value: z.string(),
|
|
7
|
-
}));
|
|
8
|
-
export const MarketExchange = Entity.merge(z.object({
|
|
9
|
-
value: z.string(),
|
|
10
|
-
}));
|
|
11
|
-
export const MarketAnalysis = Entity.merge(z.object({
|
|
12
|
-
action: z.enum(['Buy', 'Sell']),
|
|
13
|
-
asset: z.string().min(1),
|
|
14
|
-
signalType: z.string().min(1),
|
|
15
|
-
confidence: z.number().min(0).max(100),
|
|
16
|
-
riskLevel: z.enum(['Low', 'Medium', 'High']),
|
|
17
|
-
timeFrame: z.enum(['Short-Term', 'Long-Term']),
|
|
18
|
-
source: z.string().min(1),
|
|
19
|
-
summary: z.string().min(1),
|
|
20
|
-
labels: z.object({
|
|
21
|
-
sector: z.string().optional(),
|
|
22
|
-
topic: z.string().optional(),
|
|
23
|
-
sentiment: z.enum(['Positive', 'Neutral', 'Negative']).optional(),
|
|
24
|
-
}),
|
|
25
|
-
}));
|
|
26
|
-
export const MarketInvestor = Entity.merge(z.object({
|
|
27
|
-
portfolioIds: z.array(ObjectId),
|
|
28
|
-
totalPnl: z.number().optional(),
|
|
29
|
-
}));
|
|
30
|
-
export const MarketInvestmentPortfolio = Entity.merge(z.object({
|
|
31
|
-
categoryGoals: z.array(z.object({
|
|
32
|
-
category: z.string(),
|
|
33
|
-
goalPercentage: z.number(),
|
|
34
|
-
currentPnl: z.number().optional(),
|
|
35
|
-
historicalPnL: z.number().optional(),
|
|
36
|
-
})),
|
|
37
|
-
investmentIds: z.array(ObjectId),
|
|
38
|
-
totalPnl: z.number().optional(),
|
|
39
|
-
}));
|
|
40
|
-
export const MarketInvestment = Entity.merge(z.object({
|
|
41
|
-
type: z.enum(['Stock', 'ChainToken']),
|
|
42
|
-
category: z.enum(['Historically Safe', 'Economy Bull', 'Economy Bear', 'Custom']),
|
|
43
|
-
amount: z.number(),
|
|
44
|
-
purchasePrice: z.number(),
|
|
45
|
-
currentValue: z.number().optional(),
|
|
46
|
-
pnl: z.number().optional(),
|
|
47
|
-
transactions: z
|
|
48
|
-
.array(z.object({
|
|
49
|
-
date: z.string(),
|
|
50
|
-
type: z.enum(['Buy', 'Sell']),
|
|
51
|
-
price: z.number(),
|
|
52
|
-
quantity: z.number(),
|
|
53
|
-
}))
|
|
54
|
-
.optional(),
|
|
55
|
-
stockId: ObjectId.optional(),
|
|
56
|
-
chainTokenId: ObjectId.optional(),
|
|
57
|
-
}));
|
|
58
|
-
export const MarketStock = Entity.merge(z.object({
|
|
59
|
-
ticker: z.string(),
|
|
60
|
-
companyId: ObjectId,
|
|
61
|
-
marketCap: z.number().optional(),
|
|
62
|
-
aum: z.number().optional(),
|
|
63
|
-
quoteType: z.string(),
|
|
64
|
-
currentPrice: z.number(),
|
|
65
|
-
dailyChange: z.number().optional(),
|
|
66
|
-
dailyChangePercent: z.number().optional(),
|
|
67
|
-
volume: z.number(),
|
|
68
|
-
currency: z.string(),
|
|
69
|
-
}));
|
|
70
|
-
export const MarketToken = Entity.merge(z.object({
|
|
71
|
-
symbol: z.string(),
|
|
72
|
-
currentPrice: z.number(),
|
|
73
|
-
}));
|
|
74
|
-
export const MarketCompany = Entity.merge(z.object({
|
|
75
|
-
ticker: z.string(),
|
|
76
|
-
type: z.enum(['Public Company', 'ETF Issuer', 'Both', 'Other']),
|
|
77
|
-
country: z.string().optional(),
|
|
78
|
-
industry: z.string().optional(),
|
|
79
|
-
sector: z.string().optional(),
|
|
80
|
-
issuedETFs: z.array(ObjectId).optional(),
|
|
81
|
-
}));
|
|
82
|
-
export const MarketETF = Entity.merge(z.object({
|
|
83
|
-
ticker: z.string(),
|
|
84
|
-
issuerId: ObjectId,
|
|
85
|
-
leverage: z.number().optional(),
|
|
86
|
-
country: z.string().optional(),
|
|
87
|
-
currency: z.string().optional(),
|
|
88
|
-
AUM: z.number().optional(),
|
|
89
|
-
industry: z.string().optional(),
|
|
90
|
-
sector: z.string().optional(),
|
|
91
|
-
}));
|
|
92
|
-
export const MarketStockSentiment = Entity.merge(z.object({
|
|
93
|
-
ticker: z.string(),
|
|
94
|
-
companyId: ObjectId,
|
|
95
|
-
sentiment: z.object({
|
|
96
|
-
label: z.enum(['Positive', 'Neutral', 'Negative']),
|
|
97
|
-
score: z.number().min(0).max(1),
|
|
98
|
-
}),
|
|
99
|
-
confidence: z.number().min(0).max(1),
|
|
100
|
-
}));
|
|
101
|
-
//# sourceMappingURL=market.schema.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"market.schema.js","sourceRoot":"","sources":["../../../modules/market/market.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAEnD,MAAM,CAAC,MAAM,MAAM,GAAG,MAAM,CAAC,KAAK,CAChC,CAAC,CAAC,MAAM,CAAC;IACP,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;CAClB,CAAC,CACH,CAAC;AAEF,MAAM,CAAC,MAAM,UAAU,GAAG,MAAM,CAAC,KAAK,CACpC,CAAC,CAAC,MAAM,CAAC;IACP,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;CAClB,CAAC,CACH,CAAC;AAEF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,SAAS,EAAE,UAAU,CAAC,CAAC;QAClD,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC;KAChC,CAAC;IACF,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC;CACrC,CAAC,CACH,CAAC"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import type { RouterContext, RouterInput, RouterOutput } from './market.types';
|
|
2
|
-
export declare class Service {
|
|
3
|
-
getMarket(input: RouterInput['getMarket'], ctx: RouterContext): Promise<RouterOutput['getMarket']>;
|
|
4
|
-
createMarket(input: RouterInput['createMarket'], ctx: RouterContext): Promise<RouterOutput['createMarket']>;
|
|
5
|
-
updateMarket(input: RouterInput['updateMarket'], ctx: RouterContext): Promise<RouterOutput['updateMarket']>;
|
|
6
|
-
getMarketPair(input: RouterInput['getMarketPair'], ctx: RouterContext): Promise<RouterOutput['getMarketPair']>;
|
|
7
|
-
createMarketPair(input: RouterInput['createMarketPair'], ctx: RouterContext): Promise<RouterOutput['createMarketPair']>;
|
|
8
|
-
updateMarketPair(input: RouterInput['updateMarketPair'], ctx: RouterContext): Promise<RouterOutput['updateMarketPair']>;
|
|
9
|
-
getMarketExchange(input: RouterInput['getMarketExchange'], ctx: RouterContext): Promise<RouterOutput['getMarketExchange']>;
|
|
10
|
-
createMarketExchange(input: RouterInput['createMarketExchange'], ctx: RouterContext): Promise<RouterOutput['createMarketExchange']>;
|
|
11
|
-
updateMarketExchange(input: RouterInput['updateMarketExchange'], ctx: RouterContext): Promise<RouterOutput['updateMarketExchange']>;
|
|
12
|
-
}
|
|
@@ -1,88 +0,0 @@
|
|
|
1
|
-
export class Service {
|
|
2
|
-
async getMarket(input, ctx) {
|
|
3
|
-
if (!input)
|
|
4
|
-
throw new Error('Input should not be void');
|
|
5
|
-
console.log('Market.Service.getMarket', input.marketId);
|
|
6
|
-
const market = await ctx.app.model.Market.findById(input.marketId).lean().exec();
|
|
7
|
-
if (!market)
|
|
8
|
-
throw new Error('Market not found');
|
|
9
|
-
return market;
|
|
10
|
-
}
|
|
11
|
-
async createMarket(input, ctx) {
|
|
12
|
-
if (!input)
|
|
13
|
-
throw new Error('Input should not be void');
|
|
14
|
-
console.log('Market.Service.createMarket', input);
|
|
15
|
-
const market = await ctx.app.model.Market.create(input);
|
|
16
|
-
return market;
|
|
17
|
-
}
|
|
18
|
-
async updateMarket(input, ctx) {
|
|
19
|
-
if (!input)
|
|
20
|
-
throw new Error('Input should not be void');
|
|
21
|
-
console.log('Market.Service.updateMarket', input.marketId, input.data);
|
|
22
|
-
const updatedMarket = await ctx.app.model.Market.findByIdAndUpdate(input.marketId, input.data, { new: true })
|
|
23
|
-
.lean()
|
|
24
|
-
.exec();
|
|
25
|
-
if (!updatedMarket)
|
|
26
|
-
throw new Error('Market update failed');
|
|
27
|
-
return updatedMarket;
|
|
28
|
-
}
|
|
29
|
-
async getMarketPair(input, ctx) {
|
|
30
|
-
if (!input)
|
|
31
|
-
throw new Error('Input should not be void');
|
|
32
|
-
console.log('Market.Service.getMarketPair', input.marketPairId);
|
|
33
|
-
const marketPair = await ctx.app.model.MarketPair.findById(input.marketPairId).lean().exec();
|
|
34
|
-
if (!marketPair)
|
|
35
|
-
throw new Error('MarketPair not found');
|
|
36
|
-
return marketPair;
|
|
37
|
-
}
|
|
38
|
-
async createMarketPair(input, ctx) {
|
|
39
|
-
if (!input)
|
|
40
|
-
throw new Error('Input should not be void');
|
|
41
|
-
console.log('Market.Service.createMarketPair', input);
|
|
42
|
-
const marketPair = await ctx.app.model.MarketPair.create(input);
|
|
43
|
-
return marketPair;
|
|
44
|
-
}
|
|
45
|
-
async updateMarketPair(input, ctx) {
|
|
46
|
-
if (!input)
|
|
47
|
-
throw new Error('Input should not be void');
|
|
48
|
-
console.log('Market.Service.updateMarketPair', input.marketPairId, input.data);
|
|
49
|
-
const updatedMarketPair = await ctx.app.model.MarketPair.findByIdAndUpdate(input.marketPairId, input.data, {
|
|
50
|
-
new: true,
|
|
51
|
-
})
|
|
52
|
-
.lean()
|
|
53
|
-
.exec();
|
|
54
|
-
if (!updatedMarketPair)
|
|
55
|
-
throw new Error('MarketPair update failed');
|
|
56
|
-
return updatedMarketPair;
|
|
57
|
-
}
|
|
58
|
-
async getMarketExchange(input, ctx) {
|
|
59
|
-
if (!input)
|
|
60
|
-
throw new Error('Input should not be void');
|
|
61
|
-
console.log('Market.Service.getMarketExchange', input.exchangeId);
|
|
62
|
-
const marketExchange = await ctx.app.model.MarketExchange.findById(input.exchangeId).lean().exec();
|
|
63
|
-
if (!marketExchange)
|
|
64
|
-
throw new Error('MarketExchange not found');
|
|
65
|
-
return marketExchange;
|
|
66
|
-
}
|
|
67
|
-
async createMarketExchange(input, ctx) {
|
|
68
|
-
if (!input)
|
|
69
|
-
throw new Error('Input should not be void');
|
|
70
|
-
console.log('Market.Service.createMarketExchange', input);
|
|
71
|
-
const marketExchange = await ctx.app.model.MarketExchange.create(input);
|
|
72
|
-
return marketExchange;
|
|
73
|
-
}
|
|
74
|
-
async updateMarketExchange(input, ctx) {
|
|
75
|
-
if (!input)
|
|
76
|
-
throw new Error('Input should not be void');
|
|
77
|
-
console.log('Market.Service.updateMarketExchange', input.exchangeId, input.data);
|
|
78
|
-
const updatedMarketExchange = await ctx.app.model.MarketExchange.findByIdAndUpdate(input.exchangeId, input.data, {
|
|
79
|
-
new: true,
|
|
80
|
-
})
|
|
81
|
-
.lean()
|
|
82
|
-
.exec();
|
|
83
|
-
if (!updatedMarketExchange)
|
|
84
|
-
throw new Error('MarketExchange update failed');
|
|
85
|
-
return updatedMarketExchange;
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
//# sourceMappingURL=market.service.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"market.service.js","sourceRoot":"","sources":["../../../modules/market/market.service.ts"],"names":[],"mappings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QACxD,OAAO,CAAC,GAAG,CAAC,qCAAqC,EAAE,KAAK,CAAC,UAAU,EAAE,KAAK,CAAC,IAAI,CAAC,CAAC;QAEjF,MAAM,qBAAqB,GAAG,MAAM,GAAG,CAAC,GAAG,CAAC,KAAK,CAAC,cAAc,CAAC,iBAAiB,CAAC,KAAK,CAAC,UAAU,EAAE,KAAK,CAAC,IAAI,EAAE;YAC/G,GAAG,EAAE,IAAI;SACV,CAAC;aACC,IAAI,EAAE;aACN,IAAI,EAAE,CAAC;QACV,IAAI,CAAC,qBAAqB;YAAE,MAAM,IAAI,KAAK,CAAC,8BAA8B,CAAC,CAAC;QAE5E,OAAO,qBAAuC,CAAC;IACjD,CAAC;CACF"}
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import * as schema from './market.schema';
|
|
3
|
-
import { Document, Model } from '../../util/mongo';
|
|
4
|
-
import type { RouterContext } from '../../types';
|
|
5
|
-
import type { inferRouterInputs, inferRouterOutputs } from '@trpc/server';
|
|
6
|
-
import type { Router } from './market.router';
|
|
7
|
-
export type * from './market.router';
|
|
8
|
-
export type * from './market.service';
|
|
9
|
-
export type { RouterContext };
|
|
10
|
-
export type Market = z.infer<typeof schema.Market>;
|
|
11
|
-
export type MarketPair = z.infer<typeof schema.MarketPair>;
|
|
12
|
-
export type MarketExchange = z.infer<typeof schema.MarketExchange>;
|
|
13
|
-
export type MarketAnalysis = z.infer<typeof schema.MarketAnalysis>;
|
|
14
|
-
export type MarketInvestor = z.infer<typeof schema.MarketInvestor>;
|
|
15
|
-
export type MarketInvestmentPortfolio = z.infer<typeof schema.MarketInvestmentPortfolio>;
|
|
16
|
-
export type MarketInvestment = z.infer<typeof schema.MarketInvestment>;
|
|
17
|
-
export type MarketStock = z.infer<typeof schema.MarketStock>;
|
|
18
|
-
export type MarketToken = z.infer<typeof schema.MarketToken>;
|
|
19
|
-
export type MarketCompany = z.infer<typeof schema.MarketCompany>;
|
|
20
|
-
export type MarketETF = z.infer<typeof schema.MarketETF>;
|
|
21
|
-
export type MarketStockSentiment = z.infer<typeof schema.MarketStockSentiment>;
|
|
22
|
-
export type MarketDocument = Market & Document;
|
|
23
|
-
export type MarketPairDocument = MarketPair & Document;
|
|
24
|
-
export type MarketExchangeDocument = MarketExchange & Document;
|
|
25
|
-
export type MarketAnalysisDocument = MarketAnalysis & Document;
|
|
26
|
-
export type MarketInvestorDocument = MarketInvestor & Document;
|
|
27
|
-
export type MarketInvestmentPortfolioDocument = MarketInvestmentPortfolio & Document;
|
|
28
|
-
export type MarketInvestmentDocument = MarketInvestment & Document;
|
|
29
|
-
export type MarketStockDocument = MarketStock & Document;
|
|
30
|
-
export type MarketTokenDocument = MarketToken & Document;
|
|
31
|
-
export type MarketCompanyDocument = MarketCompany & Document;
|
|
32
|
-
export type MarketETFDocument = MarketETF & Document;
|
|
33
|
-
export type MarketStockSentimentDocument = MarketStockSentiment & Document;
|
|
34
|
-
export type Mappings = {
|
|
35
|
-
Market: Model<MarketDocument>;
|
|
36
|
-
MarketPair: Model<MarketPairDocument>;
|
|
37
|
-
MarketExchange: Model<MarketExchangeDocument>;
|
|
38
|
-
MarketAnalysis: Model<MarketAnalysisDocument>;
|
|
39
|
-
MarketInvestor: Model<MarketInvestorDocument>;
|
|
40
|
-
MarketInvestmentPortfolio: Model<MarketInvestmentPortfolioDocument>;
|
|
41
|
-
MarketInvestment: Model<MarketInvestmentDocument>;
|
|
42
|
-
MarketStock: Model<MarketStockDocument>;
|
|
43
|
-
MarketToken: Model<MarketTokenDocument>;
|
|
44
|
-
MarketCompany: Model<MarketCompanyDocument>;
|
|
45
|
-
MarketETF: Model<MarketETFDocument>;
|
|
46
|
-
MarketStockSentiment: Model<MarketStockSentimentDocument>;
|
|
47
|
-
};
|
|
48
|
-
export type RouterInput = inferRouterInputs<Router>;
|
|
49
|
-
export type RouterOutput = inferRouterOutputs<Router>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"market.types.js","sourceRoot":"","sources":["../../../modules/market/market.types.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../modules/product/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,iBAAiB,CAAC;AACzC,OAAO,KAAK,MAAM,MAAM,kBAAkB,CAAC;AAC3C,OAAO,KAAK,OAAO,MAAM,kBAAkB,CAAC;AAC5C,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC"}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import * as mongo from '../../util/mongo';
|
|
2
|
-
import type * as Types from './product.types';
|
|
3
|
-
export declare const Product: mongo.Model<any> | mongo.Model<Types.ProductDocument>;
|
|
4
|
-
export declare const ProductUpdate: mongo.Model<any> | mongo.Model<Types.ProductUpdateDocument>;
|
|
@@ -1,113 +0,0 @@
|
|
|
1
|
-
import * as mongo from '../../util/mongo';
|
|
2
|
-
export const Product = mongo.createModel('Product', {
|
|
3
|
-
shortDescription: { type: String, maxlength: 300, required: false },
|
|
4
|
-
content: { type: String, required: false },
|
|
5
|
-
communityId: { type: mongo.Schema.Types.ObjectId, ref: 'Community', required: false },
|
|
6
|
-
type: { type: String, default: 'game', maxlength: 100 },
|
|
7
|
-
releaseDate: { type: Date },
|
|
8
|
-
parentId: { type: mongo.Schema.Types.ObjectId, ref: 'Product' },
|
|
9
|
-
score: { type: Number },
|
|
10
|
-
ownerId: { type: mongo.Schema.Types.ObjectId, ref: 'Profile' },
|
|
11
|
-
ratingId: { type: mongo.Schema.Types.ObjectId, ref: 'Rating' },
|
|
12
|
-
ideaId: { type: mongo.Schema.Types.ObjectId, ref: 'Idea' },
|
|
13
|
-
meta: {
|
|
14
|
-
name: String,
|
|
15
|
-
members: [{ type: mongo.Schema.Types.ObjectId, ref: 'Profile' }],
|
|
16
|
-
isProposal: Boolean,
|
|
17
|
-
price: Number,
|
|
18
|
-
oldPrice: Number,
|
|
19
|
-
images: Object,
|
|
20
|
-
video: String,
|
|
21
|
-
genre: String,
|
|
22
|
-
releaseDate: String,
|
|
23
|
-
developer: String,
|
|
24
|
-
publisher: String,
|
|
25
|
-
developerTags: [String],
|
|
26
|
-
languageSupport: [Object],
|
|
27
|
-
systemRequirements: [Object],
|
|
28
|
-
tags: [{ type: mongo.Schema.Types.ObjectId, ref: 'Tag' }],
|
|
29
|
-
type: String,
|
|
30
|
-
downloads: Number,
|
|
31
|
-
plans: [Object],
|
|
32
|
-
frequentlyTradedAssets: [{ type: mongo.Schema.Types.ObjectId, ref: 'Asset' }],
|
|
33
|
-
saleBox: Object,
|
|
34
|
-
assets: [{ type: mongo.Schema.Types.ObjectId, ref: 'Asset' }],
|
|
35
|
-
community: Object,
|
|
36
|
-
nameUrl: String,
|
|
37
|
-
steamId: Number,
|
|
38
|
-
author: String,
|
|
39
|
-
},
|
|
40
|
-
}, {
|
|
41
|
-
virtuals: [
|
|
42
|
-
{
|
|
43
|
-
name: 'projects',
|
|
44
|
-
ref: 'Project',
|
|
45
|
-
localField: '_id',
|
|
46
|
-
foreignField: 'productId',
|
|
47
|
-
},
|
|
48
|
-
{
|
|
49
|
-
name: 'leaderboards',
|
|
50
|
-
ref: 'Leaderboard',
|
|
51
|
-
localField: '_id',
|
|
52
|
-
foreignField: 'productId',
|
|
53
|
-
},
|
|
54
|
-
{
|
|
55
|
-
name: 'games',
|
|
56
|
-
ref: 'Game',
|
|
57
|
-
localField: '_id',
|
|
58
|
-
foreignField: 'productId',
|
|
59
|
-
},
|
|
60
|
-
{
|
|
61
|
-
name: 'productUpdates',
|
|
62
|
-
ref: 'ProductUpdate',
|
|
63
|
-
localField: '_id',
|
|
64
|
-
foreignField: 'productId',
|
|
65
|
-
},
|
|
66
|
-
{
|
|
67
|
-
name: 'owner',
|
|
68
|
-
ref: 'Profile',
|
|
69
|
-
localField: 'ownerId',
|
|
70
|
-
foreignField: '_id',
|
|
71
|
-
justOne: true,
|
|
72
|
-
},
|
|
73
|
-
{
|
|
74
|
-
name: 'rating',
|
|
75
|
-
ref: 'Rating',
|
|
76
|
-
localField: 'ratingId',
|
|
77
|
-
foreignField: '_id',
|
|
78
|
-
justOne: true,
|
|
79
|
-
},
|
|
80
|
-
{
|
|
81
|
-
name: 'community',
|
|
82
|
-
ref: 'Community',
|
|
83
|
-
localField: 'communityId',
|
|
84
|
-
foreignField: '_id',
|
|
85
|
-
justOne: true,
|
|
86
|
-
},
|
|
87
|
-
{
|
|
88
|
-
name: 'idea',
|
|
89
|
-
ref: 'Idea',
|
|
90
|
-
localField: 'ideaId',
|
|
91
|
-
foreignField: '_id',
|
|
92
|
-
justOne: true,
|
|
93
|
-
},
|
|
94
|
-
{
|
|
95
|
-
name: 'subproducts',
|
|
96
|
-
ref: 'Product',
|
|
97
|
-
localField: '_id',
|
|
98
|
-
foreignField: 'parentId',
|
|
99
|
-
},
|
|
100
|
-
{
|
|
101
|
-
name: 'servers',
|
|
102
|
-
ref: 'Server',
|
|
103
|
-
localField: '_id',
|
|
104
|
-
foreignField: 'productId',
|
|
105
|
-
},
|
|
106
|
-
],
|
|
107
|
-
});
|
|
108
|
-
export const ProductUpdate = mongo.createModel('ProductUpdate', {
|
|
109
|
-
productId: { type: mongo.Schema.Types.ObjectId, ref: 'Product', required: true },
|
|
110
|
-
updateContent: { type: String, required: true },
|
|
111
|
-
updateDate: { type: Date, required: true },
|
|
112
|
-
});
|
|
113
|
-
//# sourceMappingURL=product.models.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"product.models.js","sourceRoot":"","sources":["../../../modules/product/product.models.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,kBAAkB,CAAC;AAG1C,MAAM,CAAC,MAAM,OAAO,GAAG,KAAK,CAAC,WAAW,CACtC,SAAS,EACT;IACE,gBAAgB,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,GAAG,EAAE,QAAQ,EAAE,KAA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