@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,339 @@
|
|
|
1
|
+
export declare const GameStat: 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
|
+
gameId: 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>]>;
|
|
22
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
23
|
+
name?: string;
|
|
24
|
+
key?: string;
|
|
25
|
+
id?: string | import("mongoose").Types.ObjectId;
|
|
26
|
+
data?: any;
|
|
27
|
+
description?: string;
|
|
28
|
+
applicationId?: string | import("mongoose").Types.ObjectId;
|
|
29
|
+
createdDate?: Date;
|
|
30
|
+
updatedDate?: Date;
|
|
31
|
+
status?: "Active" | "Paused" | "Pending" | "Archived";
|
|
32
|
+
ownerId?: string | import("mongoose").Types.ObjectId;
|
|
33
|
+
meta?: any;
|
|
34
|
+
merkleLeaf?: string;
|
|
35
|
+
merkleIndex?: number;
|
|
36
|
+
createdById?: string | import("mongoose").Types.ObjectId;
|
|
37
|
+
editedById?: string | import("mongoose").Types.ObjectId;
|
|
38
|
+
deletedById?: string | import("mongoose").Types.ObjectId;
|
|
39
|
+
deletedDate?: Date;
|
|
40
|
+
gameId?: string | import("mongoose").Types.ObjectId;
|
|
41
|
+
}, {
|
|
42
|
+
name?: string;
|
|
43
|
+
key?: string;
|
|
44
|
+
id?: string | import("mongoose").Types.ObjectId;
|
|
45
|
+
data?: any;
|
|
46
|
+
description?: string;
|
|
47
|
+
applicationId?: string | import("mongoose").Types.ObjectId;
|
|
48
|
+
createdDate?: Date;
|
|
49
|
+
updatedDate?: Date;
|
|
50
|
+
status?: "Active" | "Paused" | "Pending" | "Archived";
|
|
51
|
+
ownerId?: string | import("mongoose").Types.ObjectId;
|
|
52
|
+
meta?: any;
|
|
53
|
+
merkleLeaf?: string;
|
|
54
|
+
merkleIndex?: number;
|
|
55
|
+
createdById?: string | import("mongoose").Types.ObjectId;
|
|
56
|
+
editedById?: string | import("mongoose").Types.ObjectId;
|
|
57
|
+
deletedById?: string | import("mongoose").Types.ObjectId;
|
|
58
|
+
deletedDate?: Date;
|
|
59
|
+
gameId?: string | import("mongoose").Types.ObjectId;
|
|
60
|
+
}>;
|
|
61
|
+
export declare const Game: import("zod").ZodObject<{
|
|
62
|
+
key: import("zod").ZodOptional<import("zod").ZodString>;
|
|
63
|
+
name: import("zod").ZodOptional<import("zod").ZodString>;
|
|
64
|
+
description: import("zod").ZodOptional<import("zod").ZodString>;
|
|
65
|
+
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>]>>;
|
|
66
|
+
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>]>>;
|
|
67
|
+
} & {
|
|
68
|
+
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>]>>;
|
|
69
|
+
meta: import("zod").ZodAny;
|
|
70
|
+
data: import("zod").ZodAny;
|
|
71
|
+
status: import("zod").ZodDefault<import("zod").ZodEnum<["Paused", "Pending", "Active", "Archived"]>>;
|
|
72
|
+
merkleLeaf: import("zod").ZodOptional<import("zod").ZodString>;
|
|
73
|
+
merkleIndex: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
74
|
+
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>]>>;
|
|
75
|
+
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>]>>;
|
|
76
|
+
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>]>>;
|
|
77
|
+
createdDate: import("zod").ZodDefault<import("zod").ZodDate>;
|
|
78
|
+
updatedDate: import("zod").ZodOptional<import("zod").ZodDate>;
|
|
79
|
+
deletedDate: import("zod").ZodOptional<import("zod").ZodDate>;
|
|
80
|
+
} & {
|
|
81
|
+
productId: 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>]>;
|
|
82
|
+
statId: import("zod").ZodOptional<import("zod").ZodUnion<[import("zod").ZodEffects<import("zod").ZodString, string, string>, import("zod").ZodType<import("mongoose").Types.ObjectId, import("zod").ZodTypeDef, import("mongoose").Types.ObjectId>]>>;
|
|
83
|
+
stat: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodObject<{
|
|
84
|
+
key: import("zod").ZodOptional<import("zod").ZodString>;
|
|
85
|
+
name: import("zod").ZodOptional<import("zod").ZodString>;
|
|
86
|
+
description: import("zod").ZodOptional<import("zod").ZodString>;
|
|
87
|
+
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>]>>;
|
|
88
|
+
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>]>>;
|
|
89
|
+
} & {
|
|
90
|
+
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>]>>;
|
|
91
|
+
meta: import("zod").ZodAny;
|
|
92
|
+
data: import("zod").ZodAny;
|
|
93
|
+
status: import("zod").ZodDefault<import("zod").ZodEnum<["Paused", "Pending", "Active", "Archived"]>>;
|
|
94
|
+
merkleLeaf: import("zod").ZodOptional<import("zod").ZodString>;
|
|
95
|
+
merkleIndex: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
96
|
+
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>]>>;
|
|
97
|
+
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>]>>;
|
|
98
|
+
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>]>>;
|
|
99
|
+
createdDate: import("zod").ZodDefault<import("zod").ZodDate>;
|
|
100
|
+
updatedDate: import("zod").ZodOptional<import("zod").ZodDate>;
|
|
101
|
+
deletedDate: import("zod").ZodOptional<import("zod").ZodDate>;
|
|
102
|
+
} & {
|
|
103
|
+
gameId: 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>]>;
|
|
104
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
105
|
+
name?: string;
|
|
106
|
+
key?: string;
|
|
107
|
+
id?: string | import("mongoose").Types.ObjectId;
|
|
108
|
+
data?: any;
|
|
109
|
+
description?: string;
|
|
110
|
+
applicationId?: string | import("mongoose").Types.ObjectId;
|
|
111
|
+
createdDate?: Date;
|
|
112
|
+
updatedDate?: Date;
|
|
113
|
+
status?: "Active" | "Paused" | "Pending" | "Archived";
|
|
114
|
+
ownerId?: string | import("mongoose").Types.ObjectId;
|
|
115
|
+
meta?: any;
|
|
116
|
+
merkleLeaf?: string;
|
|
117
|
+
merkleIndex?: number;
|
|
118
|
+
createdById?: string | import("mongoose").Types.ObjectId;
|
|
119
|
+
editedById?: string | import("mongoose").Types.ObjectId;
|
|
120
|
+
deletedById?: string | import("mongoose").Types.ObjectId;
|
|
121
|
+
deletedDate?: Date;
|
|
122
|
+
gameId?: string | import("mongoose").Types.ObjectId;
|
|
123
|
+
}, {
|
|
124
|
+
name?: string;
|
|
125
|
+
key?: string;
|
|
126
|
+
id?: string | import("mongoose").Types.ObjectId;
|
|
127
|
+
data?: any;
|
|
128
|
+
description?: string;
|
|
129
|
+
applicationId?: string | import("mongoose").Types.ObjectId;
|
|
130
|
+
createdDate?: Date;
|
|
131
|
+
updatedDate?: Date;
|
|
132
|
+
status?: "Active" | "Paused" | "Pending" | "Archived";
|
|
133
|
+
ownerId?: string | import("mongoose").Types.ObjectId;
|
|
134
|
+
meta?: any;
|
|
135
|
+
merkleLeaf?: string;
|
|
136
|
+
merkleIndex?: number;
|
|
137
|
+
createdById?: string | import("mongoose").Types.ObjectId;
|
|
138
|
+
editedById?: string | import("mongoose").Types.ObjectId;
|
|
139
|
+
deletedById?: string | import("mongoose").Types.ObjectId;
|
|
140
|
+
deletedDate?: Date;
|
|
141
|
+
gameId?: string | import("mongoose").Types.ObjectId;
|
|
142
|
+
}>>>;
|
|
143
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
144
|
+
name?: string;
|
|
145
|
+
key?: string;
|
|
146
|
+
id?: string | import("mongoose").Types.ObjectId;
|
|
147
|
+
data?: any;
|
|
148
|
+
description?: string;
|
|
149
|
+
applicationId?: string | import("mongoose").Types.ObjectId;
|
|
150
|
+
createdDate?: Date;
|
|
151
|
+
updatedDate?: Date;
|
|
152
|
+
status?: "Active" | "Paused" | "Pending" | "Archived";
|
|
153
|
+
ownerId?: string | import("mongoose").Types.ObjectId;
|
|
154
|
+
meta?: any;
|
|
155
|
+
merkleLeaf?: string;
|
|
156
|
+
merkleIndex?: number;
|
|
157
|
+
createdById?: string | import("mongoose").Types.ObjectId;
|
|
158
|
+
editedById?: string | import("mongoose").Types.ObjectId;
|
|
159
|
+
deletedById?: string | import("mongoose").Types.ObjectId;
|
|
160
|
+
deletedDate?: Date;
|
|
161
|
+
productId?: string | import("mongoose").Types.ObjectId;
|
|
162
|
+
statId?: string | import("mongoose").Types.ObjectId;
|
|
163
|
+
stat?: {
|
|
164
|
+
name?: string;
|
|
165
|
+
key?: string;
|
|
166
|
+
id?: string | import("mongoose").Types.ObjectId;
|
|
167
|
+
data?: any;
|
|
168
|
+
description?: string;
|
|
169
|
+
applicationId?: string | import("mongoose").Types.ObjectId;
|
|
170
|
+
createdDate?: Date;
|
|
171
|
+
updatedDate?: Date;
|
|
172
|
+
status?: "Active" | "Paused" | "Pending" | "Archived";
|
|
173
|
+
ownerId?: string | import("mongoose").Types.ObjectId;
|
|
174
|
+
meta?: any;
|
|
175
|
+
merkleLeaf?: string;
|
|
176
|
+
merkleIndex?: number;
|
|
177
|
+
createdById?: string | import("mongoose").Types.ObjectId;
|
|
178
|
+
editedById?: string | import("mongoose").Types.ObjectId;
|
|
179
|
+
deletedById?: string | import("mongoose").Types.ObjectId;
|
|
180
|
+
deletedDate?: Date;
|
|
181
|
+
gameId?: string | import("mongoose").Types.ObjectId;
|
|
182
|
+
};
|
|
183
|
+
}, {
|
|
184
|
+
name?: string;
|
|
185
|
+
key?: string;
|
|
186
|
+
id?: string | import("mongoose").Types.ObjectId;
|
|
187
|
+
data?: any;
|
|
188
|
+
description?: string;
|
|
189
|
+
applicationId?: string | import("mongoose").Types.ObjectId;
|
|
190
|
+
createdDate?: Date;
|
|
191
|
+
updatedDate?: Date;
|
|
192
|
+
status?: "Active" | "Paused" | "Pending" | "Archived";
|
|
193
|
+
ownerId?: string | import("mongoose").Types.ObjectId;
|
|
194
|
+
meta?: any;
|
|
195
|
+
merkleLeaf?: string;
|
|
196
|
+
merkleIndex?: number;
|
|
197
|
+
createdById?: string | import("mongoose").Types.ObjectId;
|
|
198
|
+
editedById?: string | import("mongoose").Types.ObjectId;
|
|
199
|
+
deletedById?: string | import("mongoose").Types.ObjectId;
|
|
200
|
+
deletedDate?: Date;
|
|
201
|
+
productId?: string | import("mongoose").Types.ObjectId;
|
|
202
|
+
statId?: string | import("mongoose").Types.ObjectId;
|
|
203
|
+
stat?: {
|
|
204
|
+
name?: string;
|
|
205
|
+
key?: string;
|
|
206
|
+
id?: string | import("mongoose").Types.ObjectId;
|
|
207
|
+
data?: any;
|
|
208
|
+
description?: string;
|
|
209
|
+
applicationId?: string | import("mongoose").Types.ObjectId;
|
|
210
|
+
createdDate?: Date;
|
|
211
|
+
updatedDate?: Date;
|
|
212
|
+
status?: "Active" | "Paused" | "Pending" | "Archived";
|
|
213
|
+
ownerId?: string | import("mongoose").Types.ObjectId;
|
|
214
|
+
meta?: any;
|
|
215
|
+
merkleLeaf?: string;
|
|
216
|
+
merkleIndex?: number;
|
|
217
|
+
createdById?: string | import("mongoose").Types.ObjectId;
|
|
218
|
+
editedById?: string | import("mongoose").Types.ObjectId;
|
|
219
|
+
deletedById?: string | import("mongoose").Types.ObjectId;
|
|
220
|
+
deletedDate?: Date;
|
|
221
|
+
gameId?: string | import("mongoose").Types.ObjectId;
|
|
222
|
+
};
|
|
223
|
+
}>;
|
|
224
|
+
export declare const GameRound: import("zod").ZodObject<{
|
|
225
|
+
key: import("zod").ZodOptional<import("zod").ZodString>;
|
|
226
|
+
name: import("zod").ZodOptional<import("zod").ZodString>;
|
|
227
|
+
description: import("zod").ZodOptional<import("zod").ZodString>;
|
|
228
|
+
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>]>>;
|
|
229
|
+
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>]>>;
|
|
230
|
+
} & {
|
|
231
|
+
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>]>>;
|
|
232
|
+
meta: import("zod").ZodAny;
|
|
233
|
+
data: import("zod").ZodAny;
|
|
234
|
+
status: import("zod").ZodDefault<import("zod").ZodEnum<["Paused", "Pending", "Active", "Archived"]>>;
|
|
235
|
+
merkleLeaf: import("zod").ZodOptional<import("zod").ZodString>;
|
|
236
|
+
merkleIndex: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
237
|
+
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>]>>;
|
|
238
|
+
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>]>>;
|
|
239
|
+
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>]>>;
|
|
240
|
+
createdDate: import("zod").ZodDefault<import("zod").ZodDate>;
|
|
241
|
+
updatedDate: import("zod").ZodOptional<import("zod").ZodDate>;
|
|
242
|
+
deletedDate: import("zod").ZodOptional<import("zod").ZodDate>;
|
|
243
|
+
} & {
|
|
244
|
+
gameId: 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>]>;
|
|
245
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
246
|
+
name?: string;
|
|
247
|
+
key?: string;
|
|
248
|
+
id?: string | import("mongoose").Types.ObjectId;
|
|
249
|
+
data?: any;
|
|
250
|
+
description?: string;
|
|
251
|
+
applicationId?: string | import("mongoose").Types.ObjectId;
|
|
252
|
+
createdDate?: Date;
|
|
253
|
+
updatedDate?: Date;
|
|
254
|
+
status?: "Active" | "Paused" | "Pending" | "Archived";
|
|
255
|
+
ownerId?: string | import("mongoose").Types.ObjectId;
|
|
256
|
+
meta?: any;
|
|
257
|
+
merkleLeaf?: string;
|
|
258
|
+
merkleIndex?: number;
|
|
259
|
+
createdById?: string | import("mongoose").Types.ObjectId;
|
|
260
|
+
editedById?: string | import("mongoose").Types.ObjectId;
|
|
261
|
+
deletedById?: string | import("mongoose").Types.ObjectId;
|
|
262
|
+
deletedDate?: Date;
|
|
263
|
+
gameId?: string | import("mongoose").Types.ObjectId;
|
|
264
|
+
}, {
|
|
265
|
+
name?: string;
|
|
266
|
+
key?: string;
|
|
267
|
+
id?: string | import("mongoose").Types.ObjectId;
|
|
268
|
+
data?: any;
|
|
269
|
+
description?: string;
|
|
270
|
+
applicationId?: string | import("mongoose").Types.ObjectId;
|
|
271
|
+
createdDate?: Date;
|
|
272
|
+
updatedDate?: Date;
|
|
273
|
+
status?: "Active" | "Paused" | "Pending" | "Archived";
|
|
274
|
+
ownerId?: string | import("mongoose").Types.ObjectId;
|
|
275
|
+
meta?: any;
|
|
276
|
+
merkleLeaf?: string;
|
|
277
|
+
merkleIndex?: number;
|
|
278
|
+
createdById?: string | import("mongoose").Types.ObjectId;
|
|
279
|
+
editedById?: string | import("mongoose").Types.ObjectId;
|
|
280
|
+
deletedById?: string | import("mongoose").Types.ObjectId;
|
|
281
|
+
deletedDate?: Date;
|
|
282
|
+
gameId?: string | import("mongoose").Types.ObjectId;
|
|
283
|
+
}>;
|
|
284
|
+
export declare const Era: import("zod").ZodObject<{
|
|
285
|
+
key: import("zod").ZodOptional<import("zod").ZodString>;
|
|
286
|
+
name: import("zod").ZodOptional<import("zod").ZodString>;
|
|
287
|
+
description: import("zod").ZodOptional<import("zod").ZodString>;
|
|
288
|
+
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>]>>;
|
|
289
|
+
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>]>>;
|
|
290
|
+
} & {
|
|
291
|
+
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>]>>;
|
|
292
|
+
meta: import("zod").ZodAny;
|
|
293
|
+
data: import("zod").ZodAny;
|
|
294
|
+
status: import("zod").ZodDefault<import("zod").ZodEnum<["Paused", "Pending", "Active", "Archived"]>>;
|
|
295
|
+
merkleLeaf: import("zod").ZodOptional<import("zod").ZodString>;
|
|
296
|
+
merkleIndex: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
297
|
+
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>]>>;
|
|
298
|
+
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>]>>;
|
|
299
|
+
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>]>>;
|
|
300
|
+
createdDate: import("zod").ZodDefault<import("zod").ZodDate>;
|
|
301
|
+
updatedDate: import("zod").ZodOptional<import("zod").ZodDate>;
|
|
302
|
+
deletedDate: import("zod").ZodOptional<import("zod").ZodDate>;
|
|
303
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
304
|
+
name?: string;
|
|
305
|
+
key?: string;
|
|
306
|
+
id?: string | import("mongoose").Types.ObjectId;
|
|
307
|
+
data?: any;
|
|
308
|
+
description?: string;
|
|
309
|
+
applicationId?: string | import("mongoose").Types.ObjectId;
|
|
310
|
+
createdDate?: Date;
|
|
311
|
+
updatedDate?: Date;
|
|
312
|
+
status?: "Active" | "Paused" | "Pending" | "Archived";
|
|
313
|
+
ownerId?: string | import("mongoose").Types.ObjectId;
|
|
314
|
+
meta?: any;
|
|
315
|
+
merkleLeaf?: string;
|
|
316
|
+
merkleIndex?: number;
|
|
317
|
+
createdById?: string | import("mongoose").Types.ObjectId;
|
|
318
|
+
editedById?: string | import("mongoose").Types.ObjectId;
|
|
319
|
+
deletedById?: string | import("mongoose").Types.ObjectId;
|
|
320
|
+
deletedDate?: Date;
|
|
321
|
+
}, {
|
|
322
|
+
name?: string;
|
|
323
|
+
key?: string;
|
|
324
|
+
id?: string | import("mongoose").Types.ObjectId;
|
|
325
|
+
data?: any;
|
|
326
|
+
description?: string;
|
|
327
|
+
applicationId?: string | import("mongoose").Types.ObjectId;
|
|
328
|
+
createdDate?: Date;
|
|
329
|
+
updatedDate?: Date;
|
|
330
|
+
status?: "Active" | "Paused" | "Pending" | "Archived";
|
|
331
|
+
ownerId?: string | import("mongoose").Types.ObjectId;
|
|
332
|
+
meta?: any;
|
|
333
|
+
merkleLeaf?: string;
|
|
334
|
+
merkleIndex?: number;
|
|
335
|
+
createdById?: string | import("mongoose").Types.ObjectId;
|
|
336
|
+
editedById?: string | import("mongoose").Types.ObjectId;
|
|
337
|
+
deletedById?: string | import("mongoose").Types.ObjectId;
|
|
338
|
+
deletedDate?: Date;
|
|
339
|
+
}>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { z, ObjectId, Entity } from '../schema';
|
|
2
|
+
export const GameStat = Entity.merge(z.object({
|
|
3
|
+
gameId: ObjectId,
|
|
4
|
+
}));
|
|
5
|
+
export const Game = Entity.merge(z.object({
|
|
6
|
+
productId: ObjectId,
|
|
7
|
+
statId: ObjectId.optional(),
|
|
8
|
+
stat: GameStat.nullable().optional(),
|
|
9
|
+
}));
|
|
10
|
+
export const GameRound = Entity.merge(z.object({
|
|
11
|
+
gameId: ObjectId,
|
|
12
|
+
}));
|
|
13
|
+
export const Era = Entity.merge(z.object({}));
|
|
14
|
+
//# sourceMappingURL=game.schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"game.schema.js","sourceRoot":"","sources":["../../game/game.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AAEhD,MAAM,CAAC,MAAM,QAAQ,GAAG,MAAM,CAAC,KAAK,CAClC,CAAC,CAAC,MAAM,CAAC;IACP,MAAM,EAAE,QAAQ;CACjB,CAAC,CACH,CAAC;AAEF,MAAM,CAAC,MAAM,IAAI,GAAG,MAAM,CAAC,KAAK,CAC9B,CAAC,CAAC,MAAM,CAAC;IACP,SAAS,EAAE,QAAQ;IACnB,MAAM,EAAE,QAAQ,CAAC,QAAQ,EAAE;IAC3B,IAAI,EAAE,QAAQ,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;CACrC,CAAC,CACH,CAAC;AAEF,MAAM,CAAC,MAAM,SAAS,GAAG,MAAM,CAAC,KAAK,CACnC,CAAC,CAAC,MAAM,CAAC;IACP,MAAM,EAAE,QAAQ;CACjB,CAAC,CACH,CAAC;AAEF,MAAM,CAAC,MAAM,GAAG,GAAG,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { Model, Document } from '@arken/node/mongo';
|
|
3
|
+
import * as schema from './game.schema';
|
|
4
|
+
export type * from './game.router';
|
|
5
|
+
export type { RouterContext } from '../types';
|
|
6
|
+
export type Game = z.infer<typeof schema.Game>;
|
|
7
|
+
export type GameDocument = Game & Document;
|
|
8
|
+
export type GameStat = z.infer<typeof schema.GameStat>;
|
|
9
|
+
export type GameStatDocument = GameStat & Document;
|
|
10
|
+
export type GameRound = z.infer<typeof schema.GameRound>;
|
|
11
|
+
export type GameRoundDocument = GameRound & Document;
|
|
12
|
+
export type Era = z.infer<typeof schema.Era>;
|
|
13
|
+
export type EraDocument = Era & Document;
|
|
14
|
+
export type Mappings = {
|
|
15
|
+
Game: Model<GameDocument>;
|
|
16
|
+
GameStat: Model<GameStatDocument>;
|
|
17
|
+
GameRound: Model<GameRoundDocument>;
|
|
18
|
+
Era: Model<EraDocument>;
|
|
19
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"game.types.js","sourceRoot":"","sources":["../../game/game.types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../game/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,OAAO,MAAM,eAAe,CAAC;AACzC,cAAc,eAAe,CAAC"}
|
package/build/index.d.ts
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import * as Schema from '@arken/node/schema';
|
|
2
|
+
import { createRouter as createRouter2 } from './router';
|
|
3
|
+
import type * as Types from './types';
|
|
4
|
+
export * as Area from './area';
|
|
5
|
+
export * as Asset from './asset';
|
|
6
|
+
export * as Chain from './chain';
|
|
7
|
+
export * as Character from './character';
|
|
8
|
+
export * as Chat from './chat';
|
|
9
|
+
export * as Collection from './collection';
|
|
10
|
+
export * as Core from './core';
|
|
11
|
+
export * as Game from './game';
|
|
12
|
+
export * as Interface from './interface';
|
|
13
|
+
export * as Item from './item';
|
|
14
|
+
export * as Job from './job';
|
|
15
|
+
export * as Market from './market';
|
|
16
|
+
export * as Product from './product';
|
|
17
|
+
export * as Profile from './profile';
|
|
18
|
+
export * as Raffle from './raffle';
|
|
19
|
+
export * as Skill from './skill';
|
|
20
|
+
export * as Video from './video';
|
|
21
|
+
export * as Trek from './trek';
|
|
22
|
+
export * as Evolution from './evolution';
|
|
23
|
+
export * as Infinite from './infinite';
|
|
24
|
+
export * as Oasis from './oasis';
|
|
25
|
+
export { Application } from './types';
|
|
26
|
+
export type { Types };
|
|
27
|
+
export { createRouter } from './router';
|
|
28
|
+
export type Router = ReturnType<typeof createRouter2>;
|
|
29
|
+
export type RouterInput = Schema.inferRouterInputs<Router>;
|
|
30
|
+
export type RouterOutput = Schema.inferRouterOutputs<Router>;
|
package/build/index.js
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import * as dotenv from 'dotenv';
|
|
2
|
+
export * as Area from './area';
|
|
3
|
+
export * as Asset from './asset';
|
|
4
|
+
export * as Chain from './chain';
|
|
5
|
+
export * as Character from './character';
|
|
6
|
+
export * as Chat from './chat';
|
|
7
|
+
export * as Collection from './collection';
|
|
8
|
+
export * as Core from './core';
|
|
9
|
+
export * as Game from './game';
|
|
10
|
+
export * as Interface from './interface';
|
|
11
|
+
export * as Item from './item';
|
|
12
|
+
export * as Job from './job';
|
|
13
|
+
export * as Market from './market';
|
|
14
|
+
export * as Product from './product';
|
|
15
|
+
export * as Profile from './profile';
|
|
16
|
+
export * as Raffle from './raffle';
|
|
17
|
+
export * as Skill from './skill';
|
|
18
|
+
export * as Video from './video';
|
|
19
|
+
export * as Trek from './trek';
|
|
20
|
+
export * as Evolution from './evolution';
|
|
21
|
+
export * as Infinite from './infinite';
|
|
22
|
+
export * as Oasis from './oasis';
|
|
23
|
+
export { Application } from './types';
|
|
24
|
+
export { createRouter } from './router';
|
|
25
|
+
dotenv.config();
|
|
26
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAyBjC,OAAO,KAAK,IAAI,MAAM,QAAQ,CAAC;AAC/B,OAAO,KAAK,KAAK,MAAM,SAAS,CAAC;AACjC,OAAO,KAAK,KAAK,MAAM,SAAS,CAAC;AACjC,OAAO,KAAK,SAAS,MAAM,aAAa,CAAC;AACzC,OAAO,KAAK,IAAI,MAAM,QAAQ,CAAC;AAC/B,OAAO,KAAK,UAAU,MAAM,cAAc,CAAC;AAC3C,OAAO,KAAK,IAAI,MAAM,QAAQ,CAAC;AAC/B,OAAO,KAAK,IAAI,MAAM,QAAQ,CAAC;AAC/B,OAAO,KAAK,SAAS,MAAM,aAAa,CAAC;AACzC,OAAO,KAAK,IAAI,MAAM,QAAQ,CAAC;AAC/B,OAAO,KAAK,GAAG,MAAM,OAAO,CAAC;AAC7B,OAAO,KAAK,MAAM,MAAM,UAAU,CAAC;AACnC,OAAO,KAAK,OAAO,MAAM,WAAW,CAAC;AACrC,OAAO,KAAK,OAAO,MAAM,WAAW,CAAC;AACrC,OAAO,KAAK,MAAM,MAAM,UAAU,CAAC;AACnC,OAAO,KAAK,KAAK,MAAM,SAAS,CAAC;AACjC,OAAO,KAAK,KAAK,MAAM,SAAS,CAAC;AACjC,OAAO,KAAK,IAAI,MAAM,QAAQ,CAAC;AAC/B,OAAO,KAAK,SAAS,MAAM,aAAa,CAAC;AACzC,OAAO,KAAK,QAAQ,MAAM,YAAY,CAAC;AACvC,OAAO,KAAK,KAAK,MAAM,SAAS,CAAC;AAEjC,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAItC,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAMxC,MAAM,CAAC,MAAM,EAAE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../infinite/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,MAAM,mBAAmB,CAAC;AAC5C,OAAO,KAAK,OAAO,MAAM,mBAAmB,CAAC;AAC7C,cAAc,mBAAmB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"infinite.models.js","sourceRoot":"","sources":["../../infinite/infinite.models.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,mBAAmB,CAAC;AAE3C,MAAM,EAAE,cAAc,EAAE,qBAAqB,EAAE,GAAG,KAAK,CAAC"}
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import { z as zod } from 'zod';
|
|
2
|
+
import { inferRouterOutputs, inferRouterInputs } from '@arken/node/schema';
|
|
3
|
+
import { 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
|
+
saveRound: import("@trpc/server").TRPCQueryProcedure<{
|
|
63
|
+
input: {
|
|
64
|
+
shardId?: string;
|
|
65
|
+
round?: any;
|
|
66
|
+
roundId?: number;
|
|
67
|
+
rewardWinnerAmount?: number;
|
|
68
|
+
lastClients?: any;
|
|
69
|
+
};
|
|
70
|
+
output: any;
|
|
71
|
+
}>;
|
|
72
|
+
interact: import("@trpc/server").TRPCMutationProcedure<{
|
|
73
|
+
input: {
|
|
74
|
+
shardId?: string;
|
|
75
|
+
round?: any;
|
|
76
|
+
roundId?: number;
|
|
77
|
+
rewardWinnerAmount?: number;
|
|
78
|
+
lastClients?: any;
|
|
79
|
+
};
|
|
80
|
+
output: any;
|
|
81
|
+
}>;
|
|
82
|
+
getScene: import("@trpc/server").TRPCMutationProcedure<{
|
|
83
|
+
input: {
|
|
84
|
+
data?: any;
|
|
85
|
+
signature?: {
|
|
86
|
+
hash?: string;
|
|
87
|
+
address?: string;
|
|
88
|
+
};
|
|
89
|
+
};
|
|
90
|
+
output: any;
|
|
91
|
+
}>;
|
|
92
|
+
}>;
|
|
93
|
+
export type Router = ReturnType<typeof createRouter>;
|
|
94
|
+
export type RouterInput = inferRouterInputs<Router>;
|
|
95
|
+
export type RouterOutput = inferRouterOutputs<Router>;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { z as zod } from 'zod';
|
|
2
|
+
import { initTRPC } from '@trpc/server';
|
|
3
|
+
import { customErrorFormatter, hasRole } from '@arken/node/rpc';
|
|
4
|
+
export const z = zod;
|
|
5
|
+
export const t = initTRPC.context().create();
|
|
6
|
+
export const router = t.router;
|
|
7
|
+
export const procedure = t.procedure;
|
|
8
|
+
export const createRouter = () => router({
|
|
9
|
+
saveRound: procedure
|
|
10
|
+
.use(hasRole('guest', t))
|
|
11
|
+
.use(customErrorFormatter(t))
|
|
12
|
+
.input(z.object({
|
|
13
|
+
shardId: z.string(),
|
|
14
|
+
roundId: z.number(),
|
|
15
|
+
round: z.any(),
|
|
16
|
+
rewardWinnerAmount: z.number(),
|
|
17
|
+
lastClients: z.any(),
|
|
18
|
+
}))
|
|
19
|
+
.query(({ input, ctx }) => ctx.app.service.Evolution.saveRound(input, ctx)),
|
|
20
|
+
interact: t.procedure
|
|
21
|
+
.use(hasRole('guest', t))
|
|
22
|
+
.use(customErrorFormatter(t))
|
|
23
|
+
.input(z.object({
|
|
24
|
+
shardId: z.string(),
|
|
25
|
+
roundId: z.number(),
|
|
26
|
+
round: z.any(),
|
|
27
|
+
rewardWinnerAmount: z.number(),
|
|
28
|
+
lastClients: z.any(),
|
|
29
|
+
}))
|
|
30
|
+
.mutation(({ input, ctx }) => ctx.app.service.Evolution.saveRound(input, ctx)),
|
|
31
|
+
getScene: t.procedure
|
|
32
|
+
.use(hasRole('guest', t))
|
|
33
|
+
.use(customErrorFormatter(t))
|
|
34
|
+
.input(z.object({
|
|
35
|
+
data: z.any(),
|
|
36
|
+
signature: z.object({ hash: z.string(), address: z.string() }),
|
|
37
|
+
}))
|
|
38
|
+
.mutation(({ input, ctx }) => ctx.app.service.Evolution.saveRound(input, ctx)),
|
|
39
|
+
});
|
|
40
|
+
//# sourceMappingURL=infinite.router.js.map
|