@arken/seer-protocol 0.1.0 → 0.1.1

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.
Files changed (41) hide show
  1. package/{src/modules/evolution → evolution}/evolution.models.ts +1 -1
  2. package/{src/modules/evolution → evolution}/evolution.router.ts +9 -9
  3. package/evolution/evolution.schema.ts +1 -0
  4. package/{src/modules/evolution → evolution}/evolution.types.ts +1 -1
  5. package/{src/index.ts → index.ts} +2 -2
  6. package/{src/modules/infinite → infinite}/infinite.models.ts +1 -1
  7. package/{src/modules/infinite → infinite}/infinite.router.ts +9 -9
  8. package/infinite/infinite.schema.ts +1 -0
  9. package/{src/modules/infinite → infinite}/infinite.types.ts +1 -1
  10. package/{src/modules/isles → isles}/isles.models.ts +1 -1
  11. package/{src/modules/isles → isles}/isles.router.ts +9 -9
  12. package/isles/isles.schema.ts +1 -0
  13. package/{src/modules/isles → isles}/isles.types.ts +1 -1
  14. package/{src/modules/oasis → oasis}/oasis.models.ts +1 -1
  15. package/{src/modules/oasis → oasis}/oasis.router.ts +2 -2
  16. package/oasis/oasis.schema.ts +1 -0
  17. package/{src/modules/oasis → oasis}/oasis.types.ts +1 -1
  18. package/package.json +3 -12
  19. package/{src/router.ts → router.ts} +23 -23
  20. package/trek/trek.models.ts +1 -0
  21. package/{src/modules/trek → trek}/trek.router.ts +1 -1
  22. package/trek/trek.schema.ts +1 -0
  23. package/trek/trek.types.ts +1 -0
  24. package/src/modules/evolution/evolution.schema.ts +0 -1
  25. package/src/modules/evolution/evolution.service.ts +0 -2000
  26. package/src/modules/infinite/infinite.schema.ts +0 -1
  27. package/src/modules/infinite/infinite.service.ts +0 -40
  28. package/src/modules/isles/isles.schema.ts +0 -1
  29. package/src/modules/isles/isles.service.ts +0 -40
  30. package/src/modules/oasis/oasis.schema.ts +0 -1
  31. package/src/modules/oasis/oasis.service.ts +0 -38
  32. package/src/modules/trek/trek.models.ts +0 -1
  33. package/src/modules/trek/trek.schema.ts +0 -1
  34. package/src/modules/trek/trek.service.ts +0 -1031
  35. package/src/modules/trek/trek.types.ts +0 -1
  36. /package/{src/modules/evolution → evolution}/index.ts +0 -0
  37. /package/{src/modules/infinite → infinite}/index.ts +0 -0
  38. /package/{src/modules/isles → isles}/index.ts +0 -0
  39. /package/{src/modules/oasis → oasis}/index.ts +0 -0
  40. /package/{src/modules/trek → trek}/index.ts +0 -0
  41. /package/{src/types.ts → types.ts} +0 -0
@@ -1 +0,0 @@
1
- import { z, ObjectId, Entity } from '@arken/node/schema';
@@ -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 +0,0 @@
1
- import { z, ObjectId, Entity } from '@arken/node/schema';
@@ -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 +0,0 @@
1
- import { z, ObjectId, Entity } from '@arken/node/schema';
@@ -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
- }
@@ -1 +0,0 @@
1
- import { z, ObjectId, Entity } from '@arken/node/schema';
@@ -1 +0,0 @@
1
- import { z, ObjectId, Entity } from '@arken/node/schema';