@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
package/src/types.ts
DELETED
|
@@ -1,106 +0,0 @@
|
|
|
1
|
-
import * as Arken from '@arken/node';
|
|
2
|
-
import { Router, RouterInput, RouterOutput } from './router';
|
|
3
|
-
import * as Evolution from './modules/evolution';
|
|
4
|
-
import * as Infinite from './modules/infinite';
|
|
5
|
-
import * as Oasis from './modules/oasis';
|
|
6
|
-
import * as Trek from './modules/trek';
|
|
7
|
-
import type * as Types from './types';
|
|
8
|
-
|
|
9
|
-
export type { Router, RouterInput, RouterOutput };
|
|
10
|
-
|
|
11
|
-
export type ApplicationServiceType = Partial<{
|
|
12
|
-
Trek: Trek.Service;
|
|
13
|
-
Evolution: Evolution.Service;
|
|
14
|
-
Infinite: Infinite.Service;
|
|
15
|
-
Oasis: Oasis.Service;
|
|
16
|
-
}> &
|
|
17
|
-
Arken.ApplicationServiceType;
|
|
18
|
-
|
|
19
|
-
export type ApplicationModelType = Partial<Evolution.Types.Mappings & Infinite.Types.Mappings> &
|
|
20
|
-
Arken.ApplicationModelType;
|
|
21
|
-
|
|
22
|
-
export class Application {
|
|
23
|
-
router: Router;
|
|
24
|
-
service: ApplicationServiceType = {};
|
|
25
|
-
model: ApplicationModelType = {};
|
|
26
|
-
realms: Arken.Core.Types.Realm[] = [];
|
|
27
|
-
|
|
28
|
-
server: any;
|
|
29
|
-
http: any;
|
|
30
|
-
https: any;
|
|
31
|
-
isHttps: boolean;
|
|
32
|
-
cache: any;
|
|
33
|
-
db: any;
|
|
34
|
-
services: any;
|
|
35
|
-
applications: any;
|
|
36
|
-
application: any;
|
|
37
|
-
contracts: any;
|
|
38
|
-
contractInfo: any;
|
|
39
|
-
contractMetadata: any;
|
|
40
|
-
ethersProvider: any;
|
|
41
|
-
data: any;
|
|
42
|
-
signers: any;
|
|
43
|
-
filters: Record<string, any> = { applicationId: null };
|
|
44
|
-
|
|
45
|
-
// async getRealms(
|
|
46
|
-
// input: Types.RouterInput['getRealms'],
|
|
47
|
-
// ctx: Types.ServiceContext
|
|
48
|
-
// ): Promise<Types.RouterOutput['getRealms']> {
|
|
49
|
-
// throw new Error('Not implemented');
|
|
50
|
-
// }
|
|
51
|
-
|
|
52
|
-
// async updateRealm(
|
|
53
|
-
// input: Types.RouterInput['updateRealm'],
|
|
54
|
-
// ctx: Types.ServiceContext
|
|
55
|
-
// ): Promise<Types.RouterOutput['updateRealm']> {
|
|
56
|
-
// throw new Error('Not implemented');
|
|
57
|
-
// }
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
export type ApplicationType = typeof Application;
|
|
61
|
-
// export type Seer =
|
|
62
|
-
// export type Seer = {
|
|
63
|
-
// service: ApplicationServiceType;
|
|
64
|
-
// model: ApplicationModelType;
|
|
65
|
-
// realms: Arken.Core.Types.Realm[];
|
|
66
|
-
|
|
67
|
-
// server: any;
|
|
68
|
-
// http: any;
|
|
69
|
-
// https: any;
|
|
70
|
-
// isHttps: boolean;
|
|
71
|
-
// cache: any;
|
|
72
|
-
// db: any;
|
|
73
|
-
// services: any;
|
|
74
|
-
// applications: any;
|
|
75
|
-
// application: any;
|
|
76
|
-
// filters: Record<string, any>;
|
|
77
|
-
// contracts: any;
|
|
78
|
-
// contractInfo: any;
|
|
79
|
-
// contractMetadata: any;
|
|
80
|
-
// signers: any;
|
|
81
|
-
// };
|
|
82
|
-
|
|
83
|
-
export type RouterContext = {
|
|
84
|
-
app: Application;
|
|
85
|
-
} & Arken.RouterContext;
|
|
86
|
-
|
|
87
|
-
export interface Client {
|
|
88
|
-
id: string;
|
|
89
|
-
name: string;
|
|
90
|
-
ip: string;
|
|
91
|
-
socket: any;
|
|
92
|
-
endpoint: string;
|
|
93
|
-
ioCallbacks: any;
|
|
94
|
-
info: any;
|
|
95
|
-
lastReportedTime: number;
|
|
96
|
-
isMod: boolean;
|
|
97
|
-
isAdmin: boolean;
|
|
98
|
-
isSeer: boolean;
|
|
99
|
-
log: {
|
|
100
|
-
clientDisconnected: number;
|
|
101
|
-
};
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
export interface ServiceContext {
|
|
105
|
-
client: Client;
|
|
106
|
-
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|