@xmobitea/gn-server 2.0.2 → 2.0.4
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/dist/GN-app-api/service/GenericService.d.ts +1 -1
- package/dist/GN-app-api/service/IGenericService.d.ts +2 -2
- package/dist/index.d.ts +130 -26
- package/dist/index.js +419 -119
- package/gn.sh +28 -19
- package/package.json +1 -1
|
@@ -2,7 +2,7 @@ import { GNHashtable } from "./../../GN-common/common/GNData";
|
|
|
2
2
|
import { IGenericService } from "./IGenericService";
|
|
3
3
|
export declare class GenericService implements IGenericService {
|
|
4
4
|
verifyGenericService(serviceName: string, serviceData: GNHashtable): Promise<{
|
|
5
|
-
status:
|
|
5
|
+
status: "Ok" | "ServiceNotFound" | "VerifyError";
|
|
6
6
|
serviceId: string;
|
|
7
7
|
someDatas?: any;
|
|
8
8
|
error?: string;
|
|
@@ -2,7 +2,7 @@ import { GNHashtable } from "./../../GN-common/common/GNData";
|
|
|
2
2
|
import { Constructor } from "./IRequestConverterService";
|
|
3
3
|
export interface IGenericService {
|
|
4
4
|
verifyGenericService(serviceName: string, serviceData: GNHashtable): Promise<{
|
|
5
|
-
status:
|
|
5
|
+
status: "Ok" | "ServiceNotFound" | "VerifyError";
|
|
6
6
|
serviceId: string;
|
|
7
7
|
someDatas?: any;
|
|
8
8
|
error?: string;
|
|
@@ -11,7 +11,7 @@ export interface IGenericService {
|
|
|
11
11
|
export interface IGenericServiceHandler {
|
|
12
12
|
getServiceName(): string;
|
|
13
13
|
handle(serviceData: GNHashtable): Promise<{
|
|
14
|
-
status:
|
|
14
|
+
status: "Ok" | "ServiceNotFound" | "VerifyError";
|
|
15
15
|
serviceId: string;
|
|
16
16
|
someDatas?: any;
|
|
17
17
|
error?: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -6,8 +6,8 @@ import { AnalyticsService } from "./GN-app-api/service/AnalyticsService";
|
|
|
6
6
|
export { AnalyticsService };
|
|
7
7
|
import { AppleService } from "./GN-app-api/service/AppleService";
|
|
8
8
|
export { AppleService };
|
|
9
|
-
import { PostEventCallbackService } from "./GN-app-api/service/EventCallbackService";
|
|
10
|
-
export { PostEventCallbackService
|
|
9
|
+
import { PostEventCallbackService, PreEventCallbackService } from "./GN-app-api/service/EventCallbackService";
|
|
10
|
+
export { PostEventCallbackService, PreEventCallbackService };
|
|
11
11
|
import { FacebookService } from "./GN-app-api/service/FacebookService";
|
|
12
12
|
export { FacebookService };
|
|
13
13
|
import { GenericService } from "./GN-app-api/service/GenericService";
|
|
@@ -18,8 +18,8 @@ import { IAnalyticsService } from "./GN-app-api/service/IAnalyticsService";
|
|
|
18
18
|
export { IAnalyticsService };
|
|
19
19
|
import { IAppleService } from "./GN-app-api/service/IAppleService";
|
|
20
20
|
export { IAppleService };
|
|
21
|
-
import { IPostEventCallbackService } from "./GN-app-api/service/IEventCallbackService";
|
|
22
|
-
export { IPostEventCallbackService
|
|
21
|
+
import { IPostEventCallbackService, OnPostCallbackFunction, OnPreCallbackFunction, IPreEventCallbackService } from "./GN-app-api/service/IEventCallbackService";
|
|
22
|
+
export { IPostEventCallbackService, OnPostCallbackFunction, OnPreCallbackFunction, IPreEventCallbackService };
|
|
23
23
|
import { IFacebookService } from "./GN-app-api/service/IFacebookService";
|
|
24
24
|
export { IFacebookService };
|
|
25
25
|
import { IGenericService, IGenericServiceHandler } from "./GN-app-api/service/IGenericService";
|
|
@@ -52,6 +52,10 @@ import { InvalidMemberType } from "./GN-common/constant/enumType/InvalidMemberTy
|
|
|
52
52
|
export { InvalidMemberType };
|
|
53
53
|
import { ItemType } from "./GN-common/constant/enumType/ItemType";
|
|
54
54
|
export { ItemType };
|
|
55
|
+
import { MatchmakingMemberStatus } from "./GN-common/constant/enumType/MatchmakingMemberStatus";
|
|
56
|
+
export { MatchmakingMemberStatus };
|
|
57
|
+
import { MatchmakingTicketStatus } from "./GN-common/constant/enumType/MatchmakingTicketStatus";
|
|
58
|
+
export { MatchmakingTicketStatus };
|
|
55
59
|
import { OwnerType } from "./GN-common/constant/enumType/OwnerType";
|
|
56
60
|
export { OwnerType };
|
|
57
61
|
import { PermissionDataItem } from "./GN-common/constant/enumType/PermissionDataItem";
|
|
@@ -92,14 +96,16 @@ import { OperationResponse } from "./GN-common/entity/operationResponse/Operatio
|
|
|
92
96
|
export { OperationResponse };
|
|
93
97
|
import { AuthInfo } from "./GN-common/entity/AuthInfo";
|
|
94
98
|
export { AuthInfo };
|
|
95
|
-
import { DataMember } from "./GN-common/entity/DataMember";
|
|
96
|
-
export { DataMember };
|
|
99
|
+
import { DataMember, StringDataMember, GNHashtableDataMember, GNArrayDataMember, BooleanDataMember, NumberDataMember, GNFieldDataType } from "./GN-common/entity/DataMember";
|
|
100
|
+
export { DataMember, StringDataMember, GNHashtableDataMember, GNArrayDataMember, BooleanDataMember, NumberDataMember, GNFieldDataType };
|
|
97
101
|
import { AbstractConstructor, FieldDataType, GNObjectFieldMetadata, GNObjectMetadata } from "./GN-common/entity/GNMetadata";
|
|
98
102
|
export { AbstractConstructor, FieldDataType, GNObjectFieldMetadata, GNObjectMetadata };
|
|
99
103
|
import { InvalidMember } from "./GN-common/entity/InvalidMember";
|
|
100
104
|
export { InvalidMember };
|
|
101
105
|
import { SecretInfo } from "./GN-common/entity/SecretInfo";
|
|
102
106
|
export { SecretInfo };
|
|
107
|
+
import { TokenPayload } from "./GN-common/entity/TokenPayload";
|
|
108
|
+
export { TokenPayload };
|
|
103
109
|
import { CodeHelper } from "./GN-common/helper/CodeHelper";
|
|
104
110
|
export { CodeHelper };
|
|
105
111
|
import { DisplayNameUtility } from "./GN-common/helper/DisplayNameUtility";
|
|
@@ -120,6 +126,96 @@ import { xConfigItem } from "./GN-library/xconfig/lib/entity/xConfigItem";
|
|
|
120
126
|
export { xConfigItem };
|
|
121
127
|
import { xConfig } from "./GN-library/xconfig/lib/xConfig";
|
|
122
128
|
export { xConfig };
|
|
129
|
+
import { CharacterPlayerFindOptions } from "./GN-library/xdatabase/lib/entity/pro/findOptions/CharacterPlayerFindOptions";
|
|
130
|
+
export { CharacterPlayerFindOptions };
|
|
131
|
+
import { GamePlayerFindOptions } from "./GN-library/xdatabase/lib/entity/pro/findOptions/GamePlayerFindOptions";
|
|
132
|
+
export { GamePlayerFindOptions };
|
|
133
|
+
import { GroupFindOptions } from "./GN-library/xdatabase/lib/entity/pro/findOptions/GroupFindOptions";
|
|
134
|
+
export { GroupFindOptions };
|
|
135
|
+
import { InventoryFindOptions } from "./GN-library/xdatabase/lib/entity/pro/findOptions/InventoryFindOptions";
|
|
136
|
+
export { InventoryFindOptions };
|
|
137
|
+
import { MasterPlayerFindOptions } from "./GN-library/xdatabase/lib/entity/pro/findOptions/MasterPlayerFindOptions";
|
|
138
|
+
export { MasterPlayerFindOptions };
|
|
139
|
+
import { StoreInventoryFindOptions } from "./GN-library/xdatabase/lib/entity/pro/findOptions/StoreInventoryFindOptions";
|
|
140
|
+
export { StoreInventoryFindOptions };
|
|
141
|
+
import { GameItem } from "./GN-library/xdatabase/lib/entity/pro/masterAdmin/GameItem";
|
|
142
|
+
export { GameItem };
|
|
143
|
+
import { GameSettings } from "./GN-library/xdatabase/lib/entity/pro/masterAdmin/GameSettings";
|
|
144
|
+
export { GameSettings };
|
|
145
|
+
import { MasterAdminMongoObject } from "./GN-library/xdatabase/lib/entity/pro/masterAdmin/MasterAdminMongoObject";
|
|
146
|
+
export { MasterAdminMongoObject };
|
|
147
|
+
import { MasterAdminPlayer } from "./GN-library/xdatabase/lib/entity/pro/masterAdmin/MasterAdminPlayer";
|
|
148
|
+
export { MasterAdminPlayer };
|
|
149
|
+
import { MasterGameSettings } from "./GN-library/xdatabase/lib/entity/pro/masterAdmin/MasterGameSettings";
|
|
150
|
+
export { MasterGameSettings };
|
|
151
|
+
import { SecretInfoItem } from "./GN-library/xdatabase/lib/entity/pro/masterAdmin/SecretInfoItem";
|
|
152
|
+
export { SecretInfoItem };
|
|
153
|
+
import { DataValueType } from "./GN-library/xdatabase/lib/entity/pro/type/DataValueType";
|
|
154
|
+
export { DataValueType };
|
|
155
|
+
import { AvatarItem } from "./GN-library/xdatabase/lib/entity/pro/AvatarItem";
|
|
156
|
+
export { AvatarItem };
|
|
157
|
+
import { BanItem } from "./GN-library/xdatabase/lib/entity/pro/BanItem";
|
|
158
|
+
export { BanItem };
|
|
159
|
+
import { CharacterItem } from "./GN-library/xdatabase/lib/entity/pro/CharacterItem";
|
|
160
|
+
export { CharacterItem };
|
|
161
|
+
import { CharacterPlayer } from "./GN-library/xdatabase/lib/entity/pro/CharacterPlayer";
|
|
162
|
+
export { CharacterPlayer };
|
|
163
|
+
import { ChatMessage } from "./GN-library/xdatabase/lib/entity/pro/ChatMessage";
|
|
164
|
+
export { ChatMessage };
|
|
165
|
+
import { CurrencyItem } from "./GN-library/xdatabase/lib/entity/pro/CurrencyItem";
|
|
166
|
+
export { CurrencyItem };
|
|
167
|
+
import { DataItem } from "./GN-library/xdatabase/lib/entity/pro/DataItem";
|
|
168
|
+
export { DataItem };
|
|
169
|
+
import { DataObjectBase } from "./GN-library/xdatabase/lib/entity/pro/DataObjectBase";
|
|
170
|
+
export { DataObjectBase };
|
|
171
|
+
import { ExternalItem } from "./GN-library/xdatabase/lib/entity/pro/ExternalItem";
|
|
172
|
+
export { ExternalItem };
|
|
173
|
+
import { FriendItem } from "./GN-library/xdatabase/lib/entity/pro/FriendItem";
|
|
174
|
+
export { FriendItem };
|
|
175
|
+
import { GamePlayer } from "./GN-library/xdatabase/lib/entity/pro/GamePlayer";
|
|
176
|
+
export { GamePlayer };
|
|
177
|
+
import { GamePlayerBase } from "./GN-library/xdatabase/lib/entity/pro/GamePlayerBase";
|
|
178
|
+
export { GamePlayerBase };
|
|
179
|
+
import { Group } from "./GN-library/xdatabase/lib/entity/pro/Group";
|
|
180
|
+
export { Group };
|
|
181
|
+
import { GroupItem } from "./GN-library/xdatabase/lib/entity/pro/GroupItem";
|
|
182
|
+
export { GroupItem };
|
|
183
|
+
import { Inventory } from "./GN-library/xdatabase/lib/entity/pro/Inventory";
|
|
184
|
+
export { Inventory };
|
|
185
|
+
import { InventoryItem } from "./GN-library/xdatabase/lib/entity/pro/InventoryItem";
|
|
186
|
+
export { InventoryItem };
|
|
187
|
+
import { MasterPlayer } from "./GN-library/xdatabase/lib/entity/pro/MasterPlayer";
|
|
188
|
+
export { MasterPlayer };
|
|
189
|
+
import { Match } from "./GN-library/xdatabase/lib/entity/pro/Match";
|
|
190
|
+
export { Match };
|
|
191
|
+
import { MatchmakingTicket } from "./GN-library/xdatabase/lib/entity/pro/MatchmakingTicket";
|
|
192
|
+
export { MatchmakingTicket };
|
|
193
|
+
import { MatchmakingTicketMember } from "./GN-library/xdatabase/lib/entity/pro/MatchmakingTicketMember";
|
|
194
|
+
export { MatchmakingTicketMember };
|
|
195
|
+
import { MatchMember } from "./GN-library/xdatabase/lib/entity/pro/MatchMember";
|
|
196
|
+
export { MatchMember };
|
|
197
|
+
import { MemberItem } from "./GN-library/xdatabase/lib/entity/pro/MemberItem";
|
|
198
|
+
export { MemberItem };
|
|
199
|
+
import { MongoObject } from "./GN-library/xdatabase/lib/entity/pro/MongoObject";
|
|
200
|
+
export { MongoObject };
|
|
201
|
+
import { OwnerItem } from "./GN-library/xdatabase/lib/entity/pro/OwnerItem";
|
|
202
|
+
export { OwnerItem };
|
|
203
|
+
import { PlayerBase } from "./GN-library/xdatabase/lib/entity/pro/PlayerBase";
|
|
204
|
+
export { PlayerBase };
|
|
205
|
+
import { RemoveStatusItem } from "./GN-library/xdatabase/lib/entity/pro/RemoveStatusItem";
|
|
206
|
+
export { RemoveStatusItem };
|
|
207
|
+
import { ServerDetail } from "./GN-library/xdatabase/lib/entity/pro/ServerDetail";
|
|
208
|
+
export { ServerDetail };
|
|
209
|
+
import { StatisticsItem } from "./GN-library/xdatabase/lib/entity/pro/StatisticsItem";
|
|
210
|
+
export { StatisticsItem };
|
|
211
|
+
import { StoreInventory } from "./GN-library/xdatabase/lib/entity/pro/StoreInventory";
|
|
212
|
+
export { StoreInventory };
|
|
213
|
+
import { TradeInventory } from "./GN-library/xdatabase/lib/entity/pro/TradeInventory";
|
|
214
|
+
export { TradeInventory };
|
|
215
|
+
import { UploadFileInfo } from "./GN-library/xdatabase/lib/entity/pro/UploadFileInfo";
|
|
216
|
+
export { UploadFileInfo };
|
|
217
|
+
import { xDatabase } from "./GN-library/xdatabase/lib/xDatabase";
|
|
218
|
+
export { xDatabase };
|
|
123
219
|
import { xDatetime } from "./GN-library/xdatetime/lib/xDatetime";
|
|
124
220
|
export { xDatetime };
|
|
125
221
|
import { Debug } from "./GN-library/xdebug/lib/xDebug";
|
|
@@ -142,8 +238,6 @@ import { xGamePlayerSettings } from "./GN-library/xsettings/lib/entity/xGamePlay
|
|
|
142
238
|
export { xGamePlayerSettings };
|
|
143
239
|
import { xGameSettings } from "./GN-library/xsettings/lib/entity/xGameSettings";
|
|
144
240
|
export { xGameSettings };
|
|
145
|
-
import { xMatchmakingQueueSettings } from "./GN-library/xsettings/lib/entity/xMatchmakingQueueSettings";
|
|
146
|
-
export { xMatchmakingQueueSettings };
|
|
147
241
|
import { xGenericServiceSettings } from "./GN-library/xsettings/lib/entity/xGenericServiceSettings";
|
|
148
242
|
export { xGenericServiceSettings };
|
|
149
243
|
import { xGroupCatalogSettings } from "./GN-library/xsettings/lib/entity/xGroupCatalogSettings";
|
|
@@ -156,6 +250,8 @@ import { xItemCatalogSettings } from "./GN-library/xsettings/lib/entity/xItemCat
|
|
|
156
250
|
export { xItemCatalogSettings };
|
|
157
251
|
import { xMasterPlayerSettings } from "./GN-library/xsettings/lib/entity/xMasterPlayerSettings";
|
|
158
252
|
export { xMasterPlayerSettings };
|
|
253
|
+
import { xMatchmakingQueueSettings } from "./GN-library/xsettings/lib/entity/xMatchmakingQueueSettings";
|
|
254
|
+
export { xMatchmakingQueueSettings };
|
|
159
255
|
import { xStatisticsAggregationMethod } from "./GN-library/xsettings/lib/entity/xStatisticsAggregationMethod";
|
|
160
256
|
export { xStatisticsAggregationMethod };
|
|
161
257
|
import { xStatisticsSettings } from "./GN-library/xsettings/lib/entity/xStatisticsSettings";
|
|
@@ -166,16 +262,20 @@ import { xThirtPartySettings } from "./GN-library/xsettings/lib/entity/xThirtPar
|
|
|
166
262
|
export { xThirtPartySettings };
|
|
167
263
|
import { xGNSettings } from "./GN-library/xsettings/lib/xGNSettings";
|
|
168
264
|
export { xGNSettings };
|
|
169
|
-
import {
|
|
170
|
-
export {
|
|
171
|
-
import {
|
|
172
|
-
export {
|
|
173
|
-
import {
|
|
174
|
-
export {
|
|
175
|
-
import {
|
|
176
|
-
export {
|
|
177
|
-
import {
|
|
178
|
-
export {
|
|
265
|
+
import { AntiDdosMiddleware } from "./GN-startup/middleware/AntiDdosMiddleware";
|
|
266
|
+
export { AntiDdosMiddleware };
|
|
267
|
+
import { ApiMiddleware } from "./GN-startup/middleware/ApiMiddleware";
|
|
268
|
+
export { ApiMiddleware };
|
|
269
|
+
import { UploadFileMiddleware } from "./GN-startup/middleware/UploadFileMiddleware";
|
|
270
|
+
export { UploadFileMiddleware };
|
|
271
|
+
import { AdminAppHandler } from "./GN-startup/routes/AdminAppHandler";
|
|
272
|
+
export { AdminAppHandler };
|
|
273
|
+
import { HttpAppHandler } from "./GN-startup/routes/HttpAppHandler";
|
|
274
|
+
export { HttpAppHandler };
|
|
275
|
+
import { SocketAppHandler } from "./GN-startup/routes/SocketAppHandler";
|
|
276
|
+
export { SocketAppHandler };
|
|
277
|
+
import { UploadFileHandler } from "./GN-startup/routes/UploadFileHandler";
|
|
278
|
+
export { UploadFileHandler };
|
|
179
279
|
import { ApplicationSettings } from "./GN-startup/settings/ApplicationSettings";
|
|
180
280
|
export { ApplicationSettings };
|
|
181
281
|
import { DatabaseSettings } from "./GN-startup/settings/DatabaseSettings";
|
|
@@ -194,11 +294,15 @@ import { SocketAppSettings } from "./GN-startup/settings/SocketAppSettings";
|
|
|
194
294
|
export { SocketAppSettings };
|
|
195
295
|
import { UploadFileSettings } from "./GN-startup/settings/UploadFileSettings";
|
|
196
296
|
export { UploadFileSettings };
|
|
197
|
-
import {
|
|
198
|
-
export {
|
|
199
|
-
import {
|
|
200
|
-
export {
|
|
201
|
-
import {
|
|
202
|
-
export {
|
|
203
|
-
import {
|
|
204
|
-
export {
|
|
297
|
+
import { DefaultApplicationStartup } from "./GN-startup/DefaultApplicationStartup";
|
|
298
|
+
export { DefaultApplicationStartup };
|
|
299
|
+
import { HttpApp } from "./GN-startup/HttpApp";
|
|
300
|
+
export { HttpApp };
|
|
301
|
+
import { ServerApplication } from "./GN-startup/ServerApplication";
|
|
302
|
+
export { ServerApplication };
|
|
303
|
+
import { ServerApplicationStartup } from "./GN-startup/ServerApplicationStartup";
|
|
304
|
+
export { ServerApplicationStartup };
|
|
305
|
+
import { SocketApp } from "./GN-startup/SocketApp";
|
|
306
|
+
export { SocketApp };
|
|
307
|
+
import { GNServer } from "./GNServer";
|
|
308
|
+
export { GNServer };
|