@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.
Files changed (124) hide show
  1. package/.rush/temp/shrinkwrap-deps.json +537 -56
  2. package/area/area.models.ts +15 -0
  3. package/area/area.router.ts +74 -0
  4. package/area/area.schema.ts +22 -0
  5. package/area/area.types.ts +26 -0
  6. package/area/index.ts +5 -0
  7. package/asset/asset.models.ts +59 -0
  8. package/asset/asset.router.ts +55 -0
  9. package/asset/asset.schema.ts +27 -0
  10. package/asset/asset.types.ts +22 -0
  11. package/asset/index.ts +5 -0
  12. package/chain/chain.models.ts +50 -0
  13. package/chain/chain.router.ts +104 -0
  14. package/chain/chain.schema.ts +52 -0
  15. package/chain/chain.types.ts +24 -0
  16. package/chain/index.ts +5 -0
  17. package/character/character.models.ts +174 -0
  18. package/character/character.router.ts +314 -0
  19. package/character/character.schema.ts +147 -0
  20. package/character/character.types.ts +64 -0
  21. package/character/index.ts +5 -0
  22. package/chat/chat.models.ts +43 -0
  23. package/chat/chat.router.ts +67 -0
  24. package/chat/chat.schema.ts +36 -0
  25. package/chat/chat.types.ts +20 -0
  26. package/chat/index.ts +5 -0
  27. package/collection/collection.models.ts +76 -0
  28. package/collection/collection.router.ts +91 -0
  29. package/collection/collection.schema.ts +90 -0
  30. package/collection/collection.types.ts +36 -0
  31. package/collection/index.ts +5 -0
  32. package/core/core.models.ts +1380 -0
  33. package/core/core.router.ts +1781 -0
  34. package/core/core.schema.ts +847 -0
  35. package/core/core.types.ts +340 -0
  36. package/core/index.ts +5 -0
  37. package/{src/modules/evolution → evolution}/evolution.models.ts +1 -1
  38. package/{src/modules/evolution → evolution}/evolution.router.ts +5 -5
  39. package/{src/modules/evolution → evolution}/evolution.types.ts +1 -1
  40. package/game/game.models.ts +53 -0
  41. package/game/game.router.ts +110 -0
  42. package/game/game.schema.ts +23 -0
  43. package/game/game.types.ts +28 -0
  44. package/game/index.ts +5 -0
  45. package/index.ts +59 -0
  46. package/{src/modules/infinite → infinite}/infinite.models.ts +1 -1
  47. package/{src/modules/infinite → infinite}/infinite.router.ts +5 -5
  48. package/{src/modules/infinite → infinite}/infinite.types.ts +1 -1
  49. package/interface/index.ts +5 -0
  50. package/interface/interface.canonicalize.ts +279 -0
  51. package/interface/interface.models.ts +40 -0
  52. package/interface/interface.router.ts +175 -0
  53. package/interface/interface.schema.ts +59 -0
  54. package/interface/interface.types.ts +25 -0
  55. package/{src/modules/isles → isles}/isles.models.ts +1 -1
  56. package/{src/modules/isles → isles}/isles.router.ts +5 -5
  57. package/{src/modules/isles → isles}/isles.types.ts +1 -1
  58. package/item/index.ts +5 -0
  59. package/item/item.models.ts +124 -0
  60. package/item/item.router.ts +103 -0
  61. package/item/item.schema.ts +120 -0
  62. package/item/item.types.ts +74 -0
  63. package/job/index.ts +5 -0
  64. package/job/job.models.ts +14 -0
  65. package/job/job.router.ts +44 -0
  66. package/job/job.schema.ts +9 -0
  67. package/job/job.types.ts +23 -0
  68. package/market/index.ts +5 -0
  69. package/market/market.models.ts +113 -0
  70. package/market/market.router.ts +73 -0
  71. package/market/market.schema.ts +140 -0
  72. package/market/market.types.ts +56 -0
  73. package/{src/modules/oasis → oasis}/oasis.models.ts +1 -1
  74. package/{src/modules/oasis → oasis}/oasis.router.ts +1 -1
  75. package/{src/modules/oasis → oasis}/oasis.types.ts +1 -1
  76. package/package.json +12 -14
  77. package/product/index.ts +5 -0
  78. package/product/product.models.ts +166 -0
  79. package/product/product.router.ts +93 -0
  80. package/product/product.schema.ts +149 -0
  81. package/product/product.types.ts +33 -0
  82. package/profile/index.ts +5 -0
  83. package/profile/profile.models.ts +214 -0
  84. package/profile/profile.router.ts +72 -0
  85. package/profile/profile.schema.ts +156 -0
  86. package/profile/profile.types.ts +22 -0
  87. package/raffle/index.ts +5 -0
  88. package/raffle/raffle.models.ts +44 -0
  89. package/raffle/raffle.router.ts +90 -0
  90. package/raffle/raffle.schema.ts +32 -0
  91. package/raffle/raffle.types.ts +30 -0
  92. package/{src/router.ts → router.ts} +22 -28
  93. package/schema.ts +321 -0
  94. package/skill/index.ts +5 -0
  95. package/skill/skill.models.ts +16 -0
  96. package/skill/skill.router.ts +201 -0
  97. package/skill/skill.schema.ts +40 -0
  98. package/skill/skill.types.ts +33 -0
  99. package/{src/modules/trek → trek}/trek.router.ts +1 -1
  100. package/types.ts +273 -0
  101. package/video/index.ts +5 -0
  102. package/video/video.models.ts +25 -0
  103. package/video/video.router.ts +143 -0
  104. package/video/video.schema.ts +46 -0
  105. package/video/video.types.ts +33 -0
  106. package/src/index.ts +0 -22
  107. package/src/modules/evolution/evolution.service.ts +0 -2000
  108. package/src/modules/infinite/infinite.service.ts +0 -40
  109. package/src/modules/isles/isles.service.ts +0 -40
  110. package/src/modules/oasis/oasis.service.ts +0 -38
  111. package/src/modules/trek/trek.service.ts +0 -1031
  112. package/src/types.ts +0 -106
  113. /package/{src/modules/evolution → evolution}/evolution.schema.ts +0 -0
  114. /package/{src/modules/evolution → evolution}/index.ts +0 -0
  115. /package/{src/modules/infinite → infinite}/index.ts +0 -0
  116. /package/{src/modules/infinite → infinite}/infinite.schema.ts +0 -0
  117. /package/{src/modules/isles → isles}/index.ts +0 -0
  118. /package/{src/modules/isles → isles}/isles.schema.ts +0 -0
  119. /package/{src/modules/oasis → oasis}/index.ts +0 -0
  120. /package/{src/modules/oasis → oasis}/oasis.schema.ts +0 -0
  121. /package/{src/modules/trek → trek}/index.ts +0 -0
  122. /package/{src/modules/trek → trek}/trek.models.ts +0 -0
  123. /package/{src/modules/trek → trek}/trek.schema.ts +0 -0
  124. /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