@arken/seer-protocol 0.1.0 → 0.1.2
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 +537 -56
- package/area/area.models.ts +15 -0
- package/area/area.router.ts +74 -0
- package/area/area.schema.ts +22 -0
- package/area/area.types.ts +26 -0
- package/area/index.ts +5 -0
- package/asset/asset.models.ts +59 -0
- package/asset/asset.router.ts +55 -0
- package/asset/asset.schema.ts +27 -0
- package/asset/asset.types.ts +22 -0
- package/asset/index.ts +5 -0
- package/chain/chain.models.ts +50 -0
- package/chain/chain.router.ts +104 -0
- package/chain/chain.schema.ts +52 -0
- package/chain/chain.types.ts +24 -0
- package/chain/index.ts +5 -0
- package/character/character.models.ts +174 -0
- package/character/character.router.ts +314 -0
- package/character/character.schema.ts +147 -0
- package/character/character.types.ts +64 -0
- package/character/index.ts +5 -0
- package/chat/chat.models.ts +43 -0
- package/chat/chat.router.ts +67 -0
- package/chat/chat.schema.ts +36 -0
- package/chat/chat.types.ts +20 -0
- package/chat/index.ts +5 -0
- package/collection/collection.models.ts +76 -0
- package/collection/collection.router.ts +91 -0
- package/collection/collection.schema.ts +90 -0
- package/collection/collection.types.ts +36 -0
- package/collection/index.ts +5 -0
- package/core/core.models.ts +1380 -0
- package/core/core.router.ts +1781 -0
- package/core/core.schema.ts +847 -0
- package/core/core.types.ts +340 -0
- package/core/index.ts +5 -0
- package/{src/modules/evolution → evolution}/evolution.models.ts +1 -1
- package/{src/modules/evolution → evolution}/evolution.router.ts +5 -5
- package/{src/modules/evolution → evolution}/evolution.types.ts +1 -1
- package/game/game.models.ts +53 -0
- package/game/game.router.ts +110 -0
- package/game/game.schema.ts +23 -0
- package/game/game.types.ts +28 -0
- package/game/index.ts +5 -0
- package/index.ts +59 -0
- package/{src/modules/infinite → infinite}/infinite.models.ts +1 -1
- package/{src/modules/infinite → infinite}/infinite.router.ts +5 -5
- package/{src/modules/infinite → infinite}/infinite.types.ts +1 -1
- package/interface/index.ts +5 -0
- package/interface/interface.canonicalize.ts +279 -0
- package/interface/interface.models.ts +40 -0
- package/interface/interface.router.ts +175 -0
- package/interface/interface.schema.ts +59 -0
- package/interface/interface.types.ts +25 -0
- package/{src/modules/isles → isles}/isles.models.ts +1 -1
- package/{src/modules/isles → isles}/isles.router.ts +5 -5
- package/{src/modules/isles → isles}/isles.types.ts +1 -1
- package/item/index.ts +5 -0
- package/item/item.models.ts +124 -0
- package/item/item.router.ts +103 -0
- package/item/item.schema.ts +120 -0
- package/item/item.types.ts +74 -0
- package/job/index.ts +5 -0
- package/job/job.models.ts +14 -0
- package/job/job.router.ts +44 -0
- package/job/job.schema.ts +9 -0
- package/job/job.types.ts +23 -0
- package/market/index.ts +5 -0
- package/market/market.models.ts +113 -0
- package/market/market.router.ts +73 -0
- package/market/market.schema.ts +140 -0
- package/market/market.types.ts +56 -0
- package/{src/modules/oasis → oasis}/oasis.models.ts +1 -1
- package/{src/modules/oasis → oasis}/oasis.router.ts +1 -1
- package/{src/modules/oasis → oasis}/oasis.types.ts +1 -1
- package/package.json +12 -14
- package/product/index.ts +5 -0
- package/product/product.models.ts +166 -0
- package/product/product.router.ts +93 -0
- package/product/product.schema.ts +149 -0
- package/product/product.types.ts +33 -0
- package/profile/index.ts +5 -0
- package/profile/profile.models.ts +214 -0
- package/profile/profile.router.ts +72 -0
- package/profile/profile.schema.ts +156 -0
- package/profile/profile.types.ts +22 -0
- package/raffle/index.ts +5 -0
- package/raffle/raffle.models.ts +44 -0
- package/raffle/raffle.router.ts +90 -0
- package/raffle/raffle.schema.ts +32 -0
- package/raffle/raffle.types.ts +30 -0
- package/{src/router.ts → router.ts} +22 -28
- package/schema.ts +321 -0
- package/skill/index.ts +5 -0
- package/skill/skill.models.ts +16 -0
- package/skill/skill.router.ts +201 -0
- package/skill/skill.schema.ts +40 -0
- package/skill/skill.types.ts +33 -0
- package/{src/modules/trek → trek}/trek.router.ts +1 -1
- package/types.ts +273 -0
- package/video/index.ts +5 -0
- package/video/video.models.ts +25 -0
- package/video/video.router.ts +143 -0
- package/video/video.schema.ts +46 -0
- package/video/video.types.ts +33 -0
- package/src/index.ts +0 -22
- package/src/modules/evolution/evolution.service.ts +0 -2000
- package/src/modules/infinite/infinite.service.ts +0 -40
- package/src/modules/isles/isles.service.ts +0 -40
- package/src/modules/oasis/oasis.service.ts +0 -38
- package/src/modules/trek/trek.service.ts +0 -1031
- package/src/types.ts +0 -106
- /package/{src/modules/evolution → evolution}/evolution.schema.ts +0 -0
- /package/{src/modules/evolution → evolution}/index.ts +0 -0
- /package/{src/modules/infinite → infinite}/index.ts +0 -0
- /package/{src/modules/infinite → infinite}/infinite.schema.ts +0 -0
- /package/{src/modules/isles → isles}/index.ts +0 -0
- /package/{src/modules/isles → isles}/isles.schema.ts +0 -0
- /package/{src/modules/oasis → oasis}/index.ts +0 -0
- /package/{src/modules/oasis → oasis}/oasis.schema.ts +0 -0
- /package/{src/modules/trek → trek}/index.ts +0 -0
- /package/{src/modules/trek → trek}/trek.models.ts +0 -0
- /package/{src/modules/trek → trek}/trek.schema.ts +0 -0
- /package/{src/modules/trek → trek}/trek.types.ts +0 -0
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import type { RouterContext, RouterInput, RouterOutput } from './infinite.types';
|
|
2
|
-
import { getFilter } from '@arken/node/util/api';
|
|
3
|
-
import { ARXError } from '@arken/node/util/rpc';
|
|
4
|
-
import * as Arken from '@arken/node';
|
|
5
|
-
|
|
6
|
-
export class Service {
|
|
7
|
-
async saveRound(input: RouterInput['saveRound'], ctx: RouterContext): Promise<RouterOutput['saveRound']> {
|
|
8
|
-
console.log('Evolution.Service.saveRound', input);
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
async interact(input: RouterInput['interact'], ctx: RouterContext): Promise<RouterOutput['interact']> {
|
|
12
|
-
console.log('Evolution.Service.interact', input);
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
async getScene(input: RouterInput['getScene'], ctx: RouterContext): Promise<RouterOutput['getScene']> {
|
|
16
|
-
if (!input) throw new Error('Input should not be void');
|
|
17
|
-
console.log('Evolution.Service.getScene', input);
|
|
18
|
-
|
|
19
|
-
let data = {};
|
|
20
|
-
|
|
21
|
-
if (input.data.applicationId === '668e4e805f9a03927caf883b') {
|
|
22
|
-
data = {
|
|
23
|
-
...data,
|
|
24
|
-
objects: [
|
|
25
|
-
{
|
|
26
|
-
id: 'adsad',
|
|
27
|
-
file: 'asdasdas.fbx',
|
|
28
|
-
position: {
|
|
29
|
-
x: 1000,
|
|
30
|
-
y: 1000,
|
|
31
|
-
z: 1000,
|
|
32
|
-
},
|
|
33
|
-
},
|
|
34
|
-
] as Arken.Core.Types.Object,
|
|
35
|
-
};
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
return data;
|
|
39
|
-
}
|
|
40
|
-
}
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import type { RouterContext, RouterInput, RouterOutput } from './isles.types';
|
|
2
|
-
import { getFilter } from '@arken/node/util/api';
|
|
3
|
-
import { ARXError } from '@arken/node/util/rpc';
|
|
4
|
-
import * as Arken from '@arken/node';
|
|
5
|
-
|
|
6
|
-
export class Service {
|
|
7
|
-
async saveRound(input: RouterInput['saveRound'], ctx: RouterContext): Promise<RouterOutput['saveRound']> {
|
|
8
|
-
console.log('Evolution.Service.saveRound', input);
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
async interact(input: RouterInput['interact'], ctx: RouterContext): Promise<RouterOutput['interact']> {
|
|
12
|
-
console.log('Evolution.Service.interact', input);
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
async getScene(input: RouterInput['getScene'], ctx: RouterContext): Promise<RouterOutput['getScene']> {
|
|
16
|
-
if (!input) throw new Error('Input should not be void');
|
|
17
|
-
console.log('Evolution.Service.getScene', input);
|
|
18
|
-
|
|
19
|
-
let data = {};
|
|
20
|
-
|
|
21
|
-
if (input.data.applicationId === '668e4e805f9a03927caf883b') {
|
|
22
|
-
data = {
|
|
23
|
-
...data,
|
|
24
|
-
objects: [
|
|
25
|
-
{
|
|
26
|
-
id: 'adsad',
|
|
27
|
-
file: 'asdasdas.fbx',
|
|
28
|
-
position: {
|
|
29
|
-
x: 1000,
|
|
30
|
-
y: 1000,
|
|
31
|
-
z: 1000,
|
|
32
|
-
},
|
|
33
|
-
},
|
|
34
|
-
] as Arken.Core.Types.Object,
|
|
35
|
-
};
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
return data;
|
|
39
|
-
}
|
|
40
|
-
}
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import type { RouterContext, RouterInput, RouterOutput } from './oasis.types';
|
|
2
|
-
import { getFilter } from '@arken/node/util/api';
|
|
3
|
-
import { ARXError } from '@arken/node/util/rpc';
|
|
4
|
-
import * as Arken from '@arken/node';
|
|
5
|
-
|
|
6
|
-
export class Service {
|
|
7
|
-
async getPatrons(input: RouterInput['getPatrons'], ctx: RouterContext): Promise<RouterOutput['getPatrons']> {
|
|
8
|
-
console.log('Oasis.Service.getPatrons', input);
|
|
9
|
-
|
|
10
|
-
const cubes = await ctx.app.model.Item.aggregate([
|
|
11
|
-
{ $match: { name: "Founder's Cube" } },
|
|
12
|
-
{ $sort: { quantity: -1 } },
|
|
13
|
-
{ $limit: 15 },
|
|
14
|
-
{
|
|
15
|
-
$lookup: {
|
|
16
|
-
from: 'Character',
|
|
17
|
-
localField: 'characterId',
|
|
18
|
-
foreignField: '_id',
|
|
19
|
-
as: 'character',
|
|
20
|
-
},
|
|
21
|
-
},
|
|
22
|
-
{ $unwind: '$character' },
|
|
23
|
-
{
|
|
24
|
-
$lookup: {
|
|
25
|
-
from: 'Profile',
|
|
26
|
-
localField: 'character.profileId',
|
|
27
|
-
foreignField: '_id',
|
|
28
|
-
as: 'character.profile',
|
|
29
|
-
},
|
|
30
|
-
},
|
|
31
|
-
{ $unwind: '$character.profile' },
|
|
32
|
-
]);
|
|
33
|
-
console.log(cubes);
|
|
34
|
-
const profiles = cubes.map((ticket: any) => ticket.character?.profile);
|
|
35
|
-
|
|
36
|
-
return profiles as Arken.Profile.Types.Profile[];
|
|
37
|
-
}
|
|
38
|
-
}
|