@arken/seer-protocol 0.1.4 → 0.1.6
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 +10 -3
- package/build/area/area.models.d.ts +6 -0
- package/build/area/area.models.js +11 -0
- package/build/area/area.models.js.map +1 -0
- package/build/area/area.router.d.ts +274 -0
- package/build/area/area.router.js +59 -0
- package/build/area/area.router.js.map +1 -0
- package/build/area/area.schema.d.ts +241 -0
- package/build/area/area.schema.js +13 -0
- package/build/area/area.schema.js.map +1 -0
- package/build/area/area.types.d.ts +19 -0
- package/build/area/area.types.js +2 -0
- package/build/area/area.types.js.map +1 -0
- package/build/area/index.d.ts +4 -0
- package/build/area/index.js +5 -0
- package/build/area/index.js.map +1 -0
- package/build/asset/asset.models.d.ts +5 -0
- package/build/asset/asset.models.js +44 -0
- package/build/asset/asset.models.js.map +1 -0
- package/build/asset/asset.router.d.ts +189 -0
- package/build/asset/asset.router.js +41 -0
- package/build/asset/asset.router.js.map +1 -0
- package/build/asset/asset.schema.d.ts +204 -0
- package/build/asset/asset.schema.js +22 -0
- package/build/asset/asset.schema.js.map +1 -0
- package/build/asset/asset.types.d.ts +16 -0
- package/build/asset/asset.types.js +2 -0
- package/build/asset/asset.types.js.map +1 -0
- package/build/asset/index.d.ts +4 -0
- package/build/asset/index.js +5 -0
- package/build/asset/index.js.map +1 -0
- package/build/chain/chain.models.d.ts +6 -0
- package/build/chain/chain.models.js +42 -0
- package/build/chain/chain.models.js.map +1 -0
- package/build/chain/chain.router.d.ts +364 -0
- package/build/chain/chain.router.js +84 -0
- package/build/chain/chain.router.js.map +1 -0
- package/build/chain/chain.schema.d.ts +317 -0
- package/build/chain/chain.schema.js +56 -0
- package/build/chain/chain.schema.js.map +1 -0
- package/build/chain/chain.types.d.ts +19 -0
- package/build/chain/chain.types.js +2 -0
- package/build/chain/chain.types.js.map +1 -0
- package/build/chain/index.d.ts +4 -0
- package/build/chain/index.js +5 -0
- package/build/chain/index.js.map +1 -0
- package/build/character/character.models.d.ts +14 -0
- package/build/character/character.models.js +123 -0
- package/build/character/character.models.js.map +1 -0
- package/build/character/character.router.d.ts +945 -0
- package/build/character/character.router.js +246 -0
- package/build/character/character.router.js.map +1 -0
- package/build/character/character.schema.d.ts +1223 -0
- package/build/character/character.schema.js +70 -0
- package/build/character/character.schema.js.map +1 -0
- package/build/character/character.types.d.ts +47 -0
- package/build/character/character.types.js +2 -0
- package/build/character/character.types.js.map +1 -0
- package/build/character/index.d.ts +4 -0
- package/build/character/index.js +5 -0
- package/build/character/index.js.map +1 -0
- package/build/chat/chat.models.d.ts +4 -0
- package/build/chat/chat.models.js +35 -0
- package/build/chat/chat.models.js.map +1 -0
- package/build/chat/chat.router.d.ts +223 -0
- package/build/chat/chat.router.js +51 -0
- package/build/chat/chat.router.js.map +1 -0
- package/build/chat/chat.schema.d.ts +179 -0
- package/build/chat/chat.schema.js +32 -0
- package/build/chat/chat.schema.js.map +1 -0
- package/build/chat/chat.types.d.ts +13 -0
- package/build/chat/chat.types.js +2 -0
- package/build/chat/chat.types.js.map +1 -0
- package/build/chat/index.d.ts +4 -0
- package/build/chat/index.js +5 -0
- package/build/chat/index.js.map +1 -0
- package/build/collection/collection.models.d.ts +9 -0
- package/build/collection/collection.models.js +69 -0
- package/build/collection/collection.models.js.map +1 -0
- package/build/collection/collection.router.d.ts +361 -0
- package/build/collection/collection.router.js +71 -0
- package/build/collection/collection.router.js.map +1 -0
- package/build/collection/collection.schema.d.ts +660 -0
- package/build/collection/collection.schema.js +70 -0
- package/build/collection/collection.schema.js.map +1 -0
- package/build/collection/collection.types.d.ts +28 -0
- package/build/collection/collection.types.js +2 -0
- package/build/collection/collection.types.js.map +1 -0
- package/build/collection/index.d.ts +4 -0
- package/build/collection/index.js +5 -0
- package/build/collection/index.js.map +1 -0
- package/build/core/core.models.d.ts +123 -0
- package/build/core/core.models.js +811 -0
- package/build/core/core.models.js.map +1 -0
- package/build/core/core.router.d.ts +5297 -0
- package/build/core/core.router.js +1372 -0
- package/build/core/core.router.js.map +1 -0
- package/build/core/core.schema.d.ts +5808 -0
- package/build/core/core.schema.js +612 -0
- package/build/core/core.schema.js.map +1 -0
- package/build/core/core.types.d.ts +250 -0
- package/build/core/core.types.js +2 -0
- package/build/core/core.types.js.map +1 -0
- package/build/core/index.d.ts +4 -0
- package/build/core/index.js +5 -0
- package/build/core/index.js.map +1 -0
- package/build/evolution/evolution.models.d.ts +1 -0
- package/build/evolution/evolution.models.js +3 -0
- package/build/evolution/evolution.models.js.map +1 -0
- package/build/evolution/evolution.router.d.ts +244 -0
- package/build/evolution/evolution.router.js +112 -0
- package/build/evolution/evolution.router.js.map +1 -0
- package/build/evolution/evolution.schema.d.ts +1 -0
- package/build/evolution/evolution.schema.js +2 -0
- package/build/evolution/evolution.schema.js.map +1 -0
- package/build/evolution/evolution.types.d.ts +3 -0
- package/build/evolution/evolution.types.js +2 -0
- package/build/evolution/evolution.types.js.map +1 -0
- package/build/evolution/index.d.ts +4 -0
- package/build/evolution/index.js +4 -0
- package/build/evolution/index.js.map +1 -0
- package/build/game/game.models.d.ts +6 -0
- package/build/game/game.models.js +29 -0
- package/build/game/game.models.js.map +1 -0
- package/build/game/game.router.d.ts +428 -0
- package/build/game/game.router.js +90 -0
- package/build/game/game.router.js.map +1 -0
- package/build/game/game.schema.d.ts +339 -0
- package/build/game/game.schema.js +14 -0
- package/build/game/game.schema.js.map +1 -0
- package/build/game/game.types.d.ts +19 -0
- package/build/game/game.types.js +2 -0
- package/build/game/game.types.js.map +1 -0
- package/build/game/index.d.ts +4 -0
- package/build/game/index.js +4 -0
- package/build/game/index.js.map +1 -0
- package/build/index.d.ts +30 -0
- package/build/index.js +26 -0
- package/build/index.js.map +1 -0
- package/build/infinite/index.d.ts +4 -0
- package/build/infinite/index.js +4 -0
- package/build/infinite/index.js.map +1 -0
- package/build/infinite/infinite.models.d.ts +1 -0
- package/build/infinite/infinite.models.js +3 -0
- package/build/infinite/infinite.models.js.map +1 -0
- package/build/infinite/infinite.router.d.ts +95 -0
- package/build/infinite/infinite.router.js +40 -0
- package/build/infinite/infinite.router.js.map +1 -0
- package/build/infinite/infinite.schema.d.ts +1 -0
- package/build/infinite/infinite.schema.js +2 -0
- package/build/infinite/infinite.schema.js.map +1 -0
- package/build/infinite/infinite.types.d.ts +3 -0
- package/build/infinite/infinite.types.js +2 -0
- package/build/infinite/infinite.types.js.map +1 -0
- package/build/interface/index.d.ts +4 -0
- package/build/interface/index.js +5 -0
- package/build/interface/index.js.map +1 -0
- package/build/interface/interface.canonicalize.d.ts +2 -0
- package/build/interface/interface.canonicalize.js +241 -0
- package/build/interface/interface.canonicalize.js.map +1 -0
- package/build/interface/interface.models.d.ts +6 -0
- package/build/interface/interface.models.js +30 -0
- package/build/interface/interface.models.js.map +1 -0
- package/build/interface/interface.router.d.ts +472 -0
- package/build/interface/interface.router.js +113 -0
- package/build/interface/interface.router.js.map +1 -0
- package/build/interface/interface.schema.d.ts +305 -0
- package/build/interface/interface.schema.js +36 -0
- package/build/interface/interface.schema.js.map +1 -0
- package/build/interface/interface.types.d.ts +18 -0
- package/build/interface/interface.types.js +2 -0
- package/build/interface/interface.types.js.map +1 -0
- package/build/isles/index.d.ts +4 -0
- package/build/isles/index.js +4 -0
- package/build/isles/index.js.map +1 -0
- package/build/isles/isles.models.d.ts +1 -0
- package/build/isles/isles.models.js +3 -0
- package/build/isles/isles.models.js.map +1 -0
- package/build/isles/isles.router.d.ts +95 -0
- package/build/isles/isles.router.js +40 -0
- package/build/isles/isles.router.js.map +1 -0
- package/build/isles/isles.schema.d.ts +1 -0
- package/build/isles/isles.schema.js +2 -0
- package/build/isles/isles.schema.js.map +1 -0
- package/build/isles/isles.types.d.ts +3 -0
- package/build/isles/isles.types.js +2 -0
- package/build/isles/isles.types.js.map +1 -0
- package/build/item/index.d.ts +4 -0
- package/build/item/index.js +5 -0
- package/build/item/index.js.map +1 -0
- package/build/item/item.models.d.ts +16 -0
- package/build/item/item.models.js +101 -0
- package/build/item/item.models.js.map +1 -0
- package/build/item/item.router.d.ts +263 -0
- package/build/item/item.router.js +70 -0
- package/build/item/item.router.js.map +1 -0
- package/build/item/item.schema.d.ts +765 -0
- package/build/item/item.schema.js +86 -0
- package/build/item/item.schema.js.map +1 -0
- package/build/item/item.types.d.ts +54 -0
- package/build/item/item.types.js +2 -0
- package/build/item/item.types.js.map +1 -0
- package/build/job/index.d.ts +4 -0
- package/build/job/index.js +5 -0
- package/build/job/index.js.map +1 -0
- package/build/job/job.models.d.ts +3 -0
- package/build/job/job.models.js +9 -0
- package/build/job/job.models.js.map +1 -0
- package/build/job/job.router.d.ts +146 -0
- package/build/job/job.router.js +32 -0
- package/build/job/job.router.js.map +1 -0
- package/build/job/job.schema.d.ts +66 -0
- package/build/job/job.schema.js +7 -0
- package/build/job/job.schema.js.map +1 -0
- package/build/job/job.types.d.ts +15 -0
- package/build/job/job.types.js +2 -0
- package/build/job/job.types.js.map +1 -0
- package/build/market/index.d.ts +4 -0
- package/build/market/index.js +5 -0
- package/build/market/index.js.map +1 -0
- package/build/market/market.models.d.ts +14 -0
- package/build/market/market.models.js +98 -0
- package/build/market/market.models.js.map +1 -0
- package/build/market/market.router.d.ts +230 -0
- package/build/market/market.router.js +56 -0
- package/build/market/market.router.js.map +1 -0
- package/build/market/market.schema.d.ts +937 -0
- package/build/market/market.schema.js +110 -0
- package/build/market/market.schema.js.map +1 -0
- package/build/market/market.types.d.ts +48 -0
- package/build/market/market.types.js +2 -0
- package/build/market/market.types.js.map +1 -0
- package/build/oasis/index.d.ts +4 -0
- package/build/oasis/index.js +4 -0
- package/build/oasis/index.js.map +1 -0
- package/build/oasis/oasis.models.d.ts +1 -0
- package/build/oasis/oasis.models.js +3 -0
- package/build/oasis/oasis.models.js.map +1 -0
- package/build/oasis/oasis.router.d.ts +91 -0
- package/build/oasis/oasis.router.js +52 -0
- package/build/oasis/oasis.router.js.map +1 -0
- package/build/oasis/oasis.schema.d.ts +1 -0
- package/build/oasis/oasis.schema.js +2 -0
- package/build/oasis/oasis.schema.js.map +1 -0
- package/build/oasis/oasis.types.d.ts +3 -0
- package/build/oasis/oasis.types.js +2 -0
- package/build/oasis/oasis.types.js.map +1 -0
- package/build/package.json +36 -0
- package/build/product/index.d.ts +4 -0
- package/build/product/index.js +5 -0
- package/build/product/index.js.map +1 -0
- package/build/product/product.models.d.ts +4 -0
- package/build/product/product.models.js +113 -0
- package/build/product/product.models.js.map +1 -0
- package/build/product/product.router.d.ts +447 -0
- package/build/product/product.router.js +71 -0
- package/build/product/product.router.js.map +1 -0
- package/build/product/product.schema.d.ts +640 -0
- package/build/product/product.schema.js +154 -0
- package/build/product/product.schema.js.map +1 -0
- package/build/product/product.types.d.ts +27 -0
- package/build/product/product.types.js +2 -0
- package/build/product/product.types.js.map +1 -0
- package/build/profile/index.d.ts +4 -0
- package/build/profile/index.js +5 -0
- package/build/profile/index.js.map +1 -0
- package/build/profile/profile.models.d.ts +2 -0
- package/build/profile/profile.models.js +165 -0
- package/build/profile/profile.models.js.map +1 -0
- package/build/profile/profile.router.d.ts +163 -0
- package/build/profile/profile.router.js +54 -0
- package/build/profile/profile.router.js.map +1 -0
- package/build/profile/profile.schema.d.ts +1 -0
- package/build/profile/profile.schema.js +201 -0
- package/build/profile/profile.schema.js.map +1 -0
- package/build/profile/profile.types.d.ts +15 -0
- package/build/profile/profile.types.js +2 -0
- package/build/profile/profile.types.js.map +1 -0
- package/build/raffle/index.d.ts +4 -0
- package/build/raffle/index.js +5 -0
- package/build/raffle/index.js.map +1 -0
- package/build/raffle/raffle.models.d.ts +6 -0
- package/build/raffle/raffle.models.js +36 -0
- package/build/raffle/raffle.models.js.map +1 -0
- package/build/raffle/raffle.router.d.ts +299 -0
- package/build/raffle/raffle.router.js +71 -0
- package/build/raffle/raffle.router.js.map +1 -0
- package/build/raffle/raffle.schema.d.ts +261 -0
- package/build/raffle/raffle.schema.js +21 -0
- package/build/raffle/raffle.schema.js.map +1 -0
- package/build/raffle/raffle.types.d.ts +24 -0
- package/build/raffle/raffle.types.js +2 -0
- package/build/raffle/raffle.types.js.map +1 -0
- package/build/router.d.ts +10755 -0
- package/build/router.js +87 -0
- package/build/router.js.map +1 -0
- package/build/schema.d.ts +279 -0
- package/build/schema.js +157 -0
- package/build/schema.js.map +1 -0
- package/build/skill/index.d.ts +4 -0
- package/build/skill/index.js +5 -0
- package/build/skill/index.js.map +1 -0
- package/build/skill/skill.models.d.ts +9 -0
- package/build/skill/skill.models.js +9 -0
- package/build/skill/skill.models.js.map +1 -0
- package/build/skill/skill.router.d.ts +659 -0
- package/build/skill/skill.router.js +152 -0
- package/build/skill/skill.router.js.map +1 -0
- package/build/skill/skill.schema.d.ts +536 -0
- package/build/skill/skill.schema.js +38 -0
- package/build/skill/skill.schema.js.map +1 -0
- package/build/skill/skill.types.d.ts +28 -0
- package/build/skill/skill.types.js +2 -0
- package/build/skill/skill.types.js.map +1 -0
- package/build/trek/index.d.ts +4 -0
- package/build/trek/index.js +4 -0
- package/build/trek/index.js.map +1 -0
- package/build/trek/trek.models.d.ts +1 -0
- package/build/trek/trek.models.js +2 -0
- package/build/trek/trek.models.js.map +1 -0
- package/build/trek/trek.router.d.ts +86 -0
- package/build/trek/trek.router.js +43 -0
- package/build/trek/trek.router.js.map +1 -0
- package/build/trek/trek.schema.d.ts +1 -0
- package/build/trek/trek.schema.js +2 -0
- package/build/trek/trek.schema.js.map +1 -0
- package/build/trek/trek.types.d.ts +1 -0
- package/build/trek/trek.types.js +2 -0
- package/build/trek/trek.types.js.map +1 -0
- package/build/types.d.ts +187 -0
- package/build/types.js +29 -0
- package/build/types.js.map +1 -0
- package/build/video/index.d.ts +4 -0
- package/build/video/index.js +5 -0
- package/build/video/index.js.map +1 -0
- package/build/video/video.models.d.ts +7 -0
- package/build/video/video.models.js +19 -0
- package/build/video/video.models.js.map +1 -0
- package/build/video/video.router.d.ts +563 -0
- package/build/video/video.router.js +112 -0
- package/build/video/video.router.js.map +1 -0
- package/build/video/video.schema.d.ts +446 -0
- package/build/video/video.schema.js +31 -0
- package/build/video/video.schema.js.map +1 -0
- package/build/video/video.types.d.ts +27 -0
- package/build/video/video.types.js +2 -0
- package/build/video/video.types.js.map +1 -0
- package/package.json +11 -4
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import { z, ObjectId, Entity } from '../schema';
|
|
2
|
+
export const ItemAttribute = Entity.merge(z.object({}));
|
|
3
|
+
export const ItemMaterial = Entity.merge(z.object({}));
|
|
4
|
+
export const ItemSet = Entity.merge(z.object({}));
|
|
5
|
+
export const ItemSlot = Entity.merge(z.object({}));
|
|
6
|
+
export const ItemRarity = Entity.merge(z.object({}));
|
|
7
|
+
export const ItemRank = Entity.merge(z.object({
|
|
8
|
+
value: z.number(),
|
|
9
|
+
}));
|
|
10
|
+
export const ItemType = Entity.merge(z.object({}));
|
|
11
|
+
export const ItemSubType = Entity.merge(z.object({}));
|
|
12
|
+
export const ItemSpecificType = Entity.merge(z.object({}));
|
|
13
|
+
export const ItemAffix = Entity.merge(z.object({
|
|
14
|
+
isPrefix: z.boolean().default(false),
|
|
15
|
+
isSuffix: z.boolean().default(false),
|
|
16
|
+
isTitle: z.boolean().default(false),
|
|
17
|
+
weight: z
|
|
18
|
+
.number()
|
|
19
|
+
.min(0)
|
|
20
|
+
.default(1),
|
|
21
|
+
typeIds: z.array(ObjectId).optional(),
|
|
22
|
+
rarityIds: z.array(ObjectId).optional(),
|
|
23
|
+
}));
|
|
24
|
+
export const ItemRecipe = Entity.merge(z.object({}));
|
|
25
|
+
export const ItemSkin = Entity.merge(z.object({}));
|
|
26
|
+
export const ItemTransmute = Entity.merge(z.object({
|
|
27
|
+
token: z
|
|
28
|
+
.string()
|
|
29
|
+
.max(500)
|
|
30
|
+
.min(1),
|
|
31
|
+
assetId: ObjectId,
|
|
32
|
+
itemId: ObjectId,
|
|
33
|
+
chainId: ObjectId.optional(),
|
|
34
|
+
}));
|
|
35
|
+
export const Item = Entity.merge(z.object({
|
|
36
|
+
characterId: ObjectId.optional(),
|
|
37
|
+
assetId: ObjectId.optional(),
|
|
38
|
+
chainId: ObjectId.optional(),
|
|
39
|
+
materialId: ItemMaterial.optional(),
|
|
40
|
+
skinId: ItemSkin.optional(),
|
|
41
|
+
recipeId: ItemRecipe.optional(),
|
|
42
|
+
typeId: ItemType.optional(),
|
|
43
|
+
subTypeId: ItemSubType.optional(),
|
|
44
|
+
specificTypeId: ItemSpecificType.optional(),
|
|
45
|
+
rankId: ItemRank.optional(),
|
|
46
|
+
rankValue: z.number(),
|
|
47
|
+
rarityId: ItemRarity.optional(),
|
|
48
|
+
slotIds: z.array(ItemSlot.optional()),
|
|
49
|
+
setId: ItemSet.optional(),
|
|
50
|
+
attributes: z.array(ItemAttribute).optional(),
|
|
51
|
+
token: z
|
|
52
|
+
.string()
|
|
53
|
+
.max(500)
|
|
54
|
+
.min(1)
|
|
55
|
+
.optional(),
|
|
56
|
+
quantity: z
|
|
57
|
+
.number()
|
|
58
|
+
.int()
|
|
59
|
+
.nonnegative()
|
|
60
|
+
.default(1),
|
|
61
|
+
x: z
|
|
62
|
+
.number()
|
|
63
|
+
.int()
|
|
64
|
+
.nonnegative()
|
|
65
|
+
.optional(),
|
|
66
|
+
y: z
|
|
67
|
+
.number()
|
|
68
|
+
.int()
|
|
69
|
+
.nonnegative()
|
|
70
|
+
.optional(),
|
|
71
|
+
distribution: z
|
|
72
|
+
.enum(['Unknown', 'Found', 'Fundraiser', 'Claimed', 'Crafted', 'Airdrop', 'Reward', 'Farmed', 'Migration'])
|
|
73
|
+
.default('Unknown'),
|
|
74
|
+
items: z.array(z.lazy(() => Item)).default([]),
|
|
75
|
+
capacity: z
|
|
76
|
+
.number()
|
|
77
|
+
.int()
|
|
78
|
+
.nonnegative()
|
|
79
|
+
.default(60),
|
|
80
|
+
points: z
|
|
81
|
+
.number()
|
|
82
|
+
.int()
|
|
83
|
+
.nonnegative()
|
|
84
|
+
.default(0),
|
|
85
|
+
}));
|
|
86
|
+
//# sourceMappingURL=item.schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"item.schema.js","sourceRoot":"","sources":["../../item/item.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AAEhD,MAAM,CAAC,MAAM,aAAa,GAAG,MAAM,CAAC,KAAK,CACvC,CAAC,CAAC,MAAM,CAAC,EAER,CAAC,CACH,CAAC;AAEF,MAAM,CAAC,MAAM,YAAY,GAAG,MAAM,CAAC,KAAK,CACtC,CAAC,CAAC,MAAM,CAAC,EAER,CAAC,CACH,CAAC;AAEF,MAAM,CAAC,MAAM,OAAO,GAAG,MAAM,CAAC,KAAK,CACjC,CAAC,CAAC,MAAM,CAAC,EAER,CAAC,CACH,CAAC;AAEF,MAAM,CAAC,MAAM,QAAQ,GAAG,MAAM,CAAC,KAAK,CAClC,CAAC,CAAC,MAAM,CAAC,EAER,CAAC,CACH,CAAC;AAEF,MAAM,CAAC,MAAM,UAAU,GAAG,MAAM,CAAC,KAAK,CACpC,CAAC,CAAC,MAAM,CAAC,EAER,CAAC,CACH,CAAC;AAEF,MAAM,CAAC,MAAM,QAAQ,GAAG,MAAM,CAAC,KAAK,CAClC,CAAC,CAAC,MAAM,CAAC;IACP,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;CAElB,CAAC,CACH,CAAC;AAEF,MAAM,CAAC,MAAM,QAAQ,GAAG,MAAM,CAAC,KAAK,CAClC,CAAC,CAAC,MAAM,CAAC,EAER,CAAC,CACH,CAAC;AAEF,MAAM,CAAC,MAAM,WAAW,GAAG,MAAM,CAAC,KAAK,CACrC,CAAC,CAAC,MAAM,CAAC,EAER,CAAC,CACH,CAAC;AAEF,MAAM,CAAC,MAAM,gBAAgB,GAAG,MAAM,CAAC,KAAK,CAC1C,CAAC,CAAC,MAAM,CAAC,EAER,CAAC,CACH,CAAC;AAEF,MAAM,CAAC,MAAM,S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AS,CAAC;IAGrB,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC;IAC9C,QAAQ,EAAE,CAAC;SACR,MAAM,EAAE;SACR,GAAG,EAAE;SACL,WAAW,EAAE;SACb,OAAO,CAAC,EAAE,CAAC;IACd,MAAM,EAAE,CAAC;SACN,MAAM,EAAE;SACR,GAAG,EAAE;SACL,WAAW,EAAE;SACb,OAAO,CAAC,CAAC,CAAC;CACd,CAAC,CACH,CAAC"}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import * as schema from './item.schema';
|
|
3
|
+
import { Document, Model } from '@arken/node/mongo';
|
|
4
|
+
import type { RouterContext } from '../types';
|
|
5
|
+
import type { inferRouterInputs, inferRouterOutputs } from '@trpc/server';
|
|
6
|
+
import type { Router } from './item.router';
|
|
7
|
+
export type * from './item.router';
|
|
8
|
+
export type { RouterContext };
|
|
9
|
+
export type Item = z.infer<typeof schema.Item>;
|
|
10
|
+
export type ItemDocument = Item & Document;
|
|
11
|
+
export type ItemAttribute = z.infer<typeof schema.ItemAttribute>;
|
|
12
|
+
export type ItemAttributeDocument = ItemAttribute & Document;
|
|
13
|
+
export type ItemMaterial = z.infer<typeof schema.ItemMaterial>;
|
|
14
|
+
export type ItemMaterialDocument = ItemMaterial & Document;
|
|
15
|
+
export type ItemSet = z.infer<typeof schema.ItemSet>;
|
|
16
|
+
export type ItemSetDocument = ItemSet & Document;
|
|
17
|
+
export type ItemSlot = z.infer<typeof schema.ItemSlot>;
|
|
18
|
+
export type ItemSlotDocument = ItemSlot & Document;
|
|
19
|
+
export type ItemRarity = z.infer<typeof schema.ItemRarity>;
|
|
20
|
+
export type ItemRarityDocument = ItemRarity & Document;
|
|
21
|
+
export type ItemRank = z.infer<typeof schema.ItemRank>;
|
|
22
|
+
export type ItemRankDocument = ItemRank & Document;
|
|
23
|
+
export type ItemType = z.infer<typeof schema.ItemType>;
|
|
24
|
+
export type ItemTypeDocument = ItemType & Document;
|
|
25
|
+
export type ItemSubType = z.infer<typeof schema.ItemSubType>;
|
|
26
|
+
export type ItemSubTypeDocument = ItemSubType & Document;
|
|
27
|
+
export type ItemSpecificType = z.infer<typeof schema.ItemSpecificType>;
|
|
28
|
+
export type ItemSpecificTypeDocument = ItemSpecificType & Document;
|
|
29
|
+
export type ItemAffix = z.infer<typeof schema.ItemAffix>;
|
|
30
|
+
export type ItemAffixDocument = ItemAffix & Document;
|
|
31
|
+
export type ItemRecipe = z.infer<typeof schema.ItemRecipe>;
|
|
32
|
+
export type ItemRecipeDocument = ItemRecipe & Document;
|
|
33
|
+
export type ItemSkin = z.infer<typeof schema.ItemSkin>;
|
|
34
|
+
export type ItemSkinDocument = ItemSkin & Document;
|
|
35
|
+
export type ItemTransmute = z.infer<typeof schema.ItemTransmute>;
|
|
36
|
+
export type ItemTransmuteDocument = ItemTransmute & Document;
|
|
37
|
+
export type Mappings = {
|
|
38
|
+
Item: Model<ItemDocument>;
|
|
39
|
+
ItemAttribute: Model<ItemAttributeDocument>;
|
|
40
|
+
ItemMaterial: Model<ItemMaterialDocument>;
|
|
41
|
+
ItemSet: Model<ItemSetDocument>;
|
|
42
|
+
ItemSlot: Model<ItemSlotDocument>;
|
|
43
|
+
ItemRarity: Model<ItemRarityDocument>;
|
|
44
|
+
ItemRank: Model<ItemRankDocument>;
|
|
45
|
+
ItemType: Model<ItemTypeDocument>;
|
|
46
|
+
ItemSubType: Model<ItemSubTypeDocument>;
|
|
47
|
+
ItemSpecificType: Model<ItemSpecificTypeDocument>;
|
|
48
|
+
ItemAffix: Model<ItemAffixDocument>;
|
|
49
|
+
ItemRecipe: Model<ItemRecipeDocument>;
|
|
50
|
+
ItemSkin: Model<ItemSkinDocument>;
|
|
51
|
+
ItemTransmute: Model<ItemTransmuteDocument>;
|
|
52
|
+
};
|
|
53
|
+
export type RouterInput = inferRouterInputs<Router>;
|
|
54
|
+
export type RouterOutput = inferRouterOutputs<Router>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"item.types.js","sourceRoot":"","sources":["../../item/item.types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../job/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,aAAa,CAAC;AACrC,OAAO,KAAK,MAAM,MAAM,cAAc,CAAC;AACvC,OAAO,KAAK,OAAO,MAAM,cAAc,CAAC;AACxC,cAAc,cAAc,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as mongo from '@arken/node/mongo';
|
|
2
|
+
export const Job = mongo.createModel('Job', {
|
|
3
|
+
mod: { type: String, required: true },
|
|
4
|
+
startDate: { type: Date },
|
|
5
|
+
expireDate: { type: Date },
|
|
6
|
+
}, {
|
|
7
|
+
indexes: [{ applicationId: 1, mod: 1, key: 1 }],
|
|
8
|
+
});
|
|
9
|
+
//# sourceMappingURL=job.models.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"job.models.js","sourceRoot":"","sources":["../../job/job.models.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,mBAAmB,CAAC;AAG3C,MAAM,CAAC,MAAM,GAAG,GAAG,KAAK,CAAC,WAAW,CAClC,KAAK,EACL;IACE,GAAG,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE;IACrC,SAAS,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE;IACzB,UAAU,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE;CAC3B,EACD;IACE,OAAO,EAAE,CAAC,EAAE,aAAa,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,CAAC;CAChD,CACF,CAAC"}
|
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
import { z as zod } from 'zod';
|
|
2
|
+
import { inferRouterInputs, inferRouterOutputs } from '@trpc/server';
|
|
3
|
+
import type { RouterContext } from '../types';
|
|
4
|
+
export declare const z: typeof zod;
|
|
5
|
+
export declare const t: {
|
|
6
|
+
_config: import("@trpc/server/dist/unstable-core-do-not-import").RootConfig<{
|
|
7
|
+
ctx: RouterContext;
|
|
8
|
+
meta: object;
|
|
9
|
+
errorShape: import("@trpc/server/dist/unstable-core-do-not-import").DefaultErrorShape;
|
|
10
|
+
transformer: false;
|
|
11
|
+
}>;
|
|
12
|
+
procedure: import("@trpc/server/dist/unstable-core-do-not-import").ProcedureBuilder<RouterContext, object, object, typeof import("@trpc/server/dist/unstable-core-do-not-import").unsetMarker, typeof import("@trpc/server/dist/unstable-core-do-not-import").unsetMarker, typeof import("@trpc/server/dist/unstable-core-do-not-import").unsetMarker, typeof import("@trpc/server/dist/unstable-core-do-not-import").unsetMarker, false>;
|
|
13
|
+
middleware: <$ContextOverrides>(fn: import("@trpc/server/dist/unstable-core-do-not-import").MiddlewareFunction<RouterContext, object, object, $ContextOverrides, unknown>) => import("@trpc/server/dist/unstable-core-do-not-import").MiddlewareBuilder<RouterContext, object, $ContextOverrides, unknown>;
|
|
14
|
+
router: {
|
|
15
|
+
<TInput extends import("@trpc/server").RouterRecord>(input: TInput): import("@trpc/server/dist/unstable-core-do-not-import").BuiltRouter<{
|
|
16
|
+
ctx: RouterContext;
|
|
17
|
+
meta: object;
|
|
18
|
+
errorShape: import("@trpc/server/dist/unstable-core-do-not-import").DefaultErrorShape;
|
|
19
|
+
transformer: false;
|
|
20
|
+
}, TInput>;
|
|
21
|
+
<TInput extends import("@trpc/server/dist/unstable-core-do-not-import").CreateRouterOptions>(input: TInput): import("@trpc/server/dist/unstable-core-do-not-import").BuiltRouter<{
|
|
22
|
+
ctx: RouterContext;
|
|
23
|
+
meta: object;
|
|
24
|
+
errorShape: import("@trpc/server/dist/unstable-core-do-not-import").DefaultErrorShape;
|
|
25
|
+
transformer: false;
|
|
26
|
+
}, import("@trpc/server/dist/unstable-core-do-not-import").DecorateCreateRouterOptions<TInput>>;
|
|
27
|
+
};
|
|
28
|
+
mergeRouters: typeof import("@trpc/server/dist/unstable-core-do-not-import").mergeRouters;
|
|
29
|
+
createCallerFactory: <TRecord extends import("@trpc/server").RouterRecord>(router: Pick<import("@trpc/server/dist/unstable-core-do-not-import").Router<{
|
|
30
|
+
ctx: RouterContext;
|
|
31
|
+
meta: object;
|
|
32
|
+
errorShape: import("@trpc/server/dist/unstable-core-do-not-import").DefaultErrorShape;
|
|
33
|
+
transformer: false;
|
|
34
|
+
}, TRecord>, "_def">) => import("@trpc/server/dist/unstable-core-do-not-import").RouterCaller<{
|
|
35
|
+
ctx: RouterContext;
|
|
36
|
+
meta: object;
|
|
37
|
+
errorShape: import("@trpc/server/dist/unstable-core-do-not-import").DefaultErrorShape;
|
|
38
|
+
transformer: false;
|
|
39
|
+
}, TRecord>;
|
|
40
|
+
};
|
|
41
|
+
export declare const router: {
|
|
42
|
+
<TInput extends import("@trpc/server").RouterRecord>(input: TInput): import("@trpc/server/dist/unstable-core-do-not-import").BuiltRouter<{
|
|
43
|
+
ctx: RouterContext;
|
|
44
|
+
meta: object;
|
|
45
|
+
errorShape: import("@trpc/server/dist/unstable-core-do-not-import").DefaultErrorShape;
|
|
46
|
+
transformer: false;
|
|
47
|
+
}, TInput>;
|
|
48
|
+
<TInput extends import("@trpc/server/dist/unstable-core-do-not-import").CreateRouterOptions>(input: TInput): import("@trpc/server/dist/unstable-core-do-not-import").BuiltRouter<{
|
|
49
|
+
ctx: RouterContext;
|
|
50
|
+
meta: object;
|
|
51
|
+
errorShape: import("@trpc/server/dist/unstable-core-do-not-import").DefaultErrorShape;
|
|
52
|
+
transformer: false;
|
|
53
|
+
}, import("@trpc/server/dist/unstable-core-do-not-import").DecorateCreateRouterOptions<TInput>>;
|
|
54
|
+
};
|
|
55
|
+
export declare const procedure: import("@trpc/server/dist/unstable-core-do-not-import").ProcedureBuilder<RouterContext, object, object, typeof import("@trpc/server/dist/unstable-core-do-not-import").unsetMarker, typeof import("@trpc/server/dist/unstable-core-do-not-import").unsetMarker, typeof import("@trpc/server/dist/unstable-core-do-not-import").unsetMarker, typeof import("@trpc/server/dist/unstable-core-do-not-import").unsetMarker, false>;
|
|
56
|
+
export declare const createRouter: () => import("@trpc/server/dist/unstable-core-do-not-import").BuiltRouter<{
|
|
57
|
+
ctx: RouterContext;
|
|
58
|
+
meta: object;
|
|
59
|
+
errorShape: import("@trpc/server/dist/unstable-core-do-not-import").DefaultErrorShape;
|
|
60
|
+
transformer: false;
|
|
61
|
+
}, {
|
|
62
|
+
getJob: import("@trpc/server").TRPCQueryProcedure<{
|
|
63
|
+
input: {
|
|
64
|
+
query?: {
|
|
65
|
+
cursor?: Record<string, any>;
|
|
66
|
+
select?: Record<string, boolean>;
|
|
67
|
+
skip?: number;
|
|
68
|
+
where?: any;
|
|
69
|
+
take?: number;
|
|
70
|
+
orderBy?: Record<string, "asc" | "desc">;
|
|
71
|
+
include?: Record<string, boolean>;
|
|
72
|
+
};
|
|
73
|
+
};
|
|
74
|
+
output: any;
|
|
75
|
+
}>;
|
|
76
|
+
createJob: import("@trpc/server").TRPCMutationProcedure<{
|
|
77
|
+
input: {
|
|
78
|
+
data?: {
|
|
79
|
+
name?: string;
|
|
80
|
+
mod?: string;
|
|
81
|
+
key?: string;
|
|
82
|
+
id?: string | import("mongoose").Types.ObjectId;
|
|
83
|
+
data?: any;
|
|
84
|
+
description?: string;
|
|
85
|
+
applicationId?: string | import("mongoose").Types.ObjectId;
|
|
86
|
+
createdDate?: Date;
|
|
87
|
+
updatedDate?: Date;
|
|
88
|
+
status?: "Active" | "Paused" | "Pending" | "Archived";
|
|
89
|
+
ownerId?: string | import("mongoose").Types.ObjectId;
|
|
90
|
+
meta?: any;
|
|
91
|
+
merkleLeaf?: string;
|
|
92
|
+
merkleIndex?: number;
|
|
93
|
+
createdById?: string | import("mongoose").Types.ObjectId;
|
|
94
|
+
editedById?: string | import("mongoose").Types.ObjectId;
|
|
95
|
+
deletedById?: string | import("mongoose").Types.ObjectId;
|
|
96
|
+
deletedDate?: Date;
|
|
97
|
+
startDate?: Date;
|
|
98
|
+
expireDate?: Date;
|
|
99
|
+
};
|
|
100
|
+
};
|
|
101
|
+
output: any;
|
|
102
|
+
}>;
|
|
103
|
+
updateJob: import("@trpc/server").TRPCMutationProcedure<{
|
|
104
|
+
input: {
|
|
105
|
+
data?: {
|
|
106
|
+
name?: string;
|
|
107
|
+
mod?: string;
|
|
108
|
+
key?: string;
|
|
109
|
+
id?: string | import("mongoose").Types.ObjectId;
|
|
110
|
+
data?: any;
|
|
111
|
+
description?: string;
|
|
112
|
+
applicationId?: string | import("mongoose").Types.ObjectId;
|
|
113
|
+
createdDate?: Date;
|
|
114
|
+
updatedDate?: Date;
|
|
115
|
+
status?: "Active" | "Paused" | "Pending" | "Archived";
|
|
116
|
+
ownerId?: string | import("mongoose").Types.ObjectId;
|
|
117
|
+
meta?: any;
|
|
118
|
+
merkleLeaf?: string;
|
|
119
|
+
merkleIndex?: number;
|
|
120
|
+
createdById?: string | import("mongoose").Types.ObjectId;
|
|
121
|
+
editedById?: string | import("mongoose").Types.ObjectId;
|
|
122
|
+
deletedById?: string | import("mongoose").Types.ObjectId;
|
|
123
|
+
deletedDate?: Date;
|
|
124
|
+
startDate?: Date;
|
|
125
|
+
expireDate?: Date;
|
|
126
|
+
};
|
|
127
|
+
query?: {
|
|
128
|
+
cursor?: Record<string, any>;
|
|
129
|
+
select?: Record<string, boolean>;
|
|
130
|
+
skip?: number;
|
|
131
|
+
where?: any;
|
|
132
|
+
take?: number;
|
|
133
|
+
orderBy?: Record<string, "asc" | "desc">;
|
|
134
|
+
include?: Record<string, boolean>;
|
|
135
|
+
};
|
|
136
|
+
};
|
|
137
|
+
output: any;
|
|
138
|
+
}>;
|
|
139
|
+
updateMetrics: import("@trpc/server").TRPCMutationProcedure<{
|
|
140
|
+
input: any;
|
|
141
|
+
output: any;
|
|
142
|
+
}>;
|
|
143
|
+
}>;
|
|
144
|
+
export type Router = ReturnType<typeof createRouter>;
|
|
145
|
+
export type RouterInput = inferRouterInputs<Router>;
|
|
146
|
+
export type RouterOutput = inferRouterOutputs<Router>;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { z as zod } from 'zod';
|
|
2
|
+
import { initTRPC } from '@trpc/server';
|
|
3
|
+
import { customErrorFormatter, hasRole } from '@arken/node/rpc';
|
|
4
|
+
import { Job } from './job.schema';
|
|
5
|
+
import { Query } from '../schema';
|
|
6
|
+
export const z = zod;
|
|
7
|
+
export const t = initTRPC.context().create();
|
|
8
|
+
export const router = t.router;
|
|
9
|
+
export const procedure = t.procedure;
|
|
10
|
+
export const createRouter = () => router({
|
|
11
|
+
getJob: procedure
|
|
12
|
+
.use(hasRole('guest', t))
|
|
13
|
+
.use(customErrorFormatter(t))
|
|
14
|
+
.input(z.object({ query: Query }))
|
|
15
|
+
.query(({ input, ctx }) => ctx.app.service.Job.getJob(input, ctx)),
|
|
16
|
+
createJob: procedure
|
|
17
|
+
.use(hasRole('admin', t))
|
|
18
|
+
.use(customErrorFormatter(t))
|
|
19
|
+
.input(z.object({ data: Job }))
|
|
20
|
+
.mutation(({ input, ctx }) => ctx.app.service.Job.createJob(input, ctx)),
|
|
21
|
+
updateJob: procedure
|
|
22
|
+
.use(hasRole('admin', t))
|
|
23
|
+
.use(customErrorFormatter(t))
|
|
24
|
+
.input(z.object({ query: Query, data: Job.partial() }))
|
|
25
|
+
.mutation(({ input, ctx }) => ctx.app.service.Job.updateJob(input, ctx)),
|
|
26
|
+
updateMetrics: procedure
|
|
27
|
+
.use(hasRole('admin', t))
|
|
28
|
+
.use(customErrorFormatter(t))
|
|
29
|
+
.input(z.any())
|
|
30
|
+
.mutation(({ input, ctx }) => ctx.app.service.Job.updateMetrics(input, ctx)),
|
|
31
|
+
});
|
|
32
|
+
//# sourceMappingURL=job.router.js.map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AC,CAAC,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,CAAC;SAC9B,QAAQ,CAAC,CAAC,EAAE,KAAK,EAAE,GAAG,EAAE,EAAE,EAAE,CAAE,GAAG,CAAC,GAAG,CAAC,OAAO,CAAC,GAAG,CAAC,SAAiB,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC;IAEnF,SAAS,EAAE,SAAS;SACjB,GAAG,CAAC,OAAO,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC;SACxB,GAAG,CAAC,oBAAoB,CAAC,CAAC,CAAC,CAAC;SAC5B,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,GAAG,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC;SACtD,QAAQ,CAAC,CAAC,EAAE,KAAK,EAAE,GAAG,EAAE,EAAE,EAAE,CAAE,GAAG,CAAC,GAAG,CAAC,OAAO,CAAC,GAAG,CAAC,SAAiB,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC;IAEnF,aAAa,EAAE,SAAS;SACrB,GAAG,CAAC,OAAO,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC;SACxB,GAAG,CAAC,oBAAoB,CAAC,CAAC,CAAC,CAAC;SAC5B,KAAK,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC;SACd,QAAQ,CAAC,CAAC,EAAE,KAAK,EAAE,GAAG,EAAE,EAAE,EAAE,CAAE,GAAG,CAAC,GAAG,CAAC,OAAO,CAAC,GAAG,CAAC,aAAqB,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC;CACxF,CAAC,CAAC"}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
export declare const Job: import("zod").ZodObject<{
|
|
2
|
+
key: import("zod").ZodOptional<import("zod").ZodString>;
|
|
3
|
+
name: import("zod").ZodOptional<import("zod").ZodString>;
|
|
4
|
+
description: import("zod").ZodOptional<import("zod").ZodString>;
|
|
5
|
+
applicationId: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodEffects<import("zod").ZodString, string, string>, import("zod").ZodType<import("mongoose").Types.ObjectId, import("zod").ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
|
|
6
|
+
ownerId: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodEffects<import("zod").ZodString, string, string>, import("zod").ZodType<import("mongoose").Types.ObjectId, import("zod").ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
|
|
7
|
+
} & {
|
|
8
|
+
id: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodEffects<import("zod").ZodString, string, string>, import("zod").ZodType<import("mongoose").Types.ObjectId, import("zod").ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
|
|
9
|
+
meta: import("zod").ZodAny;
|
|
10
|
+
data: import("zod").ZodAny;
|
|
11
|
+
status: import("zod").ZodDefault<import("zod").ZodEnum<["Paused", "Pending", "Active", "Archived"]>>;
|
|
12
|
+
merkleLeaf: import("zod").ZodOptional<import("zod").ZodString>;
|
|
13
|
+
merkleIndex: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
14
|
+
createdById: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodEffects<import("zod").ZodString, string, string>, import("zod").ZodType<import("mongoose").Types.ObjectId, import("zod").ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
|
|
15
|
+
editedById: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodEffects<import("zod").ZodString, string, string>, import("zod").ZodType<import("mongoose").Types.ObjectId, import("zod").ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
|
|
16
|
+
deletedById: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodEffects<import("zod").ZodString, string, string>, import("zod").ZodType<import("mongoose").Types.ObjectId, import("zod").ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
|
|
17
|
+
createdDate: import("zod").ZodDefault<import("zod").ZodDate>;
|
|
18
|
+
updatedDate: import("zod").ZodOptional<import("zod").ZodDate>;
|
|
19
|
+
deletedDate: import("zod").ZodOptional<import("zod").ZodDate>;
|
|
20
|
+
} & {
|
|
21
|
+
mod: import("zod").ZodString;
|
|
22
|
+
startDate: import("zod").ZodOptional<import("zod").ZodDate>;
|
|
23
|
+
expireDate: import("zod").ZodOptional<import("zod").ZodDate>;
|
|
24
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
25
|
+
name?: string;
|
|
26
|
+
mod?: string;
|
|
27
|
+
key?: string;
|
|
28
|
+
id?: string | import("mongoose").Types.ObjectId;
|
|
29
|
+
data?: any;
|
|
30
|
+
description?: string;
|
|
31
|
+
applicationId?: string | import("mongoose").Types.ObjectId;
|
|
32
|
+
createdDate?: Date;
|
|
33
|
+
updatedDate?: Date;
|
|
34
|
+
status?: "Active" | "Paused" | "Pending" | "Archived";
|
|
35
|
+
ownerId?: string | import("mongoose").Types.ObjectId;
|
|
36
|
+
meta?: any;
|
|
37
|
+
merkleLeaf?: string;
|
|
38
|
+
merkleIndex?: number;
|
|
39
|
+
createdById?: string | import("mongoose").Types.ObjectId;
|
|
40
|
+
editedById?: string | import("mongoose").Types.ObjectId;
|
|
41
|
+
deletedById?: string | import("mongoose").Types.ObjectId;
|
|
42
|
+
deletedDate?: Date;
|
|
43
|
+
startDate?: Date;
|
|
44
|
+
expireDate?: Date;
|
|
45
|
+
}, {
|
|
46
|
+
name?: string;
|
|
47
|
+
mod?: string;
|
|
48
|
+
key?: string;
|
|
49
|
+
id?: string | import("mongoose").Types.ObjectId;
|
|
50
|
+
data?: any;
|
|
51
|
+
description?: string;
|
|
52
|
+
applicationId?: string | import("mongoose").Types.ObjectId;
|
|
53
|
+
createdDate?: Date;
|
|
54
|
+
updatedDate?: Date;
|
|
55
|
+
status?: "Active" | "Paused" | "Pending" | "Archived";
|
|
56
|
+
ownerId?: string | import("mongoose").Types.ObjectId;
|
|
57
|
+
meta?: any;
|
|
58
|
+
merkleLeaf?: string;
|
|
59
|
+
merkleIndex?: number;
|
|
60
|
+
createdById?: string | import("mongoose").Types.ObjectId;
|
|
61
|
+
editedById?: string | import("mongoose").Types.ObjectId;
|
|
62
|
+
deletedById?: string | import("mongoose").Types.ObjectId;
|
|
63
|
+
deletedDate?: Date;
|
|
64
|
+
startDate?: Date;
|
|
65
|
+
expireDate?: Date;
|
|
66
|
+
}>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"job.schema.js","sourceRoot":"","sources":["../../job/job.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAY,MAAM,EAAE,MAAM,WAAW,CAAC;AAEhD,MAAM,CAAC,MAAM,GAAG,GAAG,MAAM,CAAC,KAAK,CAC7B,CAAC,CAAC,MAAM,CAAC;IACP,GAAG,EAAE,CAAC,CAAC,MAAM,EAAE;IACf,SAAS,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC,QAAQ,EAAE;IAC9B,UAAU,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC,QAAQ,EAAE;CAChC,CAAC,CACH,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import * as schema from './job.schema';
|
|
3
|
+
import { Document, Model } from '@arken/node/mongo';
|
|
4
|
+
import type { RouterContext } from '../types';
|
|
5
|
+
import type { inferRouterInputs, inferRouterOutputs } from '@trpc/server';
|
|
6
|
+
import type { Router } from './job.router';
|
|
7
|
+
export type * from './job.router';
|
|
8
|
+
export type { RouterContext };
|
|
9
|
+
export type Job = z.infer<typeof schema.Job>;
|
|
10
|
+
export type JobDocument = Job & Document;
|
|
11
|
+
export type Mappings = {
|
|
12
|
+
Job: Model<JobDocument>;
|
|
13
|
+
};
|
|
14
|
+
export type RouterInput = inferRouterInputs<Router>;
|
|
15
|
+
export type RouterOutput = inferRouterOutputs<Router>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"job.types.js","sourceRoot":"","sources":["../../job/job.types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../market/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,gBAAgB,CAAC;AACxC,OAAO,KAAK,MAAM,MAAM,iBAAiB,CAAC;AAC1C,OAAO,KAAK,OAAO,MAAM,iBAAiB,CAAC;AAC3C,cAAc,iBAAiB,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as mongo from '@arken/node/mongo';
|
|
2
|
+
import type * as Types from './market.types';
|
|
3
|
+
export declare const Market: mongo.Model<any> | mongo.Model<Types.MarketDocument>;
|
|
4
|
+
export declare const MarketPair: mongo.Model<any> | mongo.Model<Types.MarketPairDocument>;
|
|
5
|
+
export declare const MarketExchange: mongo.Model<any> | mongo.Model<Types.MarketExchangeDocument>;
|
|
6
|
+
export declare const MarketAnalysis: mongo.Model<any> | mongo.Model<Types.MarketAnalysisDocument>;
|
|
7
|
+
export declare const MarketInvestor: mongo.Model<any> | mongo.Model<Types.MarketInvestorDocument>;
|
|
8
|
+
export declare const MarketInvestmentPortfolio: mongo.Model<any> | mongo.Model<Types.MarketInvestmentPortfolioDocument>;
|
|
9
|
+
export declare const MarketInvestment: mongo.Model<any> | mongo.Model<Types.MarketInvestmentDocument>;
|
|
10
|
+
export declare const MarketStock: mongo.Model<any> | mongo.Model<Types.MarketStockDocument>;
|
|
11
|
+
export declare const MarketToken: mongo.Model<any> | mongo.Model<Types.MarketTokenDocument>;
|
|
12
|
+
export declare const MarketCompany: mongo.Model<any> | mongo.Model<Types.MarketCompanyDocument>;
|
|
13
|
+
export declare const MarketETF: mongo.Model<any> | mongo.Model<Types.MarketETFDocument>;
|
|
14
|
+
export declare const MarketStockSentiment: mongo.Model<any> | mongo.Model<Types.MarketStockSentimentDocument>;
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import * as mongo from '@arken/node/mongo';
|
|
2
|
+
export const Market = mongo.createModel('Market', {
|
|
3
|
+
value: { type: String, required: true },
|
|
4
|
+
});
|
|
5
|
+
export const MarketPair = mongo.createModel('MarketPair', {
|
|
6
|
+
value: { type: String, required: true },
|
|
7
|
+
});
|
|
8
|
+
export const MarketExchange = mongo.createModel('MarketExchange', {
|
|
9
|
+
value: { type: String },
|
|
10
|
+
});
|
|
11
|
+
export const MarketAnalysis = mongo.createModel('MarketAnalysis', {
|
|
12
|
+
action: { type: String, required: true },
|
|
13
|
+
asset: { type: String, required: true },
|
|
14
|
+
signalType: { type: String, required: true },
|
|
15
|
+
confidence: { type: Number, required: true },
|
|
16
|
+
riskLevel: { type: String, required: true },
|
|
17
|
+
timeFrame: { type: String, required: true },
|
|
18
|
+
source: { type: String, required: true },
|
|
19
|
+
summary: { type: String, required: true },
|
|
20
|
+
labels: {
|
|
21
|
+
sector: { type: String },
|
|
22
|
+
topic: { type: String },
|
|
23
|
+
sentiment: { type: String },
|
|
24
|
+
},
|
|
25
|
+
});
|
|
26
|
+
export const MarketInvestor = mongo.createModel('MarketInvestor', {
|
|
27
|
+
portfolioIds: [{ type: mongo.Schema.Types.ObjectId, required: true }],
|
|
28
|
+
totalPnl: { type: Number },
|
|
29
|
+
});
|
|
30
|
+
export const MarketInvestmentPortfolio = mongo.createModel('MarketInvestmentPortfolio', {
|
|
31
|
+
categoryGoals: [
|
|
32
|
+
{
|
|
33
|
+
category: { type: String, required: true },
|
|
34
|
+
goalPercentage: { type: Number, required: true },
|
|
35
|
+
currentPnL: { type: Number },
|
|
36
|
+
historicalPnL: { type: Number },
|
|
37
|
+
},
|
|
38
|
+
],
|
|
39
|
+
investmentIds: [{ type: mongo.Schema.Types.ObjectId, required: true }],
|
|
40
|
+
totalPnl: { type: Number },
|
|
41
|
+
});
|
|
42
|
+
export const MarketInvestment = mongo.createModel('MarketInvestment', {
|
|
43
|
+
type: { type: String, required: true },
|
|
44
|
+
amount: { type: Number, required: true },
|
|
45
|
+
category: { type: String, required: true },
|
|
46
|
+
purchasePrice: { type: Number, required: true },
|
|
47
|
+
currentValue: { type: Number, required: true },
|
|
48
|
+
pnl: { type: Number, required: true },
|
|
49
|
+
transactions: [
|
|
50
|
+
{
|
|
51
|
+
date: { type: Date, required: true },
|
|
52
|
+
type: { type: String, required: true },
|
|
53
|
+
price: { type: Number, required: true },
|
|
54
|
+
quantity: { type: Number, required: true },
|
|
55
|
+
},
|
|
56
|
+
],
|
|
57
|
+
stockId: { type: mongo.Schema.Types.ObjectId },
|
|
58
|
+
chainTokenId: { type: mongo.Schema.Types.ObjectId },
|
|
59
|
+
});
|
|
60
|
+
export const MarketStock = mongo.createModel('MarketStock', {
|
|
61
|
+
ticker: { type: String, required: true },
|
|
62
|
+
companyId: { type: mongo.Schema.Types.ObjectId, required: true, ref: 'StockCompany' },
|
|
63
|
+
currentPrice: { type: Number, required: true },
|
|
64
|
+
marketCap: { type: Number },
|
|
65
|
+
volume: { type: Number },
|
|
66
|
+
currency: { type: String, required: true },
|
|
67
|
+
aum: { type: Number },
|
|
68
|
+
quoteType: { type: String },
|
|
69
|
+
dailyChange: { type: Number },
|
|
70
|
+
dailyChangePercent: { type: Number },
|
|
71
|
+
});
|
|
72
|
+
export const MarketToken = mongo.createModel('MarketToken', {
|
|
73
|
+
symbol: { type: String, required: true },
|
|
74
|
+
currentPrice: { type: Number, required: true },
|
|
75
|
+
});
|
|
76
|
+
export const MarketCompany = mongo.createModel('MarketCompany', {
|
|
77
|
+
ticker: { type: String, required: true },
|
|
78
|
+
country: { type: String, required: true },
|
|
79
|
+
industry: { type: String, required: true },
|
|
80
|
+
sector: { type: String, required: true },
|
|
81
|
+
type: { type: String, required: true },
|
|
82
|
+
issuedETFs: [{ type: mongo.Schema.Types.ObjectId, ref: 'MarketETF' }],
|
|
83
|
+
});
|
|
84
|
+
export const MarketETF = mongo.createModel('ETF', {
|
|
85
|
+
ticker: { type: String, required: true },
|
|
86
|
+
issuerId: { type: mongo.Schema.Types.ObjectId, required: true },
|
|
87
|
+
leverage: { type: Number, required: false },
|
|
88
|
+
});
|
|
89
|
+
export const MarketStockSentiment = mongo.createModel('MarketStockSentiment', {
|
|
90
|
+
ticker: { type: String, required: true },
|
|
91
|
+
companyId: { type: mongo.Schema.Types.ObjectId, required: true, ref: 'StockCompany' },
|
|
92
|
+
sentiment: {
|
|
93
|
+
label: { type: String, required: true },
|
|
94
|
+
score: { type: Number, required: true },
|
|
95
|
+
},
|
|
96
|
+
confidence: { type: Number, required: true },
|
|
97
|
+
});
|
|
98
|
+
//# sourceMappingURL=market.models.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"market.models.js","sourceRoot":"","sources":["../../market/market.models.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,mBAAmB,CAAC;AAG3C,MAAM,CAAC,MAAM,MAAM,GAAG,KAAK,CAAC,WAAW,CAAuB,QAAQ,EAAE;IACtE,KAAK,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE;CACxC,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,UAAU,GAAG,KAAK,CAAC,WAAW,CAA2B,YAAY,EAAE;IAClF,KAAK,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE;CACxC,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,cAAc,GAAG,KAAK,CAAC,WAAW,CAA+B,gBAAgB,EAAE;IAC9F,KAAK,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE;CACxB,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,cAAc,GAAG,KAAK,CAAC,WAAW,CAA+B,gBAAgB,EAAE;IAC9F,MAAM,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE;IACxC,KAAK,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE;IACvC,UAAU,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAA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