@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,1372 +0,0 @@
|
|
|
1
|
-
import { z as zod } from 'zod';
|
|
2
|
-
import { initTRPC } from '@trpc/server';
|
|
3
|
-
import { customErrorFormatter, hasRole } from '../../util/rpc';
|
|
4
|
-
import { getQueryInput } from '../../schema';
|
|
5
|
-
import { Account, Achievement, Act, Agent, Application, Badge, BattlePass, Biome, BiomeFeature, Bounty, Collection, Comment, Community, Company, Conversation, ConversationMessage, Data, Discussion, Energy, Event, File, Galaxy, Guide, Idea, Leaderboard, Log, Lore, Memory, Message, Metaverse, NewsArticle, Npc, Offer, Omniverse, Order, Payment, Permission, Person, Planet, Poll, Project, Proposal, Quest, Rating, Realm, RealmEvent, RealmShard, Revision, Referral, Review, Role, Season, Session, SolarSystem, Star, Stash, Stock, Suggestion, Tag, Team, Tournament, Trade, Universe, Validator, Vote, WorldEvent, WorldRecord, Stat, } from './core.schema';
|
|
6
|
-
export const z = zod;
|
|
7
|
-
export const t = initTRPC.context().create();
|
|
8
|
-
export const router = t.router;
|
|
9
|
-
export const procedure = t.procedure;
|
|
10
|
-
export const createRouter = () => router({
|
|
11
|
-
getConversation: procedure
|
|
12
|
-
.use(hasRole('guest', t))
|
|
13
|
-
.use(customErrorFormatter(t))
|
|
14
|
-
.input(getQueryInput(Conversation))
|
|
15
|
-
.output(Conversation)
|
|
16
|
-
.query(({ input, ctx }) => ctx.app.service.Core.getConversation(input, ctx)),
|
|
17
|
-
createConversation: procedure
|
|
18
|
-
.use(hasRole('user', t))
|
|
19
|
-
.use(customErrorFormatter(t))
|
|
20
|
-
.input(getQueryInput(Conversation))
|
|
21
|
-
.output(Conversation.pick({ id: true, name: true }))
|
|
22
|
-
.mutation(({ input, ctx }) => ctx.app.service.Core.createConversation(input, ctx)),
|
|
23
|
-
updateConversation: procedure
|
|
24
|
-
.use(hasRole('user', t))
|
|
25
|
-
.use(customErrorFormatter(t))
|
|
26
|
-
.input(getQueryInput(Conversation))
|
|
27
|
-
.output(Conversation.pick({ id: true }))
|
|
28
|
-
.mutation(({ input, ctx }) => ctx.app.service.Core.updateConversation(input, ctx)),
|
|
29
|
-
getConversations: procedure
|
|
30
|
-
.use(hasRole('user', t))
|
|
31
|
-
.use(customErrorFormatter(t))
|
|
32
|
-
.input(getQueryInput(Conversation))
|
|
33
|
-
.output(z.object({ items: z.array(Conversation), total: z.number() }))
|
|
34
|
-
.query(({ input, ctx }) => ctx.app.service.Core.getConversations(input, ctx)),
|
|
35
|
-
getConversationMessage: procedure
|
|
36
|
-
.use(hasRole('guest', t))
|
|
37
|
-
.use(customErrorFormatter(t))
|
|
38
|
-
.input(getQueryInput(ConversationMessage))
|
|
39
|
-
.output(ConversationMessage)
|
|
40
|
-
.query(({ input, ctx }) => ctx.app.service.Core.getConversationMessage(input, ctx)),
|
|
41
|
-
getConversationMessages: procedure
|
|
42
|
-
.use(hasRole('user', t))
|
|
43
|
-
.use(customErrorFormatter(t))
|
|
44
|
-
.input(getQueryInput(ConversationMessage))
|
|
45
|
-
.output(z.object({ items: z.array(ConversationMessage), total: z.number() }))
|
|
46
|
-
.query(({ input, ctx }) => ctx.app.service.Core.getConversationMessages(input, ctx)),
|
|
47
|
-
createConversationMessage: procedure
|
|
48
|
-
.use(hasRole('user', t))
|
|
49
|
-
.use(customErrorFormatter(t))
|
|
50
|
-
.input(getQueryInput(ConversationMessage))
|
|
51
|
-
.output(ConversationMessage)
|
|
52
|
-
.mutation(({ input, ctx }) => ctx.app.service.Core.createConversationMessage(input, ctx)),
|
|
53
|
-
updateConversationMessage: procedure
|
|
54
|
-
.use(hasRole('admin', t))
|
|
55
|
-
.use(customErrorFormatter(t))
|
|
56
|
-
.input(getQueryInput(ConversationMessage))
|
|
57
|
-
.output(ConversationMessage.pick({ id: true }))
|
|
58
|
-
.mutation(({ input, ctx }) => ctx.app.service.Core.updateConversationMessage(input, ctx)),
|
|
59
|
-
claimConversationMessage: procedure
|
|
60
|
-
.use(customErrorFormatter(t))
|
|
61
|
-
.input(z.object({
|
|
62
|
-
messageId: z.string().min(6),
|
|
63
|
-
characterId: z.string().optional(),
|
|
64
|
-
}))
|
|
65
|
-
.mutation(({ input, ctx }) => ctx.app.service.Core.claimConversationMessage(input, ctx)),
|
|
66
|
-
setConversationMessageStar: procedure
|
|
67
|
-
.use(customErrorFormatter(t))
|
|
68
|
-
.input(z.object({
|
|
69
|
-
messageId: z.string().min(6),
|
|
70
|
-
isStarred: z.boolean().optional(),
|
|
71
|
-
}))
|
|
72
|
-
.mutation(({ input, ctx }) => ctx.app.service.Core.setConversationMessageStar(input, ctx)),
|
|
73
|
-
markConversationRead: procedure
|
|
74
|
-
.use(hasRole('user', t))
|
|
75
|
-
.use(customErrorFormatter(t))
|
|
76
|
-
.input(z
|
|
77
|
-
.object({
|
|
78
|
-
messageIds: z.array(z.string().min(6)).optional(),
|
|
79
|
-
conversationId: z.string().min(6).optional(),
|
|
80
|
-
limit: z.number().int().min(1).max(200).optional(),
|
|
81
|
-
})
|
|
82
|
-
.optional())
|
|
83
|
-
.mutation(({ input, ctx }) => ctx.app.service.Core.markConversationRead(input, ctx)),
|
|
84
|
-
archiveReadConversations: procedure
|
|
85
|
-
.use(hasRole('user', t))
|
|
86
|
-
.use(customErrorFormatter(t))
|
|
87
|
-
.input(z
|
|
88
|
-
.object({
|
|
89
|
-
conversationId: z.string().min(6),
|
|
90
|
-
})
|
|
91
|
-
.optional())
|
|
92
|
-
.mutation(({ input, ctx }) => ctx.app.service.Core.archiveReadConversations(input, ctx)),
|
|
93
|
-
readAndClaimLatestMail: procedure
|
|
94
|
-
.use(hasRole('user', t))
|
|
95
|
-
.use(customErrorFormatter(t))
|
|
96
|
-
.input(z
|
|
97
|
-
.object({
|
|
98
|
-
conversationId: z.string().min(6),
|
|
99
|
-
limit: z.number().int().min(1).max(200).optional(),
|
|
100
|
-
characterId: z.string().min(6).optional(),
|
|
101
|
-
})
|
|
102
|
-
.optional())
|
|
103
|
-
.mutation(({ input, ctx }) => ctx.app.service.Core.readAndClaimLatestMail(input, ctx)),
|
|
104
|
-
distributeSantaChristmasTicketToProfile: procedure
|
|
105
|
-
.use(customErrorFormatter(t))
|
|
106
|
-
.input(z.object({
|
|
107
|
-
profileId: z.string().min(6),
|
|
108
|
-
dedupeKey: z.string().optional(),
|
|
109
|
-
}))
|
|
110
|
-
.mutation(({ input, ctx }) => ctx.app.service.Core.distributeSantaChristmasTicketToProfile(input, ctx)),
|
|
111
|
-
distributeSantaChristmasTicket: procedure
|
|
112
|
-
.input(z
|
|
113
|
-
.object({
|
|
114
|
-
batchSize: z.number().int().min(100).max(5000).optional(),
|
|
115
|
-
dedupeKey: z.string().min(3).optional(),
|
|
116
|
-
})
|
|
117
|
-
.optional())
|
|
118
|
-
.query(({ input, ctx }) => ctx.app.service.Core.distributeSantaChristmasTicket(input, ctx)),
|
|
119
|
-
syncGetPayloadsSince: procedure
|
|
120
|
-
.input(z.object({
|
|
121
|
-
since: z.string().datetime(),
|
|
122
|
-
}))
|
|
123
|
-
.query(({ input, ctx }) => ctx.app.service.Core.syncGetPayloadsSince(input, ctx)),
|
|
124
|
-
updateSettings: procedure
|
|
125
|
-
.use(hasRole('user', t))
|
|
126
|
-
.use(customErrorFormatter(t))
|
|
127
|
-
.input(z.any())
|
|
128
|
-
.query(({ input, ctx }) => ctx.app.service.Core.updateSettings(input, ctx)),
|
|
129
|
-
ask: procedure
|
|
130
|
-
.use(hasRole('guest', t))
|
|
131
|
-
.use(customErrorFormatter(t))
|
|
132
|
-
.input(z.object({
|
|
133
|
-
data: z.object({
|
|
134
|
-
conversationId: z.string(),
|
|
135
|
-
messages: z.any(),
|
|
136
|
-
}),
|
|
137
|
-
}))
|
|
138
|
-
.mutation(({ input, ctx }) => ctx.app.service.Core.ask(input, ctx)),
|
|
139
|
-
authorize: procedure
|
|
140
|
-
.use(hasRole('guest', t))
|
|
141
|
-
.use(customErrorFormatter(t))
|
|
142
|
-
.input(z.object({
|
|
143
|
-
address: z.string(),
|
|
144
|
-
token: z.string().optional(),
|
|
145
|
-
data: z.string().optional(),
|
|
146
|
-
loginAs: z.string().optional(),
|
|
147
|
-
}))
|
|
148
|
-
.mutation(({ input, ctx }) => ctx.app.service.Core.authorize(input, ctx)),
|
|
149
|
-
getAccount: procedure
|
|
150
|
-
.use(hasRole('guest', t))
|
|
151
|
-
.use(customErrorFormatter(t))
|
|
152
|
-
.input(getQueryInput(Account))
|
|
153
|
-
.output(Account)
|
|
154
|
-
.query(({ input, ctx }) => ctx.app.service.Core.getAccount(input, ctx)),
|
|
155
|
-
getAccounts: procedure
|
|
156
|
-
.use(hasRole('guest', t))
|
|
157
|
-
.use(customErrorFormatter(t))
|
|
158
|
-
.input(getQueryInput(Account))
|
|
159
|
-
.output(Account.array())
|
|
160
|
-
.query(({ input, ctx }) => ctx.app.service.Core.getAccounts(input, ctx)),
|
|
161
|
-
createAccount: procedure
|
|
162
|
-
.use(hasRole('admin', t))
|
|
163
|
-
.use(customErrorFormatter(t))
|
|
164
|
-
.input(getQueryInput(Account))
|
|
165
|
-
.output(Account.pick({ id: true }))
|
|
166
|
-
.mutation(({ input, ctx }) => ctx.app.service.Core.createAccount(input, ctx)),
|
|
167
|
-
updateAccount: procedure
|
|
168
|
-
.use(hasRole('admin', t))
|
|
169
|
-
.use(customErrorFormatter(t))
|
|
170
|
-
.input(getQueryInput(Account))
|
|
171
|
-
.output(Account.pick({ id: true }))
|
|
172
|
-
.mutation(({ input, ctx }) => ctx.app.service.Core.updateAccount(input, ctx)),
|
|
173
|
-
getAchievement: procedure
|
|
174
|
-
.use(hasRole('guest', t))
|
|
175
|
-
.use(customErrorFormatter(t))
|
|
176
|
-
.input(getQueryInput(Achievement))
|
|
177
|
-
.output(Achievement)
|
|
178
|
-
.query(({ input, ctx }) => ctx.app.service.Core.getAchievement(input, ctx)),
|
|
179
|
-
getAchievements: procedure
|
|
180
|
-
.use(hasRole('guest', t))
|
|
181
|
-
.use(customErrorFormatter(t))
|
|
182
|
-
.input(getQueryInput(Achievement))
|
|
183
|
-
.output(Achievement.array())
|
|
184
|
-
.query(({ input, ctx }) => ctx.app.service.Core.getAchievements(input, ctx)),
|
|
185
|
-
createAchievement: procedure
|
|
186
|
-
.use(hasRole('admin', t))
|
|
187
|
-
.use(customErrorFormatter(t))
|
|
188
|
-
.input(getQueryInput(Achievement))
|
|
189
|
-
.output(Achievement.pick({ id: true }))
|
|
190
|
-
.mutation(({ input, ctx }) => ctx.app.service.Core.createAchievement(input, ctx)),
|
|
191
|
-
updateAchievement: procedure
|
|
192
|
-
.use(hasRole('admin', t))
|
|
193
|
-
.use(customErrorFormatter(t))
|
|
194
|
-
.input(getQueryInput(Achievement))
|
|
195
|
-
.output(Achievement.pick({ id: true }))
|
|
196
|
-
.mutation(({ input, ctx }) => ctx.app.service.Core.updateAchievement(input, ctx)),
|
|
197
|
-
getAct: procedure
|
|
198
|
-
.use(hasRole('guest', t))
|
|
199
|
-
.use(customErrorFormatter(t))
|
|
200
|
-
.input(getQueryInput(Act))
|
|
201
|
-
.output(Act)
|
|
202
|
-
.query(({ input, ctx }) => ctx.app.service.Core.getAct(input, ctx)),
|
|
203
|
-
getActs: procedure
|
|
204
|
-
.use(hasRole('guest', t))
|
|
205
|
-
.use(customErrorFormatter(t))
|
|
206
|
-
.input(getQueryInput(Act))
|
|
207
|
-
.query(({ input, ctx }) => ctx.app.service.Core.getActs(input, ctx)),
|
|
208
|
-
createAct: procedure
|
|
209
|
-
.use(hasRole('admin', t))
|
|
210
|
-
.use(customErrorFormatter(t))
|
|
211
|
-
.input(getQueryInput(Act))
|
|
212
|
-
.output(Act.pick({ id: true }))
|
|
213
|
-
.mutation(({ input, ctx }) => ctx.app.service.Core.createAct(input, ctx)),
|
|
214
|
-
updateAct: procedure
|
|
215
|
-
.use(hasRole('admin', t))
|
|
216
|
-
.use(customErrorFormatter(t))
|
|
217
|
-
.input(getQueryInput(Act))
|
|
218
|
-
.output(Act.pick({ id: true }))
|
|
219
|
-
.mutation(({ input, ctx }) => ctx.app.service.Core.updateAct(input, ctx)),
|
|
220
|
-
getAgent: procedure
|
|
221
|
-
.use(hasRole('guest', t))
|
|
222
|
-
.use(customErrorFormatter(t))
|
|
223
|
-
.input(getQueryInput(Agent))
|
|
224
|
-
.output(Agent)
|
|
225
|
-
.query(({ input, ctx }) => ctx.app.service.Core.getAgent(input, ctx)),
|
|
226
|
-
createAgent: procedure
|
|
227
|
-
.use(hasRole('admin', t))
|
|
228
|
-
.use(customErrorFormatter(t))
|
|
229
|
-
.input(getQueryInput(Agent))
|
|
230
|
-
.output(Agent.pick({ id: true }))
|
|
231
|
-
.mutation(({ input, ctx }) => ctx.app.service.Core.createAgent(input, ctx)),
|
|
232
|
-
updateAgent: procedure
|
|
233
|
-
.use(hasRole('admin', t))
|
|
234
|
-
.use(customErrorFormatter(t))
|
|
235
|
-
.input(getQueryInput(Agent))
|
|
236
|
-
.output(Agent.pick({ id: true }))
|
|
237
|
-
.mutation(({ input, ctx }) => ctx.app.service.Core.updateAgent(input, ctx)),
|
|
238
|
-
getApplication: procedure
|
|
239
|
-
.use(hasRole('guest', t))
|
|
240
|
-
.use(customErrorFormatter(t))
|
|
241
|
-
.input(getQueryInput(Application))
|
|
242
|
-
.output(Application)
|
|
243
|
-
.query(({ input, ctx }) => ctx.app.service.Core.getApplication(input, ctx)),
|
|
244
|
-
createApplication: procedure
|
|
245
|
-
.use(hasRole('admin', t))
|
|
246
|
-
.use(customErrorFormatter(t))
|
|
247
|
-
.input(getQueryInput(Application))
|
|
248
|
-
.output(Application.pick({ id: true }))
|
|
249
|
-
.mutation(({ input, ctx }) => ctx.app.service.Core.createApplication(input, ctx)),
|
|
250
|
-
updateApplication: procedure
|
|
251
|
-
.use(hasRole('admin', t))
|
|
252
|
-
.use(customErrorFormatter(t))
|
|
253
|
-
.input(getQueryInput(Application))
|
|
254
|
-
.output(Application.pick({ id: true }))
|
|
255
|
-
.mutation(({ input, ctx }) => ctx.app.service.Core.updateApplication(input, ctx)),
|
|
256
|
-
getBadge: procedure
|
|
257
|
-
.use(hasRole('guest', t))
|
|
258
|
-
.use(customErrorFormatter(t))
|
|
259
|
-
.input(getQueryInput(Badge))
|
|
260
|
-
.output(Badge)
|
|
261
|
-
.query(({ input, ctx }) => ctx.app.service.Core.getBadge(input, ctx)),
|
|
262
|
-
createBadge: procedure
|
|
263
|
-
.use(hasRole('admin', t))
|
|
264
|
-
.use(customErrorFormatter(t))
|
|
265
|
-
.input(getQueryInput(Badge))
|
|
266
|
-
.output(Badge.pick({ id: true }))
|
|
267
|
-
.mutation(({ input, ctx }) => ctx.app.service.Core.createBadge(input, ctx)),
|
|
268
|
-
updateBadge: procedure
|
|
269
|
-
.use(hasRole('admin', t))
|
|
270
|
-
.use(customErrorFormatter(t))
|
|
271
|
-
.input(getQueryInput(Badge))
|
|
272
|
-
.output(Badge.pick({ id: true }))
|
|
273
|
-
.mutation(({ input, ctx }) => ctx.app.service.Core.updateBadge(input, ctx)),
|
|
274
|
-
getBattlePass: procedure
|
|
275
|
-
.use(hasRole('guest', t))
|
|
276
|
-
.use(customErrorFormatter(t))
|
|
277
|
-
.input(getQueryInput(BattlePass))
|
|
278
|
-
.output(BattlePass)
|
|
279
|
-
.query(({ input, ctx }) => ctx.app.service.Core.getBattlePass(input, ctx)),
|
|
280
|
-
createBattlePass: procedure
|
|
281
|
-
.use(hasRole('admin', t))
|
|
282
|
-
.use(customErrorFormatter(t))
|
|
283
|
-
.input(getQueryInput(BattlePass))
|
|
284
|
-
.output(BattlePass.pick({ id: true }))
|
|
285
|
-
.mutation(({ input, ctx }) => ctx.app.service.Core.createBattlePass(input, ctx)),
|
|
286
|
-
updateBattlePass: procedure
|
|
287
|
-
.use(hasRole('admin', t))
|
|
288
|
-
.use(customErrorFormatter(t))
|
|
289
|
-
.input(getQueryInput(BattlePass))
|
|
290
|
-
.output(BattlePass.pick({ id: true }))
|
|
291
|
-
.mutation(({ input, ctx }) => ctx.app.service.Core.updateBattlePass(input, ctx)),
|
|
292
|
-
getBiome: procedure
|
|
293
|
-
.use(hasRole('guest', t))
|
|
294
|
-
.use(customErrorFormatter(t))
|
|
295
|
-
.input(getQueryInput(Biome))
|
|
296
|
-
.output(Biome)
|
|
297
|
-
.query(({ input, ctx }) => ctx.app.service.Core.getBiome(input, ctx)),
|
|
298
|
-
createBiome: procedure
|
|
299
|
-
.use(hasRole('admin', t))
|
|
300
|
-
.use(customErrorFormatter(t))
|
|
301
|
-
.input(getQueryInput(Biome))
|
|
302
|
-
.output(Biome.pick({ id: true }))
|
|
303
|
-
.mutation(({ input, ctx }) => ctx.app.service.Core.createBiome(input, ctx)),
|
|
304
|
-
updateBiome: procedure
|
|
305
|
-
.use(hasRole('admin', t))
|
|
306
|
-
.use(customErrorFormatter(t))
|
|
307
|
-
.input(getQueryInput(Biome))
|
|
308
|
-
.output(Biome.pick({ id: true }))
|
|
309
|
-
.mutation(({ input, ctx }) => ctx.app.service.Core.updateBiome(input, ctx)),
|
|
310
|
-
getBiomeFeature: procedure
|
|
311
|
-
.use(hasRole('guest', t))
|
|
312
|
-
.use(customErrorFormatter(t))
|
|
313
|
-
.input(getQueryInput(BiomeFeature))
|
|
314
|
-
.output(BiomeFeature)
|
|
315
|
-
.query(({ input, ctx }) => ctx.app.service.Core.getBiomeFeature(input, ctx)),
|
|
316
|
-
createBiomeFeature: procedure
|
|
317
|
-
.use(hasRole('admin', t))
|
|
318
|
-
.use(customErrorFormatter(t))
|
|
319
|
-
.input(BiomeFeature)
|
|
320
|
-
.output(BiomeFeature.pick({ id: true }))
|
|
321
|
-
.mutation(({ input, ctx }) => ctx.app.service.Core.createBiomeFeature(input, ctx)),
|
|
322
|
-
updateBiomeFeature: procedure
|
|
323
|
-
.use(hasRole('admin', t))
|
|
324
|
-
.use(customErrorFormatter(t))
|
|
325
|
-
.input(getQueryInput(BiomeFeature))
|
|
326
|
-
.output(BiomeFeature.pick({ id: true }))
|
|
327
|
-
.mutation(({ input, ctx }) => ctx.app.service.Core.updateBiomeFeature(input, ctx)),
|
|
328
|
-
getBounty: procedure
|
|
329
|
-
.use(hasRole('guest', t))
|
|
330
|
-
.use(customErrorFormatter(t))
|
|
331
|
-
.input(getQueryInput(Bounty))
|
|
332
|
-
.output(Bounty)
|
|
333
|
-
.query(({ input, ctx }) => ctx.app.service.Core.getBounty(input, ctx)),
|
|
334
|
-
createBounty: procedure
|
|
335
|
-
.use(hasRole('admin', t))
|
|
336
|
-
.use(customErrorFormatter(t))
|
|
337
|
-
.input(getQueryInput(Bounty))
|
|
338
|
-
.output(Bounty.pick({ id: true }))
|
|
339
|
-
.mutation(({ input, ctx }) => ctx.app.service.Core.createBounty(input, ctx)),
|
|
340
|
-
updateBounty: procedure
|
|
341
|
-
.use(hasRole('admin', t))
|
|
342
|
-
.use(customErrorFormatter(t))
|
|
343
|
-
.input(getQueryInput(Bounty))
|
|
344
|
-
.output(Bounty.pick({ id: true }))
|
|
345
|
-
.mutation(({ input, ctx }) => ctx.app.service.Core.updateBounty(input, ctx)),
|
|
346
|
-
getCollection: procedure
|
|
347
|
-
.use(hasRole('guest', t))
|
|
348
|
-
.use(customErrorFormatter(t))
|
|
349
|
-
.input(getQueryInput(Collection))
|
|
350
|
-
.output(Collection)
|
|
351
|
-
.query(({ input, ctx }) => ctx.app.service.Core.getCollection(input, ctx)),
|
|
352
|
-
createCollection: procedure
|
|
353
|
-
.use(hasRole('admin', t))
|
|
354
|
-
.use(customErrorFormatter(t))
|
|
355
|
-
.input(getQueryInput(Collection))
|
|
356
|
-
.output(Collection.pick({ id: true }))
|
|
357
|
-
.mutation(({ input, ctx }) => ctx.app.service.Core.createCollection(input, ctx)),
|
|
358
|
-
updateCollection: procedure
|
|
359
|
-
.use(hasRole('admin', t))
|
|
360
|
-
.use(customErrorFormatter(t))
|
|
361
|
-
.input(getQueryInput(Collection))
|
|
362
|
-
.output(Collection.pick({ id: true }))
|
|
363
|
-
.mutation(({ input, ctx }) => ctx.app.service.Core.updateCollection(input, ctx)),
|
|
364
|
-
getComment: procedure
|
|
365
|
-
.use(hasRole('guest', t))
|
|
366
|
-
.use(customErrorFormatter(t))
|
|
367
|
-
.input(getQueryInput(Comment))
|
|
368
|
-
.output(Comment)
|
|
369
|
-
.query(({ input, ctx }) => ctx.app.service.Core.getComment(input, ctx)),
|
|
370
|
-
createComment: procedure
|
|
371
|
-
.use(hasRole('admin', t))
|
|
372
|
-
.use(customErrorFormatter(t))
|
|
373
|
-
.input(getQueryInput(Comment))
|
|
374
|
-
.output(Comment.pick({ id: true }))
|
|
375
|
-
.mutation(({ input, ctx }) => ctx.app.service.Core.createComment(input, ctx)),
|
|
376
|
-
updateComment: procedure
|
|
377
|
-
.use(hasRole('admin', t))
|
|
378
|
-
.use(customErrorFormatter(t))
|
|
379
|
-
.input(getQueryInput(Comment))
|
|
380
|
-
.output(Comment.pick({ id: true }))
|
|
381
|
-
.mutation(({ input, ctx }) => ctx.app.service.Core.updateComment(input, ctx)),
|
|
382
|
-
getCommunity: procedure
|
|
383
|
-
.use(hasRole('guest', t))
|
|
384
|
-
.use(customErrorFormatter(t))
|
|
385
|
-
.input(getQueryInput(Community))
|
|
386
|
-
.output(Community)
|
|
387
|
-
.query(({ input, ctx }) => ctx.app.service.Core.getCommunity(input, ctx)),
|
|
388
|
-
createCommunity: procedure
|
|
389
|
-
.use(hasRole('admin', t))
|
|
390
|
-
.use(customErrorFormatter(t))
|
|
391
|
-
.input(getQueryInput(Community))
|
|
392
|
-
.output(Community.pick({ id: true }))
|
|
393
|
-
.mutation(({ input, ctx }) => ctx.app.service.Core.createCommunity(input, ctx)),
|
|
394
|
-
updateCommunity: procedure
|
|
395
|
-
.use(hasRole('admin', t))
|
|
396
|
-
.use(customErrorFormatter(t))
|
|
397
|
-
.input(getQueryInput(Community))
|
|
398
|
-
.output(Community.pick({ id: true }))
|
|
399
|
-
.mutation(({ input, ctx }) => ctx.app.service.Core.updateCommunity(input, ctx)),
|
|
400
|
-
getCompany: procedure
|
|
401
|
-
.use(hasRole('guest', t))
|
|
402
|
-
.use(customErrorFormatter(t))
|
|
403
|
-
.input(getQueryInput(Company))
|
|
404
|
-
.output(Company)
|
|
405
|
-
.query(({ input, ctx }) => ctx.app.service.Core.getCompany(input, ctx)),
|
|
406
|
-
createCompany: procedure
|
|
407
|
-
.use(hasRole('admin', t))
|
|
408
|
-
.use(customErrorFormatter(t))
|
|
409
|
-
.input(getQueryInput(Company))
|
|
410
|
-
.output(Company.pick({ id: true }))
|
|
411
|
-
.mutation(({ input, ctx }) => ctx.app.service.Core.createCompany(input, ctx)),
|
|
412
|
-
updateCompany: procedure
|
|
413
|
-
.use(hasRole('admin', t))
|
|
414
|
-
.use(customErrorFormatter(t))
|
|
415
|
-
.input(getQueryInput(Company))
|
|
416
|
-
.output(Company.pick({ id: true }))
|
|
417
|
-
.mutation(({ input, ctx }) => ctx.app.service.Core.updateCompany(input, ctx)),
|
|
418
|
-
getData: procedure
|
|
419
|
-
.use(hasRole('guest', t))
|
|
420
|
-
.use(customErrorFormatter(t))
|
|
421
|
-
.input(getQueryInput(Data))
|
|
422
|
-
.output(Data)
|
|
423
|
-
.query(({ input, ctx }) => ctx.app.service.Core.getData(input, ctx)),
|
|
424
|
-
createData: procedure
|
|
425
|
-
.use(hasRole('admin', t))
|
|
426
|
-
.use(customErrorFormatter(t))
|
|
427
|
-
.input(getQueryInput(Data))
|
|
428
|
-
.output(Data.pick({ id: true }))
|
|
429
|
-
.mutation(({ input, ctx }) => ctx.app.service.Core.createData(input, ctx)),
|
|
430
|
-
updateData: procedure
|
|
431
|
-
.use(hasRole('admin', t))
|
|
432
|
-
.use(customErrorFormatter(t))
|
|
433
|
-
.input(getQueryInput(Data))
|
|
434
|
-
.output(Data.pick({ id: true }))
|
|
435
|
-
.mutation(({ input, ctx }) => ctx.app.service.Core.updateData(input, ctx)),
|
|
436
|
-
getDiscussion: procedure
|
|
437
|
-
.use(hasRole('guest', t))
|
|
438
|
-
.use(customErrorFormatter(t))
|
|
439
|
-
.input(getQueryInput(Discussion))
|
|
440
|
-
.output(Discussion)
|
|
441
|
-
.query(({ input, ctx }) => ctx.app.service.Core.getDiscussion(input, ctx)),
|
|
442
|
-
createDiscussion: procedure
|
|
443
|
-
.use(hasRole('admin', t))
|
|
444
|
-
.use(customErrorFormatter(t))
|
|
445
|
-
.input(getQueryInput(Discussion))
|
|
446
|
-
.output(Discussion.pick({ id: true }))
|
|
447
|
-
.mutation(({ input, ctx }) => ctx.app.service.Core.createDiscussion(input, ctx)),
|
|
448
|
-
updateDiscussion: procedure
|
|
449
|
-
.use(hasRole('admin', t))
|
|
450
|
-
.use(customErrorFormatter(t))
|
|
451
|
-
.input(getQueryInput(Discussion))
|
|
452
|
-
.output(Discussion.pick({ id: true }))
|
|
453
|
-
.mutation(({ input, ctx }) => ctx.app.service.Core.updateDiscussion(input, ctx)),
|
|
454
|
-
getEnergy: procedure
|
|
455
|
-
.use(hasRole('guest', t))
|
|
456
|
-
.use(customErrorFormatter(t))
|
|
457
|
-
.input(getQueryInput(Energy))
|
|
458
|
-
.output(Energy)
|
|
459
|
-
.query(({ input, ctx }) => ctx.app.service.Core.getEnergy(input, ctx)),
|
|
460
|
-
getEnergies: procedure
|
|
461
|
-
.use(hasRole('guest', t))
|
|
462
|
-
.use(customErrorFormatter(t))
|
|
463
|
-
.input(getQueryInput(Energy))
|
|
464
|
-
.query(({ input, ctx }) => ctx.app.service.Core.getEnergies(input, ctx)),
|
|
465
|
-
createEnergy: procedure
|
|
466
|
-
.use(hasRole('admin', t))
|
|
467
|
-
.use(customErrorFormatter(t))
|
|
468
|
-
.input(getQueryInput(Energy))
|
|
469
|
-
.output(Energy.pick({ id: true }))
|
|
470
|
-
.mutation(({ input, ctx }) => ctx.app.service.Core.createEnergy(input, ctx)),
|
|
471
|
-
updateEnergy: procedure
|
|
472
|
-
.use(hasRole('admin', t))
|
|
473
|
-
.use(customErrorFormatter(t))
|
|
474
|
-
.input(getQueryInput(Energy))
|
|
475
|
-
.output(Energy.pick({ id: true }))
|
|
476
|
-
.mutation(({ input, ctx }) => ctx.app.service.Core.updateEnergy(input, ctx)),
|
|
477
|
-
getEvent: procedure
|
|
478
|
-
.use(hasRole('guest', t))
|
|
479
|
-
.use(customErrorFormatter(t))
|
|
480
|
-
.input(getQueryInput(Event))
|
|
481
|
-
.output(Event)
|
|
482
|
-
.query(({ input, ctx }) => ctx.app.service.Core.getEvent(input, ctx)),
|
|
483
|
-
createEvent: procedure
|
|
484
|
-
.use(hasRole('admin', t))
|
|
485
|
-
.use(customErrorFormatter(t))
|
|
486
|
-
.input(getQueryInput(Event))
|
|
487
|
-
.output(Event.pick({ id: true }))
|
|
488
|
-
.mutation(({ input, ctx }) => ctx.app.service.Core.createEvent(input, ctx)),
|
|
489
|
-
updateEvent: procedure
|
|
490
|
-
.use(hasRole('admin', t))
|
|
491
|
-
.use(customErrorFormatter(t))
|
|
492
|
-
.input(getQueryInput(Event))
|
|
493
|
-
.output(Event.pick({ id: true }))
|
|
494
|
-
.mutation(({ input, ctx }) => ctx.app.service.Core.updateEvent(input, ctx)),
|
|
495
|
-
getFile: procedure
|
|
496
|
-
.use(hasRole('guest', t))
|
|
497
|
-
.use(customErrorFormatter(t))
|
|
498
|
-
.input(getQueryInput(File))
|
|
499
|
-
.output(File)
|
|
500
|
-
.query(({ input, ctx }) => ctx.app.service.Core.getFile(input, ctx)),
|
|
501
|
-
createFile: procedure
|
|
502
|
-
.use(hasRole('admin', t))
|
|
503
|
-
.use(customErrorFormatter(t))
|
|
504
|
-
.input(getQueryInput(File))
|
|
505
|
-
.output(File.pick({ id: true }))
|
|
506
|
-
.mutation(({ input, ctx }) => ctx.app.service.Core.createFile(input, ctx)),
|
|
507
|
-
updateFile: procedure
|
|
508
|
-
.use(hasRole('admin', t))
|
|
509
|
-
.use(customErrorFormatter(t))
|
|
510
|
-
.input(getQueryInput(File))
|
|
511
|
-
.output(File.pick({ id: true }))
|
|
512
|
-
.mutation(({ input, ctx }) => ctx.app.service.Core.updateFile(input, ctx)),
|
|
513
|
-
getGalaxy: procedure
|
|
514
|
-
.use(hasRole('guest', t))
|
|
515
|
-
.use(customErrorFormatter(t))
|
|
516
|
-
.input(getQueryInput(Galaxy))
|
|
517
|
-
.output(Galaxy)
|
|
518
|
-
.query(({ input, ctx }) => ctx.app.service.Core.getGalaxy(input, ctx)),
|
|
519
|
-
createGalaxy: procedure
|
|
520
|
-
.use(hasRole('admin', t))
|
|
521
|
-
.use(customErrorFormatter(t))
|
|
522
|
-
.input(getQueryInput(Galaxy))
|
|
523
|
-
.output(Galaxy.pick({ id: true }))
|
|
524
|
-
.mutation(({ input, ctx }) => ctx.app.service.Core.createGalaxy(input, ctx)),
|
|
525
|
-
updateGalaxy: procedure
|
|
526
|
-
.use(hasRole('admin', t))
|
|
527
|
-
.use(customErrorFormatter(t))
|
|
528
|
-
.input(getQueryInput(Galaxy))
|
|
529
|
-
.output(Galaxy.pick({ id: true }))
|
|
530
|
-
.mutation(({ input, ctx }) => ctx.app.service.Core.updateGalaxy(input, ctx)),
|
|
531
|
-
getGuide: procedure
|
|
532
|
-
.use(hasRole('guest', t))
|
|
533
|
-
.use(customErrorFormatter(t))
|
|
534
|
-
.input(getQueryInput(Guide))
|
|
535
|
-
.output(Guide)
|
|
536
|
-
.query(({ input, ctx }) => ctx.app.service.Core.getGuide(input, ctx)),
|
|
537
|
-
createGuide: procedure
|
|
538
|
-
.use(hasRole('admin', t))
|
|
539
|
-
.use(customErrorFormatter(t))
|
|
540
|
-
.input(getQueryInput(Guide))
|
|
541
|
-
.output(Guide.pick({ id: true }))
|
|
542
|
-
.mutation(({ input, ctx }) => ctx.app.service.Core.createGuide(input, ctx)),
|
|
543
|
-
updateGuide: procedure
|
|
544
|
-
.use(hasRole('admin', t))
|
|
545
|
-
.use(customErrorFormatter(t))
|
|
546
|
-
.input(getQueryInput(Guide))
|
|
547
|
-
.output(Guide.pick({ id: true }))
|
|
548
|
-
.mutation(({ input, ctx }) => ctx.app.service.Core.updateGuide(input, ctx)),
|
|
549
|
-
getIdea: procedure
|
|
550
|
-
.use(hasRole('guest', t))
|
|
551
|
-
.use(customErrorFormatter(t))
|
|
552
|
-
.input(getQueryInput(Idea))
|
|
553
|
-
.output(Idea)
|
|
554
|
-
.query(({ input, ctx }) => ctx.app.service.Core.getIdea(input, ctx)),
|
|
555
|
-
createIdea: procedure
|
|
556
|
-
.use(hasRole('admin', t))
|
|
557
|
-
.use(customErrorFormatter(t))
|
|
558
|
-
.input(getQueryInput(Idea))
|
|
559
|
-
.output(Idea.pick({ id: true }))
|
|
560
|
-
.mutation(({ input, ctx }) => ctx.app.service.Core.createIdea(input, ctx)),
|
|
561
|
-
updateIdea: procedure
|
|
562
|
-
.use(hasRole('admin', t))
|
|
563
|
-
.use(customErrorFormatter(t))
|
|
564
|
-
.input(getQueryInput(Idea))
|
|
565
|
-
.output(Idea.pick({ id: true }))
|
|
566
|
-
.mutation(({ input, ctx }) => ctx.app.service.Core.updateIdea(input, ctx)),
|
|
567
|
-
getLeaderboard: procedure
|
|
568
|
-
.use(hasRole('guest', t))
|
|
569
|
-
.use(customErrorFormatter(t))
|
|
570
|
-
.input(getQueryInput(Leaderboard))
|
|
571
|
-
.output(Leaderboard)
|
|
572
|
-
.query(({ input, ctx }) => ctx.app.service.Core.getLeaderboard(input, ctx)),
|
|
573
|
-
createLeaderboard: procedure
|
|
574
|
-
.use(hasRole('admin', t))
|
|
575
|
-
.use(customErrorFormatter(t))
|
|
576
|
-
.input(getQueryInput(Leaderboard))
|
|
577
|
-
.output(Leaderboard.pick({ id: true }))
|
|
578
|
-
.mutation(({ input, ctx }) => ctx.app.service.Core.createLeaderboard(input, ctx)),
|
|
579
|
-
updateLeaderboard: procedure
|
|
580
|
-
.use(hasRole('admin', t))
|
|
581
|
-
.use(customErrorFormatter(t))
|
|
582
|
-
.input(getQueryInput(Leaderboard))
|
|
583
|
-
.output(Leaderboard.pick({ id: true }))
|
|
584
|
-
.mutation(({ input, ctx }) => ctx.app.service.Core.updateLeaderboard(input, ctx)),
|
|
585
|
-
getLog: procedure
|
|
586
|
-
.use(hasRole('guest', t))
|
|
587
|
-
.use(customErrorFormatter(t))
|
|
588
|
-
.input(getQueryInput(Log))
|
|
589
|
-
.output(Log)
|
|
590
|
-
.query(({ input, ctx }) => ctx.app.service.Core.getLog(input, ctx)),
|
|
591
|
-
createLog: procedure
|
|
592
|
-
.use(hasRole('admin', t))
|
|
593
|
-
.use(customErrorFormatter(t))
|
|
594
|
-
.input(getQueryInput(Log))
|
|
595
|
-
.output(Log.pick({ id: true }))
|
|
596
|
-
.mutation(({ input, ctx }) => ctx.app.service.Core.createLog(input, ctx)),
|
|
597
|
-
updateLog: procedure
|
|
598
|
-
.use(hasRole('admin', t))
|
|
599
|
-
.use(customErrorFormatter(t))
|
|
600
|
-
.input(getQueryInput(Log))
|
|
601
|
-
.output(Log.pick({ id: true }))
|
|
602
|
-
.mutation(({ input, ctx }) => ctx.app.service.Core.updateLog(input, ctx)),
|
|
603
|
-
getLore: procedure
|
|
604
|
-
.use(hasRole('guest', t))
|
|
605
|
-
.use(customErrorFormatter(t))
|
|
606
|
-
.input(getQueryInput(Lore))
|
|
607
|
-
.output(Lore)
|
|
608
|
-
.query(({ input, ctx }) => ctx.app.service.Core.getLore(input, ctx)),
|
|
609
|
-
createLore: procedure
|
|
610
|
-
.use(hasRole('admin', t))
|
|
611
|
-
.use(customErrorFormatter(t))
|
|
612
|
-
.input(getQueryInput(Lore))
|
|
613
|
-
.output(Lore.pick({ id: true }))
|
|
614
|
-
.mutation(({ input, ctx }) => ctx.app.service.Core.createLore(input, ctx)),
|
|
615
|
-
updateLore: procedure
|
|
616
|
-
.use(hasRole('admin', t))
|
|
617
|
-
.use(customErrorFormatter(t))
|
|
618
|
-
.input(getQueryInput(Lore))
|
|
619
|
-
.output(Lore.pick({ id: true }))
|
|
620
|
-
.mutation(({ input, ctx }) => ctx.app.service.Core.updateLore(input, ctx)),
|
|
621
|
-
getMemory: procedure
|
|
622
|
-
.use(hasRole('guest', t))
|
|
623
|
-
.use(customErrorFormatter(t))
|
|
624
|
-
.input(getQueryInput(Memory))
|
|
625
|
-
.output(Memory)
|
|
626
|
-
.query(({ input, ctx }) => ctx.app.service.Core.getMemory(input, ctx)),
|
|
627
|
-
createMemory: procedure
|
|
628
|
-
.use(hasRole('admin', t))
|
|
629
|
-
.use(customErrorFormatter(t))
|
|
630
|
-
.input(getQueryInput(Memory))
|
|
631
|
-
.output(Memory.pick({ id: true }))
|
|
632
|
-
.mutation(({ input, ctx }) => ctx.app.service.Core.createMemory(input, ctx)),
|
|
633
|
-
updateMemory: procedure
|
|
634
|
-
.use(hasRole('admin', t))
|
|
635
|
-
.use(customErrorFormatter(t))
|
|
636
|
-
.input(getQueryInput(Memory))
|
|
637
|
-
.output(Memory.pick({ id: true }))
|
|
638
|
-
.mutation(({ input, ctx }) => ctx.app.service.Core.updateMemory(input, ctx)),
|
|
639
|
-
getMessage: procedure
|
|
640
|
-
.use(hasRole('guest', t))
|
|
641
|
-
.use(customErrorFormatter(t))
|
|
642
|
-
.input(getQueryInput(Message))
|
|
643
|
-
.output(Message)
|
|
644
|
-
.query(({ input, ctx }) => ctx.app.service.Core.getMessage(input, ctx)),
|
|
645
|
-
createMessage: procedure
|
|
646
|
-
.use(hasRole('admin', t))
|
|
647
|
-
.use(customErrorFormatter(t))
|
|
648
|
-
.input(getQueryInput(Message))
|
|
649
|
-
.output(Message.pick({ id: true }))
|
|
650
|
-
.mutation(({ input, ctx }) => ctx.app.service.Core.createMessage(input, ctx)),
|
|
651
|
-
updateMessage: procedure
|
|
652
|
-
.use(hasRole('admin', t))
|
|
653
|
-
.use(customErrorFormatter(t))
|
|
654
|
-
.input(getQueryInput(Message))
|
|
655
|
-
.output(Message.pick({ id: true }))
|
|
656
|
-
.mutation(({ input, ctx }) => ctx.app.service.Core.updateMessage(input, ctx)),
|
|
657
|
-
getMetaverse: procedure
|
|
658
|
-
.use(hasRole('guest', t))
|
|
659
|
-
.use(customErrorFormatter(t))
|
|
660
|
-
.input(getQueryInput(Metaverse))
|
|
661
|
-
.output(Metaverse)
|
|
662
|
-
.query(({ input, ctx }) => ctx.app.service.Core.getMetaverse(input, ctx)),
|
|
663
|
-
createMetaverse: procedure
|
|
664
|
-
.use(hasRole('admin', t))
|
|
665
|
-
.use(customErrorFormatter(t))
|
|
666
|
-
.input(getQueryInput(Metaverse))
|
|
667
|
-
.output(Metaverse.pick({ id: true }))
|
|
668
|
-
.mutation(({ input, ctx }) => ctx.app.service.Core.createMetaverse(input, ctx)),
|
|
669
|
-
updateMetaverse: procedure
|
|
670
|
-
.use(hasRole('admin', t))
|
|
671
|
-
.use(customErrorFormatter(t))
|
|
672
|
-
.input(getQueryInput(Metaverse))
|
|
673
|
-
.output(Metaverse.pick({ id: true }))
|
|
674
|
-
.mutation(({ input, ctx }) => ctx.app.service.Core.updateMetaverse(input, ctx)),
|
|
675
|
-
getNewsArticle: procedure
|
|
676
|
-
.use(hasRole('guest', t))
|
|
677
|
-
.use(customErrorFormatter(t))
|
|
678
|
-
.input(getQueryInput(NewsArticle))
|
|
679
|
-
.output(NewsArticle)
|
|
680
|
-
.query(({ input, ctx }) => ctx.app.service.Core.getNewsArticle(input, ctx)),
|
|
681
|
-
createNewsArticle: procedure
|
|
682
|
-
.use(hasRole('admin', t))
|
|
683
|
-
.use(customErrorFormatter(t))
|
|
684
|
-
.input(getQueryInput(NewsArticle))
|
|
685
|
-
.output(NewsArticle.pick({ id: true }))
|
|
686
|
-
.mutation(({ input, ctx }) => ctx.app.service.Core.createNewsArticle(input, ctx)),
|
|
687
|
-
updateNewsArticle: procedure
|
|
688
|
-
.use(hasRole('admin', t))
|
|
689
|
-
.use(customErrorFormatter(t))
|
|
690
|
-
.input(getQueryInput(NewsArticle))
|
|
691
|
-
.output(NewsArticle.pick({ id: true }))
|
|
692
|
-
.mutation(({ input, ctx }) => ctx.app.service.Core.updateNewsArticle(input, ctx)),
|
|
693
|
-
getNpc: procedure
|
|
694
|
-
.use(hasRole('guest', t))
|
|
695
|
-
.use(customErrorFormatter(t))
|
|
696
|
-
.input(getQueryInput(Npc))
|
|
697
|
-
.output(Npc)
|
|
698
|
-
.query(({ input, ctx }) => ctx.app.service.Core.getNpc(input, ctx)),
|
|
699
|
-
createNpc: procedure
|
|
700
|
-
.use(hasRole('admin', t))
|
|
701
|
-
.use(customErrorFormatter(t))
|
|
702
|
-
.input(getQueryInput(Npc))
|
|
703
|
-
.output(Npc.pick({ id: true }))
|
|
704
|
-
.mutation(({ input, ctx }) => ctx.app.service.Core.createNpc(input, ctx)),
|
|
705
|
-
updateNpc: procedure
|
|
706
|
-
.use(hasRole('admin', t))
|
|
707
|
-
.use(customErrorFormatter(t))
|
|
708
|
-
.input(getQueryInput(Npc))
|
|
709
|
-
.output(Npc.pick({ id: true }))
|
|
710
|
-
.mutation(({ input, ctx }) => ctx.app.service.Core.updateNpc(input, ctx)),
|
|
711
|
-
getOffer: procedure
|
|
712
|
-
.use(hasRole('guest', t))
|
|
713
|
-
.use(customErrorFormatter(t))
|
|
714
|
-
.input(getQueryInput(Offer))
|
|
715
|
-
.output(Offer)
|
|
716
|
-
.query(({ input, ctx }) => ctx.app.service.Core.getOffer(input, ctx)),
|
|
717
|
-
createOffer: procedure
|
|
718
|
-
.use(hasRole('admin', t))
|
|
719
|
-
.use(customErrorFormatter(t))
|
|
720
|
-
.input(getQueryInput(Offer))
|
|
721
|
-
.output(Offer.pick({ id: true }))
|
|
722
|
-
.mutation(({ input, ctx }) => ctx.app.service.Core.createOffer(input, ctx)),
|
|
723
|
-
updateOffer: procedure
|
|
724
|
-
.use(hasRole('admin', t))
|
|
725
|
-
.use(customErrorFormatter(t))
|
|
726
|
-
.input(getQueryInput(Offer))
|
|
727
|
-
.output(Offer.pick({ id: true }))
|
|
728
|
-
.mutation(({ input, ctx }) => ctx.app.service.Core.updateOffer(input, ctx)),
|
|
729
|
-
getOmniverse: procedure
|
|
730
|
-
.use(hasRole('guest', t))
|
|
731
|
-
.use(customErrorFormatter(t))
|
|
732
|
-
.input(getQueryInput(Omniverse))
|
|
733
|
-
.output(Omniverse)
|
|
734
|
-
.query(({ input, ctx }) => ctx.app.service.Core.getOmniverse(input, ctx)),
|
|
735
|
-
createOmniverse: procedure
|
|
736
|
-
.use(hasRole('admin', t))
|
|
737
|
-
.use(customErrorFormatter(t))
|
|
738
|
-
.input(getQueryInput(Omniverse))
|
|
739
|
-
.output(Omniverse.pick({ id: true }))
|
|
740
|
-
.mutation(({ input, ctx }) => ctx.app.service.Core.createOmniverse(input, ctx)),
|
|
741
|
-
updateOmniverse: procedure
|
|
742
|
-
.use(hasRole('admin', t))
|
|
743
|
-
.use(customErrorFormatter(t))
|
|
744
|
-
.input(getQueryInput(Omniverse))
|
|
745
|
-
.output(Omniverse.pick({ id: true }))
|
|
746
|
-
.mutation(({ input, ctx }) => ctx.app.service.Core.updateOmniverse(input, ctx)),
|
|
747
|
-
getOrder: procedure
|
|
748
|
-
.use(hasRole('guest', t))
|
|
749
|
-
.use(customErrorFormatter(t))
|
|
750
|
-
.input(getQueryInput(Order))
|
|
751
|
-
.output(Order)
|
|
752
|
-
.query(({ input, ctx }) => ctx.app.service.Core.getOrder(input, ctx)),
|
|
753
|
-
createOrder: procedure
|
|
754
|
-
.use(hasRole('admin', t))
|
|
755
|
-
.use(customErrorFormatter(t))
|
|
756
|
-
.input(getQueryInput(Order))
|
|
757
|
-
.output(Order.pick({ id: true }))
|
|
758
|
-
.mutation(({ input, ctx }) => ctx.app.service.Core.createOrder(input, ctx)),
|
|
759
|
-
updateOrder: procedure
|
|
760
|
-
.use(hasRole('admin', t))
|
|
761
|
-
.use(customErrorFormatter(t))
|
|
762
|
-
.input(getQueryInput(Order))
|
|
763
|
-
.output(Order.pick({ id: true }))
|
|
764
|
-
.mutation(({ input, ctx }) => ctx.app.service.Core.updateOrder(input, ctx)),
|
|
765
|
-
getPayment: procedure
|
|
766
|
-
.use(hasRole('guest', t))
|
|
767
|
-
.use(customErrorFormatter(t))
|
|
768
|
-
.input(getQueryInput(Payment))
|
|
769
|
-
.output(Payment)
|
|
770
|
-
.query(({ input, ctx }) => ctx.app.service.Core.getPayment(input, ctx)),
|
|
771
|
-
createPayment: procedure
|
|
772
|
-
.use(hasRole('admin', t))
|
|
773
|
-
.use(customErrorFormatter(t))
|
|
774
|
-
.input(getQueryInput(Payment))
|
|
775
|
-
.output(Payment.pick({ id: true }))
|
|
776
|
-
.mutation(({ input, ctx }) => ctx.app.service.Core.createPayment(input, ctx)),
|
|
777
|
-
updatePayment: procedure
|
|
778
|
-
.use(hasRole('admin', t))
|
|
779
|
-
.use(customErrorFormatter(t))
|
|
780
|
-
.input(getQueryInput(Payment))
|
|
781
|
-
.output(Payment.pick({ id: true }))
|
|
782
|
-
.mutation(({ input, ctx }) => ctx.app.service.Core.updatePayment(input, ctx)),
|
|
783
|
-
getPermission: procedure
|
|
784
|
-
.use(hasRole('guest', t))
|
|
785
|
-
.use(customErrorFormatter(t))
|
|
786
|
-
.input(getQueryInput(Permission))
|
|
787
|
-
.output(Permission)
|
|
788
|
-
.query(({ input, ctx }) => ctx.app.service.Core.getPermission(input, ctx)),
|
|
789
|
-
createPermission: procedure
|
|
790
|
-
.use(hasRole('admin', t))
|
|
791
|
-
.use(customErrorFormatter(t))
|
|
792
|
-
.input(getQueryInput(Permission))
|
|
793
|
-
.output(Permission.pick({ id: true }))
|
|
794
|
-
.mutation(({ input, ctx }) => ctx.app.service.Core.createPermission(input, ctx)),
|
|
795
|
-
updatePermission: procedure
|
|
796
|
-
.use(hasRole('admin', t))
|
|
797
|
-
.use(customErrorFormatter(t))
|
|
798
|
-
.input(getQueryInput(Permission))
|
|
799
|
-
.output(Permission.pick({ id: true }))
|
|
800
|
-
.mutation(({ input, ctx }) => ctx.app.service.Core.updatePermission(input, ctx)),
|
|
801
|
-
getPerson: procedure
|
|
802
|
-
.use(hasRole('guest', t))
|
|
803
|
-
.use(customErrorFormatter(t))
|
|
804
|
-
.input(getQueryInput(Person))
|
|
805
|
-
.output(Person)
|
|
806
|
-
.query(({ input, ctx }) => ctx.app.service.Core.getPerson(input, ctx)),
|
|
807
|
-
createPerson: procedure
|
|
808
|
-
.use(hasRole('admin', t))
|
|
809
|
-
.use(customErrorFormatter(t))
|
|
810
|
-
.input(getQueryInput(Person))
|
|
811
|
-
.output(Person.pick({ id: true }))
|
|
812
|
-
.mutation(({ input, ctx }) => ctx.app.service.Core.createPerson(input, ctx)),
|
|
813
|
-
updatePerson: procedure
|
|
814
|
-
.use(hasRole('admin', t))
|
|
815
|
-
.use(customErrorFormatter(t))
|
|
816
|
-
.input(getQueryInput(Person))
|
|
817
|
-
.output(Person.pick({ id: true }))
|
|
818
|
-
.mutation(({ input, ctx }) => ctx.app.service.Core.updatePerson(input, ctx)),
|
|
819
|
-
getPlanet: procedure
|
|
820
|
-
.use(hasRole('guest', t))
|
|
821
|
-
.use(customErrorFormatter(t))
|
|
822
|
-
.input(getQueryInput(Planet))
|
|
823
|
-
.output(Planet)
|
|
824
|
-
.query(({ input, ctx }) => ctx.app.service.Core.getPlanet(input, ctx)),
|
|
825
|
-
createPlanet: procedure
|
|
826
|
-
.use(hasRole('admin', t))
|
|
827
|
-
.use(customErrorFormatter(t))
|
|
828
|
-
.input(getQueryInput(Planet))
|
|
829
|
-
.output(Planet.pick({ id: true }))
|
|
830
|
-
.mutation(({ input, ctx }) => ctx.app.service.Core.createPlanet(input, ctx)),
|
|
831
|
-
updatePlanet: procedure
|
|
832
|
-
.use(hasRole('admin', t))
|
|
833
|
-
.use(customErrorFormatter(t))
|
|
834
|
-
.input(getQueryInput(Planet))
|
|
835
|
-
.output(Planet.pick({ id: true }))
|
|
836
|
-
.mutation(({ input, ctx }) => ctx.app.service.Core.updatePlanet(input, ctx)),
|
|
837
|
-
getPoll: procedure
|
|
838
|
-
.use(hasRole('guest', t))
|
|
839
|
-
.use(customErrorFormatter(t))
|
|
840
|
-
.input(getQueryInput(Poll))
|
|
841
|
-
.output(Poll)
|
|
842
|
-
.query(({ input, ctx }) => ctx.app.service.Core.getPoll(input, ctx)),
|
|
843
|
-
createPoll: procedure
|
|
844
|
-
.use(hasRole('admin', t))
|
|
845
|
-
.use(customErrorFormatter(t))
|
|
846
|
-
.input(getQueryInput(Poll))
|
|
847
|
-
.output(Poll.pick({ id: true }))
|
|
848
|
-
.mutation(({ input, ctx }) => ctx.app.service.Core.createPoll(input, ctx)),
|
|
849
|
-
updatePoll: procedure
|
|
850
|
-
.use(hasRole('admin', t))
|
|
851
|
-
.use(customErrorFormatter(t))
|
|
852
|
-
.input(getQueryInput(Poll))
|
|
853
|
-
.output(Poll.pick({ id: true }))
|
|
854
|
-
.mutation(({ input, ctx }) => ctx.app.service.Core.updatePoll(input, ctx)),
|
|
855
|
-
getProject: procedure
|
|
856
|
-
.use(hasRole('guest', t))
|
|
857
|
-
.use(customErrorFormatter(t))
|
|
858
|
-
.input(getQueryInput(Project))
|
|
859
|
-
.output(Project)
|
|
860
|
-
.query(({ input, ctx }) => ctx.app.service.Core.getProject(input, ctx)),
|
|
861
|
-
createProject: procedure
|
|
862
|
-
.use(hasRole('admin', t))
|
|
863
|
-
.use(customErrorFormatter(t))
|
|
864
|
-
.input(getQueryInput(Project))
|
|
865
|
-
.output(Project.pick({ id: true }))
|
|
866
|
-
.mutation(({ input, ctx }) => ctx.app.service.Core.createProject(input, ctx)),
|
|
867
|
-
updateProject: procedure
|
|
868
|
-
.use(hasRole('admin', t))
|
|
869
|
-
.use(customErrorFormatter(t))
|
|
870
|
-
.input(getQueryInput(Project))
|
|
871
|
-
.output(Project.pick({ id: true }))
|
|
872
|
-
.mutation(({ input, ctx }) => ctx.app.service.Core.updateProject(input, ctx)),
|
|
873
|
-
getProposal: procedure
|
|
874
|
-
.use(hasRole('guest', t))
|
|
875
|
-
.use(customErrorFormatter(t))
|
|
876
|
-
.input(getQueryInput(Proposal))
|
|
877
|
-
.output(Proposal)
|
|
878
|
-
.query(({ input, ctx }) => ctx.app.service.Core.getProposal(input, ctx)),
|
|
879
|
-
createProposal: procedure
|
|
880
|
-
.use(hasRole('admin', t))
|
|
881
|
-
.use(customErrorFormatter(t))
|
|
882
|
-
.input(getQueryInput(Proposal))
|
|
883
|
-
.output(Proposal.pick({ id: true }))
|
|
884
|
-
.mutation(({ input, ctx }) => ctx.app.service.Core.createProposal(input, ctx)),
|
|
885
|
-
updateProposal: procedure
|
|
886
|
-
.use(hasRole('admin', t))
|
|
887
|
-
.use(customErrorFormatter(t))
|
|
888
|
-
.input(getQueryInput(Proposal))
|
|
889
|
-
.output(Proposal.pick({ id: true }))
|
|
890
|
-
.mutation(({ input, ctx }) => ctx.app.service.Core.updateProposal(input, ctx)),
|
|
891
|
-
getQuest: procedure
|
|
892
|
-
.use(hasRole('guest', t))
|
|
893
|
-
.use(customErrorFormatter(t))
|
|
894
|
-
.input(getQueryInput(Quest))
|
|
895
|
-
.output(Quest)
|
|
896
|
-
.query(({ input, ctx }) => ctx.app.service.Core.getQuest(input, ctx)),
|
|
897
|
-
createQuest: procedure
|
|
898
|
-
.use(hasRole('admin', t))
|
|
899
|
-
.use(customErrorFormatter(t))
|
|
900
|
-
.input(getQueryInput(Quest))
|
|
901
|
-
.output(Quest.pick({ id: true }))
|
|
902
|
-
.mutation(({ input, ctx }) => ctx.app.service.Core.createQuest(input, ctx)),
|
|
903
|
-
updateQuest: procedure
|
|
904
|
-
.use(hasRole('admin', t))
|
|
905
|
-
.use(customErrorFormatter(t))
|
|
906
|
-
.input(getQueryInput(Quest))
|
|
907
|
-
.output(Quest.pick({ id: true }))
|
|
908
|
-
.mutation(({ input, ctx }) => ctx.app.service.Core.updateQuest(input, ctx)),
|
|
909
|
-
getRating: procedure
|
|
910
|
-
.use(hasRole('guest', t))
|
|
911
|
-
.use(customErrorFormatter(t))
|
|
912
|
-
.input(getQueryInput(Rating))
|
|
913
|
-
.output(Rating)
|
|
914
|
-
.query(({ input, ctx }) => ctx.app.service.Core.getRating(input, ctx)),
|
|
915
|
-
createRating: procedure
|
|
916
|
-
.use(hasRole('admin', t))
|
|
917
|
-
.use(customErrorFormatter(t))
|
|
918
|
-
.input(getQueryInput(Rating))
|
|
919
|
-
.output(Rating.pick({ id: true }))
|
|
920
|
-
.mutation(({ input, ctx }) => ctx.app.service.Core.createRating(input, ctx)),
|
|
921
|
-
updateRating: procedure
|
|
922
|
-
.use(hasRole('admin', t))
|
|
923
|
-
.use(customErrorFormatter(t))
|
|
924
|
-
.input(getQueryInput(Rating))
|
|
925
|
-
.output(Rating.pick({ id: true }))
|
|
926
|
-
.mutation(({ input, ctx }) => ctx.app.service.Core.updateRating(input, ctx)),
|
|
927
|
-
getRealm: procedure
|
|
928
|
-
.use(hasRole('guest', t))
|
|
929
|
-
.use(customErrorFormatter(t))
|
|
930
|
-
.input(getQueryInput(Realm))
|
|
931
|
-
.output(Realm)
|
|
932
|
-
.query(({ input, ctx }) => ctx.app.service.Core.getRealm(input, ctx)),
|
|
933
|
-
getRealms: procedure
|
|
934
|
-
.use(hasRole('guest', t))
|
|
935
|
-
.use(customErrorFormatter(t))
|
|
936
|
-
.input(getQueryInput(Realm))
|
|
937
|
-
.output(z.array(Realm))
|
|
938
|
-
.query(({ input, ctx }) => ctx.app.service.Core.getRealms(input, ctx)),
|
|
939
|
-
createRealm: procedure
|
|
940
|
-
.use(hasRole('admin', t))
|
|
941
|
-
.use(customErrorFormatter(t))
|
|
942
|
-
.input(getQueryInput(Realm))
|
|
943
|
-
.output(Realm.pick({ id: true }))
|
|
944
|
-
.mutation(({ input, ctx }) => ctx.app.service.Core.createRealm(input, ctx)),
|
|
945
|
-
updateRealm: procedure
|
|
946
|
-
.use(hasRole('admin', t))
|
|
947
|
-
.use(customErrorFormatter(t))
|
|
948
|
-
.input(getQueryInput(Realm))
|
|
949
|
-
.output(Realm.pick({ id: true }))
|
|
950
|
-
.mutation(({ input, ctx }) => ctx.app.service.Core.updateRealm(input, ctx)),
|
|
951
|
-
getRealmEvent: procedure
|
|
952
|
-
.use(hasRole('guest', t))
|
|
953
|
-
.use(customErrorFormatter(t))
|
|
954
|
-
.input(getQueryInput(RealmEvent))
|
|
955
|
-
.output(RealmEvent)
|
|
956
|
-
.query(({ input, ctx }) => ctx.app.service.Core.getRealmEvent(input, ctx)),
|
|
957
|
-
getRealmEvents: procedure
|
|
958
|
-
.use(hasRole('guest', t))
|
|
959
|
-
.use(customErrorFormatter(t))
|
|
960
|
-
.input(getQueryInput(RealmEvent))
|
|
961
|
-
.output(z.array(RealmEvent))
|
|
962
|
-
.query(({ input, ctx }) => ctx.app.service.Core.getRealmEvents(input, ctx)),
|
|
963
|
-
createRealmEvent: procedure
|
|
964
|
-
.use(hasRole('admin', t))
|
|
965
|
-
.use(customErrorFormatter(t))
|
|
966
|
-
.input(getQueryInput(RealmEvent))
|
|
967
|
-
.output(RealmEvent.pick({ id: true }))
|
|
968
|
-
.mutation(({ input, ctx }) => ctx.app.service.Core.createRealmEvent(input, ctx)),
|
|
969
|
-
updateRealmEvent: procedure
|
|
970
|
-
.use(hasRole('admin', t))
|
|
971
|
-
.use(customErrorFormatter(t))
|
|
972
|
-
.input(getQueryInput(RealmEvent))
|
|
973
|
-
.output(RealmEvent.pick({ id: true }))
|
|
974
|
-
.mutation(({ input, ctx }) => ctx.app.service.Core.updateRealmEvent(input, ctx)),
|
|
975
|
-
getRevision: procedure
|
|
976
|
-
.use(hasRole('guest', t))
|
|
977
|
-
.use(customErrorFormatter(t))
|
|
978
|
-
.input(getQueryInput(Revision))
|
|
979
|
-
.output(Revision)
|
|
980
|
-
.query(({ input, ctx }) => ctx.app.service.Core.getRevision(input, ctx)),
|
|
981
|
-
createRevision: procedure
|
|
982
|
-
.use(hasRole('admin', t))
|
|
983
|
-
.use(customErrorFormatter(t))
|
|
984
|
-
.input(getQueryInput(Revision))
|
|
985
|
-
.output(Revision.pick({ id: true }))
|
|
986
|
-
.mutation(({ input, ctx }) => ctx.app.service.Core.createRevision(input, ctx)),
|
|
987
|
-
updateRevision: procedure
|
|
988
|
-
.use(hasRole('admin', t))
|
|
989
|
-
.use(customErrorFormatter(t))
|
|
990
|
-
.input(getQueryInput(Revision))
|
|
991
|
-
.output(Revision.pick({ id: true }))
|
|
992
|
-
.mutation(({ input, ctx }) => ctx.app.service.Core.updateRevision(input, ctx)),
|
|
993
|
-
getReferral: procedure
|
|
994
|
-
.use(hasRole('guest', t))
|
|
995
|
-
.use(customErrorFormatter(t))
|
|
996
|
-
.input(getQueryInput(Referral))
|
|
997
|
-
.output(Referral)
|
|
998
|
-
.query(({ input, ctx }) => ctx.app.service.Core.getReferral(input, ctx)),
|
|
999
|
-
createReferral: procedure
|
|
1000
|
-
.use(hasRole('admin', t))
|
|
1001
|
-
.use(customErrorFormatter(t))
|
|
1002
|
-
.input(getQueryInput(Referral))
|
|
1003
|
-
.output(Referral.pick({ id: true }))
|
|
1004
|
-
.mutation(({ input, ctx }) => ctx.app.service.Core.createReferral(input, ctx)),
|
|
1005
|
-
updateReferral: procedure
|
|
1006
|
-
.use(hasRole('admin', t))
|
|
1007
|
-
.use(customErrorFormatter(t))
|
|
1008
|
-
.input(getQueryInput(Referral))
|
|
1009
|
-
.output(Referral.pick({ id: true }))
|
|
1010
|
-
.mutation(({ input, ctx }) => ctx.app.service.Core.updateReferral(input, ctx)),
|
|
1011
|
-
getReview: procedure
|
|
1012
|
-
.use(hasRole('guest', t))
|
|
1013
|
-
.use(customErrorFormatter(t))
|
|
1014
|
-
.input(getQueryInput(Review))
|
|
1015
|
-
.output(Review)
|
|
1016
|
-
.query(({ input, ctx }) => ctx.app.service.Core.getReview(input, ctx)),
|
|
1017
|
-
createReview: procedure
|
|
1018
|
-
.use(hasRole('admin', t))
|
|
1019
|
-
.use(customErrorFormatter(t))
|
|
1020
|
-
.input(getQueryInput(Review))
|
|
1021
|
-
.output(Review.pick({ id: true }))
|
|
1022
|
-
.mutation(({ input, ctx }) => ctx.app.service.Core.createReview(input, ctx)),
|
|
1023
|
-
updateReview: procedure
|
|
1024
|
-
.use(hasRole('admin', t))
|
|
1025
|
-
.use(customErrorFormatter(t))
|
|
1026
|
-
.input(getQueryInput(Review))
|
|
1027
|
-
.output(Review.pick({ id: true }))
|
|
1028
|
-
.mutation(({ input, ctx }) => ctx.app.service.Core.updateReview(input, ctx)),
|
|
1029
|
-
getRole: procedure
|
|
1030
|
-
.use(hasRole('guest', t))
|
|
1031
|
-
.use(customErrorFormatter(t))
|
|
1032
|
-
.input(getQueryInput(Role))
|
|
1033
|
-
.output(Role)
|
|
1034
|
-
.query(({ input, ctx }) => ctx.app.service.Core.getRole(input, ctx)),
|
|
1035
|
-
createRole: procedure
|
|
1036
|
-
.use(hasRole('admin', t))
|
|
1037
|
-
.use(customErrorFormatter(t))
|
|
1038
|
-
.input(getQueryInput(Role))
|
|
1039
|
-
.output(Role.pick({ id: true }))
|
|
1040
|
-
.mutation(({ input, ctx }) => ctx.app.service.Core.createRole(input, ctx)),
|
|
1041
|
-
updateRole: procedure
|
|
1042
|
-
.use(hasRole('admin', t))
|
|
1043
|
-
.use(customErrorFormatter(t))
|
|
1044
|
-
.input(getQueryInput(Role))
|
|
1045
|
-
.output(Role.pick({ id: true }))
|
|
1046
|
-
.mutation(({ input, ctx }) => ctx.app.service.Core.updateRole(input, ctx)),
|
|
1047
|
-
getSeason: procedure
|
|
1048
|
-
.use(hasRole('guest', t))
|
|
1049
|
-
.use(customErrorFormatter(t))
|
|
1050
|
-
.input(getQueryInput(Season))
|
|
1051
|
-
.output(Season)
|
|
1052
|
-
.query(({ input, ctx }) => ctx.app.service.Core.getSeason(input, ctx)),
|
|
1053
|
-
createSeason: procedure
|
|
1054
|
-
.use(hasRole('admin', t))
|
|
1055
|
-
.use(customErrorFormatter(t))
|
|
1056
|
-
.input(getQueryInput(Season))
|
|
1057
|
-
.output(Season.pick({ id: true }))
|
|
1058
|
-
.mutation(({ input, ctx }) => ctx.app.service.Core.createSeason(input, ctx)),
|
|
1059
|
-
updateSeason: procedure
|
|
1060
|
-
.use(hasRole('admin', t))
|
|
1061
|
-
.use(customErrorFormatter(t))
|
|
1062
|
-
.input(getQueryInput(Season))
|
|
1063
|
-
.output(Season.pick({ id: true }))
|
|
1064
|
-
.mutation(({ input, ctx }) => ctx.app.service.Core.updateSeason(input, ctx)),
|
|
1065
|
-
getRealmShard: procedure
|
|
1066
|
-
.use(hasRole('guest', t))
|
|
1067
|
-
.use(customErrorFormatter(t))
|
|
1068
|
-
.input(getQueryInput(RealmShard))
|
|
1069
|
-
.output(RealmShard)
|
|
1070
|
-
.query(({ input, ctx }) => ctx.app.service.Core.getRealmShard(input, ctx)),
|
|
1071
|
-
getRealmShards: procedure
|
|
1072
|
-
.use(hasRole('guest', t))
|
|
1073
|
-
.use(customErrorFormatter(t))
|
|
1074
|
-
.input(getQueryInput(RealmShard))
|
|
1075
|
-
.output(z.array(RealmShard))
|
|
1076
|
-
.query(({ input, ctx }) => ctx.app.service.Core.getRealmShards(input, ctx)),
|
|
1077
|
-
createRealmShard: procedure
|
|
1078
|
-
.use(hasRole('admin', t))
|
|
1079
|
-
.use(customErrorFormatter(t))
|
|
1080
|
-
.input(getQueryInput(RealmShard))
|
|
1081
|
-
.output(RealmShard.pick({ id: true }))
|
|
1082
|
-
.mutation(({ input, ctx }) => ctx.app.service.Core.createRealmShard(input, ctx)),
|
|
1083
|
-
updateRealmShard: procedure
|
|
1084
|
-
.use(hasRole('admin', t))
|
|
1085
|
-
.use(customErrorFormatter(t))
|
|
1086
|
-
.input(getQueryInput(RealmShard))
|
|
1087
|
-
.output(RealmShard.pick({ id: true }))
|
|
1088
|
-
.mutation(({ input, ctx }) => ctx.app.service.Core.updateRealmShard(input, ctx)),
|
|
1089
|
-
getSession: procedure
|
|
1090
|
-
.use(hasRole('guest', t))
|
|
1091
|
-
.use(customErrorFormatter(t))
|
|
1092
|
-
.input(getQueryInput(Session))
|
|
1093
|
-
.output(Session)
|
|
1094
|
-
.query(({ input, ctx }) => ctx.app.service.Core.getSession(input, ctx)),
|
|
1095
|
-
createSession: procedure
|
|
1096
|
-
.use(hasRole('admin', t))
|
|
1097
|
-
.use(customErrorFormatter(t))
|
|
1098
|
-
.input(getQueryInput(Session))
|
|
1099
|
-
.output(Session.pick({ id: true }))
|
|
1100
|
-
.mutation(({ input, ctx }) => ctx.app.service.Core.createSession(input, ctx)),
|
|
1101
|
-
updateSession: procedure
|
|
1102
|
-
.use(hasRole('admin', t))
|
|
1103
|
-
.use(customErrorFormatter(t))
|
|
1104
|
-
.input(getQueryInput(Session))
|
|
1105
|
-
.output(Session.pick({ id: true }))
|
|
1106
|
-
.mutation(({ input, ctx }) => ctx.app.service.Core.updateSession(input, ctx)),
|
|
1107
|
-
getSolarSystem: procedure
|
|
1108
|
-
.use(hasRole('guest', t))
|
|
1109
|
-
.use(customErrorFormatter(t))
|
|
1110
|
-
.input(getQueryInput(SolarSystem))
|
|
1111
|
-
.output(SolarSystem)
|
|
1112
|
-
.query(({ input, ctx }) => ctx.app.service.Core.getSolarSystem(input, ctx)),
|
|
1113
|
-
createSolarSystem: procedure
|
|
1114
|
-
.use(hasRole('admin', t))
|
|
1115
|
-
.use(customErrorFormatter(t))
|
|
1116
|
-
.input(getQueryInput(SolarSystem))
|
|
1117
|
-
.output(SolarSystem.pick({ id: true }))
|
|
1118
|
-
.mutation(({ input, ctx }) => ctx.app.service.Core.createSolarSystem(input, ctx)),
|
|
1119
|
-
updateSolarSystem: procedure
|
|
1120
|
-
.use(hasRole('admin', t))
|
|
1121
|
-
.use(customErrorFormatter(t))
|
|
1122
|
-
.input(getQueryInput(SolarSystem))
|
|
1123
|
-
.output(SolarSystem.pick({ id: true }))
|
|
1124
|
-
.mutation(({ input, ctx }) => ctx.app.service.Core.updateSolarSystem(input, ctx)),
|
|
1125
|
-
getStar: procedure
|
|
1126
|
-
.use(hasRole('guest', t))
|
|
1127
|
-
.use(customErrorFormatter(t))
|
|
1128
|
-
.input(getQueryInput(Star))
|
|
1129
|
-
.output(Star)
|
|
1130
|
-
.query(({ input, ctx }) => ctx.app.service.Core.getStar(input, ctx)),
|
|
1131
|
-
createStar: procedure
|
|
1132
|
-
.use(hasRole('admin', t))
|
|
1133
|
-
.use(customErrorFormatter(t))
|
|
1134
|
-
.input(getQueryInput(Star))
|
|
1135
|
-
.output(Star.pick({ id: true }))
|
|
1136
|
-
.mutation(({ input, ctx }) => ctx.app.service.Core.createStar(input, ctx)),
|
|
1137
|
-
updateStar: procedure
|
|
1138
|
-
.use(hasRole('admin', t))
|
|
1139
|
-
.use(customErrorFormatter(t))
|
|
1140
|
-
.input(getQueryInput(Star))
|
|
1141
|
-
.output(Star.pick({ id: true }))
|
|
1142
|
-
.mutation(({ input, ctx }) => ctx.app.service.Core.updateStar(input, ctx)),
|
|
1143
|
-
getStash: procedure
|
|
1144
|
-
.use(hasRole('guest', t))
|
|
1145
|
-
.use(customErrorFormatter(t))
|
|
1146
|
-
.input(getQueryInput(Stash))
|
|
1147
|
-
.output(Stash)
|
|
1148
|
-
.query(({ input, ctx }) => ctx.app.service.Core.getStash(input, ctx)),
|
|
1149
|
-
createStash: procedure
|
|
1150
|
-
.use(hasRole('admin', t))
|
|
1151
|
-
.use(customErrorFormatter(t))
|
|
1152
|
-
.input(getQueryInput(Stash))
|
|
1153
|
-
.output(Stash.pick({ id: true }))
|
|
1154
|
-
.mutation(({ input, ctx }) => ctx.app.service.Core.createStash(input, ctx)),
|
|
1155
|
-
updateStash: procedure
|
|
1156
|
-
.use(hasRole('admin', t))
|
|
1157
|
-
.use(customErrorFormatter(t))
|
|
1158
|
-
.input(getQueryInput(Stash))
|
|
1159
|
-
.output(Stash.pick({ id: true }))
|
|
1160
|
-
.mutation(({ input, ctx }) => ctx.app.service.Core.updateStash(input, ctx)),
|
|
1161
|
-
getStock: procedure
|
|
1162
|
-
.use(hasRole('guest', t))
|
|
1163
|
-
.use(customErrorFormatter(t))
|
|
1164
|
-
.input(getQueryInput(Stock))
|
|
1165
|
-
.output(Stock)
|
|
1166
|
-
.query(({ input, ctx }) => ctx.app.service.Core.getStock(input, ctx)),
|
|
1167
|
-
createStock: procedure
|
|
1168
|
-
.use(hasRole('admin', t))
|
|
1169
|
-
.use(customErrorFormatter(t))
|
|
1170
|
-
.input(getQueryInput(Stock))
|
|
1171
|
-
.output(Stock.pick({ id: true }))
|
|
1172
|
-
.mutation(({ input, ctx }) => ctx.app.service.Core.createStock(input, ctx)),
|
|
1173
|
-
updateStock: procedure
|
|
1174
|
-
.use(hasRole('admin', t))
|
|
1175
|
-
.use(customErrorFormatter(t))
|
|
1176
|
-
.input(getQueryInput(Stock))
|
|
1177
|
-
.output(Stock.pick({ id: true }))
|
|
1178
|
-
.mutation(({ input, ctx }) => ctx.app.service.Core.updateStock(input, ctx)),
|
|
1179
|
-
getSuggestion: procedure
|
|
1180
|
-
.use(hasRole('guest', t))
|
|
1181
|
-
.use(customErrorFormatter(t))
|
|
1182
|
-
.input(getQueryInput(Suggestion))
|
|
1183
|
-
.output(Suggestion)
|
|
1184
|
-
.query(({ input, ctx }) => ctx.app.service.Core.getSuggestion(input, ctx)),
|
|
1185
|
-
createSuggestion: procedure
|
|
1186
|
-
.use(hasRole('admin', t))
|
|
1187
|
-
.use(customErrorFormatter(t))
|
|
1188
|
-
.input(getQueryInput(Suggestion))
|
|
1189
|
-
.output(Suggestion.pick({ id: true }))
|
|
1190
|
-
.mutation(({ input, ctx }) => ctx.app.service.Core.createSuggestion(input, ctx)),
|
|
1191
|
-
updateSuggestion: procedure
|
|
1192
|
-
.use(hasRole('admin', t))
|
|
1193
|
-
.use(customErrorFormatter(t))
|
|
1194
|
-
.input(getQueryInput(Suggestion))
|
|
1195
|
-
.output(Suggestion.pick({ id: true }))
|
|
1196
|
-
.mutation(({ input, ctx }) => ctx.app.service.Core.updateSuggestion(input, ctx)),
|
|
1197
|
-
getTag: procedure
|
|
1198
|
-
.use(hasRole('guest', t))
|
|
1199
|
-
.use(customErrorFormatter(t))
|
|
1200
|
-
.input(getQueryInput(Tag))
|
|
1201
|
-
.output(Tag)
|
|
1202
|
-
.query(({ input, ctx }) => ctx.app.service.Core.getTag(input, ctx)),
|
|
1203
|
-
createTag: procedure
|
|
1204
|
-
.use(hasRole('admin', t))
|
|
1205
|
-
.use(customErrorFormatter(t))
|
|
1206
|
-
.input(getQueryInput(Tag))
|
|
1207
|
-
.output(Tag.pick({ id: true }))
|
|
1208
|
-
.mutation(({ input, ctx }) => ctx.app.service.Core.createTag(input, ctx)),
|
|
1209
|
-
updateTag: procedure
|
|
1210
|
-
.use(hasRole('admin', t))
|
|
1211
|
-
.use(customErrorFormatter(t))
|
|
1212
|
-
.input(getQueryInput(Tag))
|
|
1213
|
-
.output(Tag.pick({ id: true }))
|
|
1214
|
-
.mutation(({ input, ctx }) => ctx.app.service.Core.updateTag(input, ctx)),
|
|
1215
|
-
getTeam: procedure
|
|
1216
|
-
.use(hasRole('guest', t))
|
|
1217
|
-
.use(customErrorFormatter(t))
|
|
1218
|
-
.input(getQueryInput(Team))
|
|
1219
|
-
.output(Team)
|
|
1220
|
-
.query(({ input, ctx }) => ctx.app.service.Core.getTeam(input, ctx)),
|
|
1221
|
-
getTeams: procedure
|
|
1222
|
-
.use(hasRole('guest', t))
|
|
1223
|
-
.use(customErrorFormatter(t))
|
|
1224
|
-
.input(getQueryInput(Team))
|
|
1225
|
-
.output(z.array(Team))
|
|
1226
|
-
.query(({ input, ctx }) => ctx.app.service.Core.getTeams(input, ctx)),
|
|
1227
|
-
createTeam: procedure
|
|
1228
|
-
.use(hasRole('admin', t))
|
|
1229
|
-
.use(customErrorFormatter(t))
|
|
1230
|
-
.input(getQueryInput(Team))
|
|
1231
|
-
.output(Team.pick({ id: true }))
|
|
1232
|
-
.mutation(({ input, ctx }) => ctx.app.service.Core.createTeam(input, ctx)),
|
|
1233
|
-
updateTeam: procedure
|
|
1234
|
-
.use(hasRole('admin', t))
|
|
1235
|
-
.use(customErrorFormatter(t))
|
|
1236
|
-
.input(getQueryInput(Team))
|
|
1237
|
-
.output(Team.pick({ id: true }))
|
|
1238
|
-
.mutation(({ input, ctx }) => ctx.app.service.Core.updateTeam(input, ctx)),
|
|
1239
|
-
getTournament: procedure
|
|
1240
|
-
.use(hasRole('guest', t))
|
|
1241
|
-
.use(customErrorFormatter(t))
|
|
1242
|
-
.input(getQueryInput(Tournament))
|
|
1243
|
-
.output(Tournament)
|
|
1244
|
-
.query(({ input, ctx }) => ctx.app.service.Core.getTournament(input, ctx)),
|
|
1245
|
-
createTournament: procedure
|
|
1246
|
-
.use(hasRole('admin', t))
|
|
1247
|
-
.use(customErrorFormatter(t))
|
|
1248
|
-
.input(getQueryInput(Tournament))
|
|
1249
|
-
.output(Tournament.pick({ id: true }))
|
|
1250
|
-
.mutation(({ input, ctx }) => ctx.app.service.Core.createTournament(input, ctx)),
|
|
1251
|
-
updateTournament: procedure
|
|
1252
|
-
.use(hasRole('admin', t))
|
|
1253
|
-
.use(customErrorFormatter(t))
|
|
1254
|
-
.input(getQueryInput(Tournament))
|
|
1255
|
-
.output(Tournament.pick({ id: true }))
|
|
1256
|
-
.mutation(({ input, ctx }) => ctx.app.service.Core.updateTournament(input, ctx)),
|
|
1257
|
-
getTrade: procedure
|
|
1258
|
-
.use(hasRole('guest', t))
|
|
1259
|
-
.use(customErrorFormatter(t))
|
|
1260
|
-
.input(getQueryInput(Trade))
|
|
1261
|
-
.output(Trade)
|
|
1262
|
-
.query(({ input, ctx }) => ctx.app.service.Core.getTrade(input, ctx)),
|
|
1263
|
-
getTrades: procedure
|
|
1264
|
-
.use(hasRole('guest', t))
|
|
1265
|
-
.use(customErrorFormatter(t))
|
|
1266
|
-
.input(getQueryInput(Trade))
|
|
1267
|
-
.output(z.array(Trade))
|
|
1268
|
-
.mutation(({ input, ctx }) => ctx.app.service.Core.getTrades(input, ctx)),
|
|
1269
|
-
createTrade: procedure
|
|
1270
|
-
.use(hasRole('admin', t))
|
|
1271
|
-
.use(customErrorFormatter(t))
|
|
1272
|
-
.input(getQueryInput(Trade))
|
|
1273
|
-
.output(Trade.pick({ id: true }))
|
|
1274
|
-
.mutation(({ input, ctx }) => ctx.app.service.Core.createTrade(input, ctx)),
|
|
1275
|
-
updateTrade: procedure
|
|
1276
|
-
.use(hasRole('admin', t))
|
|
1277
|
-
.use(customErrorFormatter(t))
|
|
1278
|
-
.input(getQueryInput(Trade))
|
|
1279
|
-
.output(Trade.pick({ id: true }))
|
|
1280
|
-
.mutation(({ input, ctx }) => ctx.app.service.Core.updateTrade(input, ctx)),
|
|
1281
|
-
getUniverse: procedure
|
|
1282
|
-
.use(hasRole('guest', t))
|
|
1283
|
-
.use(customErrorFormatter(t))
|
|
1284
|
-
.input(getQueryInput(Universe))
|
|
1285
|
-
.output(Universe)
|
|
1286
|
-
.query(({ input, ctx }) => ctx.app.service.Core.getUniverse(input, ctx)),
|
|
1287
|
-
createUniverse: procedure
|
|
1288
|
-
.use(hasRole('admin', t))
|
|
1289
|
-
.use(customErrorFormatter(t))
|
|
1290
|
-
.input(getQueryInput(Universe))
|
|
1291
|
-
.output(Universe.pick({ id: true }))
|
|
1292
|
-
.mutation(({ input, ctx }) => ctx.app.service.Core.createUniverse(input, ctx)),
|
|
1293
|
-
updateUniverse: procedure
|
|
1294
|
-
.use(hasRole('admin', t))
|
|
1295
|
-
.use(customErrorFormatter(t))
|
|
1296
|
-
.input(getQueryInput(Universe))
|
|
1297
|
-
.output(Universe.pick({ id: true }))
|
|
1298
|
-
.mutation(({ input, ctx }) => ctx.app.service.Core.updateUniverse(input, ctx)),
|
|
1299
|
-
getValidator: procedure
|
|
1300
|
-
.use(hasRole('guest', t))
|
|
1301
|
-
.use(customErrorFormatter(t))
|
|
1302
|
-
.input(getQueryInput(Validator))
|
|
1303
|
-
.output(Validator)
|
|
1304
|
-
.query(({ input, ctx }) => ctx.app.service.Core.getValidator(input, ctx)),
|
|
1305
|
-
createValidator: procedure
|
|
1306
|
-
.use(hasRole('admin', t))
|
|
1307
|
-
.use(customErrorFormatter(t))
|
|
1308
|
-
.input(getQueryInput(Validator))
|
|
1309
|
-
.output(Validator.pick({ id: true }))
|
|
1310
|
-
.mutation(({ input, ctx }) => ctx.app.service.Core.createValidator(input, ctx)),
|
|
1311
|
-
updateValidator: procedure
|
|
1312
|
-
.use(hasRole('admin', t))
|
|
1313
|
-
.use(customErrorFormatter(t))
|
|
1314
|
-
.input(getQueryInput(Validator))
|
|
1315
|
-
.mutation(({ input, ctx }) => ctx.app.service.Core.updateValidator(input, ctx)),
|
|
1316
|
-
getVote: procedure
|
|
1317
|
-
.use(hasRole('guest', t))
|
|
1318
|
-
.use(customErrorFormatter(t))
|
|
1319
|
-
.input(getQueryInput(Vote))
|
|
1320
|
-
.query(({ input, ctx }) => ctx.app.service.Core.getVote(input, ctx)),
|
|
1321
|
-
createVote: procedure
|
|
1322
|
-
.use(hasRole('admin', t))
|
|
1323
|
-
.use(customErrorFormatter(t))
|
|
1324
|
-
.input(getQueryInput(Vote))
|
|
1325
|
-
.mutation(({ input, ctx }) => ctx.app.service.Core.createVote(input, ctx)),
|
|
1326
|
-
updateVote: procedure
|
|
1327
|
-
.use(hasRole('admin', t))
|
|
1328
|
-
.use(customErrorFormatter(t))
|
|
1329
|
-
.input(getQueryInput(Vote))
|
|
1330
|
-
.mutation(({ input, ctx }) => ctx.app.service.Core.updateVote(input, ctx)),
|
|
1331
|
-
getWorldEvent: procedure
|
|
1332
|
-
.use(hasRole('guest', t))
|
|
1333
|
-
.use(customErrorFormatter(t))
|
|
1334
|
-
.input(getQueryInput(WorldEvent))
|
|
1335
|
-
.query(({ input, ctx }) => ctx.app.service.Core.getWorldEvent(input, ctx)),
|
|
1336
|
-
createWorldEvent: procedure
|
|
1337
|
-
.use(hasRole('admin', t))
|
|
1338
|
-
.use(customErrorFormatter(t))
|
|
1339
|
-
.input(getQueryInput(WorldEvent))
|
|
1340
|
-
.mutation(({ input, ctx }) => ctx.app.service.Core.createWorldEvent(input, ctx)),
|
|
1341
|
-
updateWorldEvent: procedure
|
|
1342
|
-
.use(hasRole('admin', t))
|
|
1343
|
-
.use(customErrorFormatter(t))
|
|
1344
|
-
.input(getQueryInput(WorldEvent))
|
|
1345
|
-
.mutation(({ input, ctx }) => ctx.app.service.Core.updateWorldEvent(input, ctx)),
|
|
1346
|
-
getWorldRecord: procedure
|
|
1347
|
-
.use(hasRole('guest', t))
|
|
1348
|
-
.use(customErrorFormatter(t))
|
|
1349
|
-
.input(getQueryInput(WorldRecord))
|
|
1350
|
-
.query(({ input, ctx }) => ctx.app.service.Core.getWorldRecord(input, ctx)),
|
|
1351
|
-
createWorldRecord: procedure
|
|
1352
|
-
.use(hasRole('admin', t))
|
|
1353
|
-
.use(customErrorFormatter(t))
|
|
1354
|
-
.input(getQueryInput(WorldRecord))
|
|
1355
|
-
.mutation(({ input, ctx }) => ctx.app.service.Core.createWorldRecord(input, ctx)),
|
|
1356
|
-
updateWorldRecord: procedure
|
|
1357
|
-
.use(hasRole('admin', t))
|
|
1358
|
-
.use(customErrorFormatter(t))
|
|
1359
|
-
.input(getQueryInput(WorldRecord))
|
|
1360
|
-
.mutation(({ input, ctx }) => ctx.app.service.Core.updateWorldRecord(input, ctx)),
|
|
1361
|
-
info: procedure
|
|
1362
|
-
.use(hasRole('guest', t))
|
|
1363
|
-
.use(customErrorFormatter(t))
|
|
1364
|
-
.input(z.any())
|
|
1365
|
-
.query(({ input, ctx }) => ctx.app.service.Core.info(input, ctx)),
|
|
1366
|
-
stats: procedure
|
|
1367
|
-
.use(hasRole('guest', t))
|
|
1368
|
-
.use(customErrorFormatter(t))
|
|
1369
|
-
.input(getQueryInput(Stat))
|
|
1370
|
-
.query(({ input, ctx }) => ctx.app.service.Core.stats(input, ctx)),
|
|
1371
|
-
});
|
|
1372
|
-
//# sourceMappingURL=core.router.js.map
|