@xmobitea/gn-server 2.0.2 → 2.0.3
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 +418 -118
- package/gn.sh +27 -18
- 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 };
|
package/dist/index.js
CHANGED
|
@@ -1479,11 +1479,15 @@ class LoginByGenericServiceRequestHandler extends LoginBaseRequestHandler_1.Logi
|
|
|
1479
1479
|
return operationResponse;
|
|
1480
1480
|
}
|
|
1481
1481
|
let serviceResponse = yield this.gnServer.getGenericService().verifyGenericService(request.serviceName, request.serviceData);
|
|
1482
|
-
if (serviceResponse == null || serviceResponse.status
|
|
1482
|
+
if (serviceResponse == null || serviceResponse.status == "ServiceNotFound") {
|
|
1483
1483
|
xDebug_1.Debug.log("service name error " + serviceResponse.error);
|
|
1484
1484
|
operationResponse.setParameter(ParameterCode_1.ParameterCode.ErrorCode, GNErrorCode_1.GNErrorCode.ServiceNameNotFound);
|
|
1485
1485
|
return operationResponse;
|
|
1486
1486
|
}
|
|
1487
|
+
if (!serviceResponse.serviceId || serviceResponse.status == "VerifyError") {
|
|
1488
|
+
operationResponse.setParameter(ParameterCode_1.ParameterCode.ErrorCode, GNErrorCode_1.GNErrorCode.AccountNotFound);
|
|
1489
|
+
return operationResponse;
|
|
1490
|
+
}
|
|
1487
1491
|
let serviceId = serviceResponse.serviceId;
|
|
1488
1492
|
let masterPlayerFindOptions = this.convertToMasterPlayerFindOptions(request.infoRequestParam);
|
|
1489
1493
|
let masterPlayer = yield this.gnServer.getDatabase().loadMasterPlayerByGenericServiceAsync(request.serviceName, serviceId, masterPlayerFindOptions);
|
|
@@ -1522,7 +1526,7 @@ exports.LoginByGenericServiceRequestHandler = LoginByGenericServiceRequestHandle
|
|
|
1522
1526
|
|
|
1523
1527
|
/***/ }),
|
|
1524
1528
|
|
|
1525
|
-
/***/
|
|
1529
|
+
/***/ 8888:
|
|
1526
1530
|
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
1527
1531
|
|
|
1528
1532
|
|
|
@@ -13677,7 +13681,7 @@ const GNParameterCode_1 = __webpack_require__(1252);
|
|
|
13677
13681
|
const GNData_1 = __webpack_require__(1136);
|
|
13678
13682
|
const GNErrorCode_1 = __webpack_require__(6464);
|
|
13679
13683
|
const RequestHandler_1 = __webpack_require__(9264);
|
|
13680
|
-
const MasterGameSettings_1 = __webpack_require__(
|
|
13684
|
+
const MasterGameSettings_1 = __webpack_require__(1012);
|
|
13681
13685
|
class GetMasterGameSettingsOperationRequest extends OperationRequest_1.OperationRequest {
|
|
13682
13686
|
isValidRequest() {
|
|
13683
13687
|
if (!super.isValidRequest())
|
|
@@ -19045,7 +19049,7 @@ const DataMember_1 = __webpack_require__(4628);
|
|
|
19045
19049
|
const GNParameterCode_1 = __webpack_require__(1252);
|
|
19046
19050
|
const GNErrorCode_1 = __webpack_require__(6464);
|
|
19047
19051
|
const RequestHandler_1 = __webpack_require__(9264);
|
|
19048
|
-
const MasterGameSettings_1 = __webpack_require__(
|
|
19052
|
+
const MasterGameSettings_1 = __webpack_require__(1012);
|
|
19049
19053
|
const ThirtPartyParam_1 = __webpack_require__(8416);
|
|
19050
19054
|
const MasterPlayerSettingsParam_1 = __webpack_require__(8036);
|
|
19051
19055
|
class SetMasterGameSettingsOperationRequest extends OperationRequest_1.OperationRequest {
|
|
@@ -24337,7 +24341,7 @@ exports.GetFriendStatisticsLeaderboardRequestHandler = GetFriendStatisticsLeader
|
|
|
24337
24341
|
|
|
24338
24342
|
/***/ }),
|
|
24339
24343
|
|
|
24340
|
-
/***/
|
|
24344
|
+
/***/ 5684:
|
|
24341
24345
|
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
24342
24346
|
|
|
24343
24347
|
|
|
@@ -39793,7 +39797,7 @@ exports.GetItemDataRequestHandler = GetItemDataRequestHandler;
|
|
|
39793
39797
|
|
|
39794
39798
|
/***/ }),
|
|
39795
39799
|
|
|
39796
|
-
/***/
|
|
39800
|
+
/***/ 2488:
|
|
39797
39801
|
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
39798
39802
|
|
|
39799
39803
|
|
|
@@ -46335,7 +46339,7 @@ const DataMember_1 = __webpack_require__(4628);
|
|
|
46335
46339
|
const GNParameterCode_1 = __webpack_require__(1252);
|
|
46336
46340
|
const GNErrorCode_1 = __webpack_require__(6464);
|
|
46337
46341
|
const MasterPlayerBaseRequestHandler_1 = __webpack_require__(9716);
|
|
46338
|
-
const InfoRequestParam_1 = __webpack_require__(
|
|
46342
|
+
const InfoRequestParam_1 = __webpack_require__(8632);
|
|
46339
46343
|
class GetPlayerInformationOperationRequest extends OperationRequest_1.OperationRequest {
|
|
46340
46344
|
isValidRequest() {
|
|
46341
46345
|
if (!super.isValidRequest())
|
|
@@ -46661,7 +46665,7 @@ const GNParameterCode_1 = __webpack_require__(1252);
|
|
|
46661
46665
|
const GNData_1 = __webpack_require__(1136);
|
|
46662
46666
|
const GNErrorCode_1 = __webpack_require__(6464);
|
|
46663
46667
|
const MasterPlayerBaseRequestHandler_1 = __webpack_require__(9716);
|
|
46664
|
-
const InfoRequestParam_1 = __webpack_require__(
|
|
46668
|
+
const InfoRequestParam_1 = __webpack_require__(8632);
|
|
46665
46669
|
class GetPlayersWithAppleOperationRequest extends OperationRequest_1.OperationRequest {
|
|
46666
46670
|
isValidRequest() {
|
|
46667
46671
|
if (!super.isValidRequest())
|
|
@@ -46812,7 +46816,7 @@ const GNParameterCode_1 = __webpack_require__(1252);
|
|
|
46812
46816
|
const GNData_1 = __webpack_require__(1136);
|
|
46813
46817
|
const GNErrorCode_1 = __webpack_require__(6464);
|
|
46814
46818
|
const MasterPlayerBaseRequestHandler_1 = __webpack_require__(9716);
|
|
46815
|
-
const InfoRequestParam_1 = __webpack_require__(
|
|
46819
|
+
const InfoRequestParam_1 = __webpack_require__(8632);
|
|
46816
46820
|
const DisplayNameUtility_1 = __webpack_require__(2784);
|
|
46817
46821
|
class GetPlayersWithDisplayNameOperationRequest extends OperationRequest_1.OperationRequest {
|
|
46818
46822
|
isValidRequest() {
|
|
@@ -46976,7 +46980,7 @@ const GNParameterCode_1 = __webpack_require__(1252);
|
|
|
46976
46980
|
const GNData_1 = __webpack_require__(1136);
|
|
46977
46981
|
const GNErrorCode_1 = __webpack_require__(6464);
|
|
46978
46982
|
const MasterPlayerBaseRequestHandler_1 = __webpack_require__(9716);
|
|
46979
|
-
const InfoRequestParam_1 = __webpack_require__(
|
|
46983
|
+
const InfoRequestParam_1 = __webpack_require__(8632);
|
|
46980
46984
|
class GetPlayersWithFacebookOperationRequest extends OperationRequest_1.OperationRequest {
|
|
46981
46985
|
isValidRequest() {
|
|
46982
46986
|
if (!super.isValidRequest())
|
|
@@ -47127,7 +47131,7 @@ const GNParameterCode_1 = __webpack_require__(1252);
|
|
|
47127
47131
|
const GNData_1 = __webpack_require__(1136);
|
|
47128
47132
|
const GNErrorCode_1 = __webpack_require__(6464);
|
|
47129
47133
|
const MasterPlayerBaseRequestHandler_1 = __webpack_require__(9716);
|
|
47130
|
-
const InfoRequestParam_1 = __webpack_require__(
|
|
47134
|
+
const InfoRequestParam_1 = __webpack_require__(8632);
|
|
47131
47135
|
class GetPlayersWithGenericServiceOperationRequest extends OperationRequest_1.OperationRequest {
|
|
47132
47136
|
isValidRequest() {
|
|
47133
47137
|
if (!super.isValidRequest())
|
|
@@ -47285,7 +47289,7 @@ const GNParameterCode_1 = __webpack_require__(1252);
|
|
|
47285
47289
|
const GNData_1 = __webpack_require__(1136);
|
|
47286
47290
|
const GNErrorCode_1 = __webpack_require__(6464);
|
|
47287
47291
|
const MasterPlayerBaseRequestHandler_1 = __webpack_require__(9716);
|
|
47288
|
-
const InfoRequestParam_1 = __webpack_require__(
|
|
47292
|
+
const InfoRequestParam_1 = __webpack_require__(8632);
|
|
47289
47293
|
class GetPlayersWithGoogleOperationRequest extends OperationRequest_1.OperationRequest {
|
|
47290
47294
|
isValidRequest() {
|
|
47291
47295
|
if (!super.isValidRequest())
|
|
@@ -47436,7 +47440,7 @@ const GNParameterCode_1 = __webpack_require__(1252);
|
|
|
47436
47440
|
const GNData_1 = __webpack_require__(1136);
|
|
47437
47441
|
const GNErrorCode_1 = __webpack_require__(6464);
|
|
47438
47442
|
const MasterPlayerBaseRequestHandler_1 = __webpack_require__(9716);
|
|
47439
|
-
const InfoRequestParam_1 = __webpack_require__(
|
|
47443
|
+
const InfoRequestParam_1 = __webpack_require__(8632);
|
|
47440
47444
|
class GetPlayersWithSegmentOperationRequest extends OperationRequest_1.OperationRequest {
|
|
47441
47445
|
isValidRequest() {
|
|
47442
47446
|
if (!super.isValidRequest())
|
|
@@ -47599,7 +47603,7 @@ const GNParameterCode_1 = __webpack_require__(1252);
|
|
|
47599
47603
|
const GNData_1 = __webpack_require__(1136);
|
|
47600
47604
|
const GNErrorCode_1 = __webpack_require__(6464);
|
|
47601
47605
|
const MasterPlayerBaseRequestHandler_1 = __webpack_require__(9716);
|
|
47602
|
-
const InfoRequestParam_1 = __webpack_require__(
|
|
47606
|
+
const InfoRequestParam_1 = __webpack_require__(8632);
|
|
47603
47607
|
class GetPlayersWithTagOperationRequest extends OperationRequest_1.OperationRequest {
|
|
47604
47608
|
isValidRequest() {
|
|
47605
47609
|
if (!super.isValidRequest())
|
|
@@ -47930,7 +47934,7 @@ const GNParameterCode_1 = __webpack_require__(1252);
|
|
|
47930
47934
|
const GNData_1 = __webpack_require__(1136);
|
|
47931
47935
|
const GNErrorCode_1 = __webpack_require__(6464);
|
|
47932
47936
|
const MasterPlayerBaseRequestHandler_1 = __webpack_require__(9716);
|
|
47933
|
-
const InfoRequestParam_1 = __webpack_require__(
|
|
47937
|
+
const InfoRequestParam_1 = __webpack_require__(8632);
|
|
47934
47938
|
class GetStatisticsLeaderboardAroundPlayerOperationRequest extends OperationRequest_1.OperationRequest {
|
|
47935
47939
|
isValidRequest() {
|
|
47936
47940
|
if (!super.isValidRequest())
|
|
@@ -48125,7 +48129,7 @@ const GNParameterCode_1 = __webpack_require__(1252);
|
|
|
48125
48129
|
const GNData_1 = __webpack_require__(1136);
|
|
48126
48130
|
const GNErrorCode_1 = __webpack_require__(6464);
|
|
48127
48131
|
const MasterPlayerBaseRequestHandler_1 = __webpack_require__(9716);
|
|
48128
|
-
const InfoRequestParam_1 = __webpack_require__(
|
|
48132
|
+
const InfoRequestParam_1 = __webpack_require__(8632);
|
|
48129
48133
|
const xDatetime_1 = __webpack_require__(1308);
|
|
48130
48134
|
class GetStatisticsLeaderboardOperationRequest extends OperationRequest_1.OperationRequest {
|
|
48131
48135
|
isValidRequest() {
|
|
@@ -49170,7 +49174,7 @@ exports.LinkAndroidDeviceIdRequestHandler = LinkAndroidDeviceIdRequestHandler;
|
|
|
49170
49174
|
|
|
49171
49175
|
/***/ }),
|
|
49172
49176
|
|
|
49173
|
-
/***/
|
|
49177
|
+
/***/ 1015:
|
|
49174
49178
|
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
49175
49179
|
|
|
49176
49180
|
|
|
@@ -50292,11 +50296,15 @@ class LinkGenericServiceRequestHandler extends MasterPlayerBaseRequestHandler_1.
|
|
|
50292
50296
|
return operationResponse;
|
|
50293
50297
|
}
|
|
50294
50298
|
let serviceResponse = yield this.gnServer.getGenericService().verifyGenericService(request.serviceName, request.serviceData);
|
|
50295
|
-
if (serviceResponse == null || serviceResponse.status
|
|
50299
|
+
if (serviceResponse == null || serviceResponse.status == "ServiceNotFound") {
|
|
50296
50300
|
xDebug_1.Debug.log("service name error " + serviceResponse.error);
|
|
50297
50301
|
operationResponse.setParameter(ParameterCode_1.ParameterCode.ErrorCode, GNErrorCode_1.GNErrorCode.ServiceNameNotFound);
|
|
50298
50302
|
return operationResponse;
|
|
50299
50303
|
}
|
|
50304
|
+
if (!serviceResponse.serviceId || serviceResponse.status == "VerifyError") {
|
|
50305
|
+
operationResponse.setParameter(ParameterCode_1.ParameterCode.ErrorCode, GNErrorCode_1.GNErrorCode.AccountNotFound);
|
|
50306
|
+
return operationResponse;
|
|
50307
|
+
}
|
|
50300
50308
|
let serviceId = serviceResponse.serviceId;
|
|
50301
50309
|
let otherMasterPlayer = yield this.gnServer.getDatabase().loadMasterPlayerByGenericServiceAsync(request.serviceName, serviceId);
|
|
50302
50310
|
if (otherMasterPlayer != null && otherMasterPlayer.getUserId() != masterPlayer.getUserId()) {
|
|
@@ -56806,7 +56814,7 @@ __decorate([
|
|
|
56806
56814
|
|
|
56807
56815
|
/***/ }),
|
|
56808
56816
|
|
|
56809
|
-
/***/
|
|
56817
|
+
/***/ 8632:
|
|
56810
56818
|
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
56811
56819
|
|
|
56812
56820
|
|
|
@@ -57038,10 +57046,10 @@ const ReturnCode_1 = __webpack_require__(8412);
|
|
|
57038
57046
|
const DataMember_1 = __webpack_require__(4628);
|
|
57039
57047
|
const GNParameterCode_1 = __webpack_require__(1252);
|
|
57040
57048
|
const GNErrorCode_1 = __webpack_require__(6464);
|
|
57041
|
-
const MatchmakingTicketStatus_1 = __webpack_require__(
|
|
57049
|
+
const MatchmakingTicketStatus_1 = __webpack_require__(3396);
|
|
57042
57050
|
const MatchmakingMemberStatus_1 = __webpack_require__(1824);
|
|
57043
57051
|
const MatchmakingTicket_1 = __webpack_require__(1648);
|
|
57044
|
-
const MultiplayerBaseRequestHandler_1 = __webpack_require__(
|
|
57052
|
+
const MultiplayerBaseRequestHandler_1 = __webpack_require__(1456);
|
|
57045
57053
|
class CancelAllMatchmakingTicketOperationRequest extends OperationRequest_1.OperationRequest {
|
|
57046
57054
|
isValidRequest() {
|
|
57047
57055
|
if (!super.isValidRequest())
|
|
@@ -57199,10 +57207,10 @@ const ReturnCode_1 = __webpack_require__(8412);
|
|
|
57199
57207
|
const DataMember_1 = __webpack_require__(4628);
|
|
57200
57208
|
const GNParameterCode_1 = __webpack_require__(1252);
|
|
57201
57209
|
const GNErrorCode_1 = __webpack_require__(6464);
|
|
57202
|
-
const MatchmakingTicketStatus_1 = __webpack_require__(
|
|
57210
|
+
const MatchmakingTicketStatus_1 = __webpack_require__(3396);
|
|
57203
57211
|
const MatchmakingMemberStatus_1 = __webpack_require__(1824);
|
|
57204
57212
|
const MatchmakingTicket_1 = __webpack_require__(1648);
|
|
57205
|
-
const MultiplayerBaseRequestHandler_1 = __webpack_require__(
|
|
57213
|
+
const MultiplayerBaseRequestHandler_1 = __webpack_require__(1456);
|
|
57206
57214
|
class CancelMatchmakingTicketOperationRequest extends OperationRequest_1.OperationRequest {
|
|
57207
57215
|
isValidRequest() {
|
|
57208
57216
|
if (!super.isValidRequest())
|
|
@@ -57362,13 +57370,13 @@ const ReturnCode_1 = __webpack_require__(8412);
|
|
|
57362
57370
|
const DataMember_1 = __webpack_require__(4628);
|
|
57363
57371
|
const GNParameterCode_1 = __webpack_require__(1252);
|
|
57364
57372
|
const GNErrorCode_1 = __webpack_require__(6464);
|
|
57365
|
-
const MatchmakingTicketStatus_1 = __webpack_require__(
|
|
57373
|
+
const MatchmakingTicketStatus_1 = __webpack_require__(3396);
|
|
57366
57374
|
const MatchmakingMemberStatus_1 = __webpack_require__(1824);
|
|
57367
57375
|
const MatchmakingTicket_1 = __webpack_require__(1648);
|
|
57368
57376
|
const GNData_1 = __webpack_require__(1136);
|
|
57369
57377
|
const StringUtility_1 = __webpack_require__(6416);
|
|
57370
57378
|
const xDatetime_1 = __webpack_require__(1308);
|
|
57371
|
-
const MultiplayerBaseRequestHandler_1 = __webpack_require__(
|
|
57379
|
+
const MultiplayerBaseRequestHandler_1 = __webpack_require__(1456);
|
|
57372
57380
|
class CreateMatchmakingTicketOperationRequest extends OperationRequest_1.OperationRequest {
|
|
57373
57381
|
isValidRequest() {
|
|
57374
57382
|
if (!super.isValidRequest())
|
|
@@ -57598,7 +57606,7 @@ const GNParameterCode_1 = __webpack_require__(1252);
|
|
|
57598
57606
|
const GNErrorCode_1 = __webpack_require__(6464);
|
|
57599
57607
|
const GNData_1 = __webpack_require__(1136);
|
|
57600
57608
|
const Match_1 = __webpack_require__(3484);
|
|
57601
|
-
const MultiplayerBaseRequestHandler_1 = __webpack_require__(
|
|
57609
|
+
const MultiplayerBaseRequestHandler_1 = __webpack_require__(1456);
|
|
57602
57610
|
class GetMatchOperationRequest extends OperationRequest_1.OperationRequest {
|
|
57603
57611
|
isValidRequest() {
|
|
57604
57612
|
if (!super.isValidRequest())
|
|
@@ -57782,10 +57790,10 @@ const ReturnCode_1 = __webpack_require__(8412);
|
|
|
57782
57790
|
const DataMember_1 = __webpack_require__(4628);
|
|
57783
57791
|
const GNParameterCode_1 = __webpack_require__(1252);
|
|
57784
57792
|
const GNErrorCode_1 = __webpack_require__(6464);
|
|
57785
|
-
const MatchmakingTicketStatus_1 = __webpack_require__(
|
|
57793
|
+
const MatchmakingTicketStatus_1 = __webpack_require__(3396);
|
|
57786
57794
|
const MatchmakingTicket_1 = __webpack_require__(1648);
|
|
57787
57795
|
const GNData_1 = __webpack_require__(1136);
|
|
57788
|
-
const MultiplayerBaseRequestHandler_1 = __webpack_require__(
|
|
57796
|
+
const MultiplayerBaseRequestHandler_1 = __webpack_require__(1456);
|
|
57789
57797
|
class GetMatchmakingTicketOperationRequest extends OperationRequest_1.OperationRequest {
|
|
57790
57798
|
isValidRequest() {
|
|
57791
57799
|
if (!super.isValidRequest())
|
|
@@ -57969,11 +57977,11 @@ const ReturnCode_1 = __webpack_require__(8412);
|
|
|
57969
57977
|
const DataMember_1 = __webpack_require__(4628);
|
|
57970
57978
|
const GNParameterCode_1 = __webpack_require__(1252);
|
|
57971
57979
|
const GNErrorCode_1 = __webpack_require__(6464);
|
|
57972
|
-
const MatchmakingTicketStatus_1 = __webpack_require__(
|
|
57980
|
+
const MatchmakingTicketStatus_1 = __webpack_require__(3396);
|
|
57973
57981
|
const MatchmakingMemberStatus_1 = __webpack_require__(1824);
|
|
57974
57982
|
const MatchmakingTicket_1 = __webpack_require__(1648);
|
|
57975
57983
|
const GNData_1 = __webpack_require__(1136);
|
|
57976
|
-
const MultiplayerBaseRequestHandler_1 = __webpack_require__(
|
|
57984
|
+
const MultiplayerBaseRequestHandler_1 = __webpack_require__(1456);
|
|
57977
57985
|
class JoinMatchmakingTicketOperationRequest extends OperationRequest_1.OperationRequest {
|
|
57978
57986
|
isValidRequest() {
|
|
57979
57987
|
if (!super.isValidRequest())
|
|
@@ -58169,10 +58177,10 @@ const ReturnCode_1 = __webpack_require__(8412);
|
|
|
58169
58177
|
const DataMember_1 = __webpack_require__(4628);
|
|
58170
58178
|
const GNParameterCode_1 = __webpack_require__(1252);
|
|
58171
58179
|
const GNErrorCode_1 = __webpack_require__(6464);
|
|
58172
|
-
const MatchmakingTicketStatus_1 = __webpack_require__(
|
|
58180
|
+
const MatchmakingTicketStatus_1 = __webpack_require__(3396);
|
|
58173
58181
|
const MatchmakingMemberStatus_1 = __webpack_require__(1824);
|
|
58174
58182
|
const MatchmakingTicket_1 = __webpack_require__(1648);
|
|
58175
|
-
const MultiplayerBaseRequestHandler_1 = __webpack_require__(
|
|
58183
|
+
const MultiplayerBaseRequestHandler_1 = __webpack_require__(1456);
|
|
58176
58184
|
class ListMatchmakingTicketsForPlayerOperationRequest extends OperationRequest_1.OperationRequest {
|
|
58177
58185
|
isValidRequest() {
|
|
58178
58186
|
if (!super.isValidRequest())
|
|
@@ -58305,7 +58313,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
58305
58313
|
};
|
|
58306
58314
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
58307
58315
|
exports.MatchmakingHandler = void 0;
|
|
58308
|
-
const MatchmakingTicketStatus_1 = __webpack_require__(
|
|
58316
|
+
const MatchmakingTicketStatus_1 = __webpack_require__(3396);
|
|
58309
58317
|
const StringUtility_1 = __webpack_require__(6416);
|
|
58310
58318
|
const MatchmakingTicket_1 = __webpack_require__(1648);
|
|
58311
58319
|
const xDatetime_1 = __webpack_require__(1308);
|
|
@@ -59003,7 +59011,7 @@ exports.MatchmakingHandler = MatchmakingHandler;
|
|
|
59003
59011
|
|
|
59004
59012
|
/***/ }),
|
|
59005
59013
|
|
|
59006
|
-
/***/
|
|
59014
|
+
/***/ 1456:
|
|
59007
59015
|
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
59008
59016
|
|
|
59009
59017
|
|
|
@@ -62659,7 +62667,7 @@ class GenericService {
|
|
|
62659
62667
|
let implementation = implementations.find(x => x.getServiceName() == serviceName);
|
|
62660
62668
|
if (implementation == null)
|
|
62661
62669
|
return {
|
|
62662
|
-
status:
|
|
62670
|
+
status: "ServiceNotFound", // error
|
|
62663
62671
|
serviceId: null,
|
|
62664
62672
|
error: "Service name not found"
|
|
62665
62673
|
};
|
|
@@ -65037,7 +65045,7 @@ var MatchmakingMemberStatus;
|
|
|
65037
65045
|
|
|
65038
65046
|
/***/ }),
|
|
65039
65047
|
|
|
65040
|
-
/***/
|
|
65048
|
+
/***/ 3396:
|
|
65041
65049
|
/***/ ((__unused_webpack_module, exports) => {
|
|
65042
65050
|
|
|
65043
65051
|
|
|
@@ -67104,6 +67112,87 @@ CharacterPlayer._owner = "owner";
|
|
|
67104
67112
|
CharacterPlayer._removeStatus = "removeStatus";
|
|
67105
67113
|
|
|
67106
67114
|
|
|
67115
|
+
/***/ }),
|
|
67116
|
+
|
|
67117
|
+
/***/ 1268:
|
|
67118
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
67119
|
+
|
|
67120
|
+
|
|
67121
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
67122
|
+
exports.ChatMessage = void 0;
|
|
67123
|
+
const MongoObject_1 = __webpack_require__(1412);
|
|
67124
|
+
class ChatMessage extends MongoObject_1.MongoObject {
|
|
67125
|
+
constructor(result, collection) {
|
|
67126
|
+
super(result, collection);
|
|
67127
|
+
this.messageId = result[ChatMessage._messageId];
|
|
67128
|
+
this.groupId = result[ChatMessage._groupId];
|
|
67129
|
+
this.setDocumentChatMessage(result);
|
|
67130
|
+
}
|
|
67131
|
+
setDocumentChatMessage(result) {
|
|
67132
|
+
this.sender = result[ChatMessage._sender];
|
|
67133
|
+
this.message = result[ChatMessage._message];
|
|
67134
|
+
this.tsCreate = result[ChatMessage._tsCreate];
|
|
67135
|
+
this.tsLastUpdate = result[ChatMessage._tsLastUpdate];
|
|
67136
|
+
this.removeStatus = result[ChatMessage._removeStatus];
|
|
67137
|
+
}
|
|
67138
|
+
getMessageId() {
|
|
67139
|
+
return this.messageId;
|
|
67140
|
+
}
|
|
67141
|
+
getGroupId() {
|
|
67142
|
+
return this.groupId;
|
|
67143
|
+
}
|
|
67144
|
+
getSender() {
|
|
67145
|
+
return this.sender;
|
|
67146
|
+
}
|
|
67147
|
+
setSender(senderId, senderType) {
|
|
67148
|
+
this.sender = {
|
|
67149
|
+
id: senderId,
|
|
67150
|
+
type: senderType,
|
|
67151
|
+
};
|
|
67152
|
+
this.set(ChatMessage._sender, this.sender);
|
|
67153
|
+
}
|
|
67154
|
+
getMessage() {
|
|
67155
|
+
return this.message;
|
|
67156
|
+
}
|
|
67157
|
+
setMessage(message) {
|
|
67158
|
+
this.message = message;
|
|
67159
|
+
this.set(ChatMessage._message, this.message);
|
|
67160
|
+
}
|
|
67161
|
+
getTsCreate() {
|
|
67162
|
+
return this.tsCreate;
|
|
67163
|
+
}
|
|
67164
|
+
setTsCreate(tsCreate) {
|
|
67165
|
+
this.tsCreate = tsCreate;
|
|
67166
|
+
this.set(ChatMessage._tsCreate, this.tsCreate);
|
|
67167
|
+
}
|
|
67168
|
+
getTsLastUpdate() {
|
|
67169
|
+
return this.tsLastUpdate;
|
|
67170
|
+
}
|
|
67171
|
+
setTsLastUpdate(tsLastUpdate) {
|
|
67172
|
+
this.tsLastUpdate = tsLastUpdate;
|
|
67173
|
+
this.set(ChatMessage._tsLastUpdate, this.tsLastUpdate);
|
|
67174
|
+
}
|
|
67175
|
+
getRemoveStatus() {
|
|
67176
|
+
return this.removeStatus;
|
|
67177
|
+
}
|
|
67178
|
+
setRemoveStatus(tsRemove, reason) {
|
|
67179
|
+
this.removeStatus = {
|
|
67180
|
+
tsRemove: tsRemove,
|
|
67181
|
+
reason: reason,
|
|
67182
|
+
};
|
|
67183
|
+
this.set(ChatMessage._removeStatus, this.removeStatus);
|
|
67184
|
+
}
|
|
67185
|
+
}
|
|
67186
|
+
exports.ChatMessage = ChatMessage;
|
|
67187
|
+
ChatMessage._messageId = "messageId";
|
|
67188
|
+
ChatMessage._groupId = "groupId";
|
|
67189
|
+
ChatMessage._sender = "sender";
|
|
67190
|
+
ChatMessage._message = "message";
|
|
67191
|
+
ChatMessage._tsCreate = "tsCreate";
|
|
67192
|
+
ChatMessage._tsLastUpdate = "tsLastUpdate";
|
|
67193
|
+
ChatMessage._removeStatus = "removeStatus";
|
|
67194
|
+
|
|
67195
|
+
|
|
67107
67196
|
/***/ }),
|
|
67108
67197
|
|
|
67109
67198
|
/***/ 6415:
|
|
@@ -68452,6 +68541,201 @@ StoreInventory._storeDatas = "storeDatas";
|
|
|
68452
68541
|
StoreInventory._removeStatus = "removeStatus";
|
|
68453
68542
|
|
|
68454
68543
|
|
|
68544
|
+
/***/ }),
|
|
68545
|
+
|
|
68546
|
+
/***/ 1284:
|
|
68547
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
68548
|
+
|
|
68549
|
+
|
|
68550
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
68551
|
+
exports.TradeInventory = void 0;
|
|
68552
|
+
const DataObjectBase_1 = __webpack_require__(6415);
|
|
68553
|
+
class TradeInventory extends DataObjectBase_1.DataObjectBase {
|
|
68554
|
+
constructor(result, collection) {
|
|
68555
|
+
super(result, collection);
|
|
68556
|
+
this.tradeId = result[TradeInventory._tradeId];
|
|
68557
|
+
this.setDocumentTradeInventory(result);
|
|
68558
|
+
}
|
|
68559
|
+
setDocumentTradeInventory(result) {
|
|
68560
|
+
this.tradeItems = result[TradeInventory._tradeItems];
|
|
68561
|
+
this.owner = result[TradeInventory._owner];
|
|
68562
|
+
this.buyer = result[TradeInventory._buyer];
|
|
68563
|
+
this.tsBuy = result[TradeInventory._tsBuy];
|
|
68564
|
+
this.prices = result[TradeInventory._prices] != null ? new Map(Object.entries(result[TradeInventory._prices])) : null;
|
|
68565
|
+
this.itemDatas = result[TradeInventory._itemDatas];
|
|
68566
|
+
this.itemStatistics = result[TradeInventory._itemStatistics] != null ? new Map(Object.entries(result[TradeInventory._itemStatistics])) : null;
|
|
68567
|
+
this.removeStatus = result[TradeInventory._removeStatus];
|
|
68568
|
+
}
|
|
68569
|
+
getTradeId() {
|
|
68570
|
+
return this.tradeId;
|
|
68571
|
+
}
|
|
68572
|
+
getAllTradeItems() {
|
|
68573
|
+
return this.tradeItems;
|
|
68574
|
+
}
|
|
68575
|
+
hasTradeItem(itemId) {
|
|
68576
|
+
return this.tradeItems.find(x => x.itemId == itemId) != null;
|
|
68577
|
+
}
|
|
68578
|
+
getTradeItem(itemId) {
|
|
68579
|
+
return this.tradeItems.find(x => x.itemId == itemId);
|
|
68580
|
+
}
|
|
68581
|
+
setTradeItem(itemId, catalogId, classId) {
|
|
68582
|
+
let tradeItem = this.tradeItems.find(x => x.itemId == itemId);
|
|
68583
|
+
if (tradeItem == null) {
|
|
68584
|
+
tradeItem = {
|
|
68585
|
+
itemId: itemId,
|
|
68586
|
+
catalogId: catalogId,
|
|
68587
|
+
classId: classId,
|
|
68588
|
+
};
|
|
68589
|
+
this.tradeItems.push(tradeItem);
|
|
68590
|
+
}
|
|
68591
|
+
else {
|
|
68592
|
+
tradeItem.catalogId = catalogId;
|
|
68593
|
+
tradeItem.classId = classId;
|
|
68594
|
+
}
|
|
68595
|
+
this.set(TradeInventory._tradeItems, this.tradeItems);
|
|
68596
|
+
}
|
|
68597
|
+
removeTradeItem(itemId) {
|
|
68598
|
+
let tradeItem = this.tradeItems.find(x => x.itemId == itemId);
|
|
68599
|
+
if (tradeItem != null) {
|
|
68600
|
+
let indexOf = this.tradeItems.indexOf(tradeItem);
|
|
68601
|
+
if (indexOf != -1) {
|
|
68602
|
+
this.tradeItems.splice(indexOf, 1);
|
|
68603
|
+
return this.set(TradeInventory._tradeItems, this.tradeItems);
|
|
68604
|
+
}
|
|
68605
|
+
}
|
|
68606
|
+
throw Error("can not found the item to remove");
|
|
68607
|
+
}
|
|
68608
|
+
getOwner() {
|
|
68609
|
+
return this.owner;
|
|
68610
|
+
}
|
|
68611
|
+
setOwner(ownerId, ownerType) {
|
|
68612
|
+
this.owner = {
|
|
68613
|
+
id: ownerId,
|
|
68614
|
+
type: ownerType,
|
|
68615
|
+
};
|
|
68616
|
+
this.set(TradeInventory._owner, this.owner);
|
|
68617
|
+
}
|
|
68618
|
+
getBuyer() {
|
|
68619
|
+
return this.buyer;
|
|
68620
|
+
}
|
|
68621
|
+
setBuyer(buyerId, buyerType) {
|
|
68622
|
+
this.buyer = {
|
|
68623
|
+
id: buyerId,
|
|
68624
|
+
type: buyerType,
|
|
68625
|
+
};
|
|
68626
|
+
this.set(TradeInventory._buyer, this.buyer);
|
|
68627
|
+
}
|
|
68628
|
+
setTsBuy(tsBuy) {
|
|
68629
|
+
this.tsBuy = tsBuy;
|
|
68630
|
+
this.set(TradeInventory._tsBuy, this.tsBuy);
|
|
68631
|
+
}
|
|
68632
|
+
getAllItemDatas() {
|
|
68633
|
+
return this.itemDatas;
|
|
68634
|
+
}
|
|
68635
|
+
hasItemData(key) {
|
|
68636
|
+
return this.getItemData(key) != null;
|
|
68637
|
+
}
|
|
68638
|
+
getItemData(key) {
|
|
68639
|
+
return this.itemDatas.find(x => x.key == key);
|
|
68640
|
+
}
|
|
68641
|
+
setItemData(key, value) {
|
|
68642
|
+
let itemDataItem = this.itemDatas.find(x => x.key == key);
|
|
68643
|
+
if (itemDataItem == null) {
|
|
68644
|
+
itemDataItem = {
|
|
68645
|
+
key: key,
|
|
68646
|
+
value: value,
|
|
68647
|
+
};
|
|
68648
|
+
this.itemDatas.push(itemDataItem);
|
|
68649
|
+
}
|
|
68650
|
+
else {
|
|
68651
|
+
itemDataItem.value = value;
|
|
68652
|
+
}
|
|
68653
|
+
this.set(TradeInventory._itemDatas, this.itemDatas);
|
|
68654
|
+
}
|
|
68655
|
+
removeItemData(key) {
|
|
68656
|
+
let itemDataItem = this.itemDatas.find(x => x.key == key);
|
|
68657
|
+
if (itemDataItem != null) {
|
|
68658
|
+
let indexOf = this.itemDatas.indexOf(itemDataItem);
|
|
68659
|
+
if (indexOf != -1) {
|
|
68660
|
+
this.itemDatas.splice(indexOf, 1);
|
|
68661
|
+
return this.set(TradeInventory._itemDatas, this.itemDatas);
|
|
68662
|
+
}
|
|
68663
|
+
}
|
|
68664
|
+
throw Error("can not found the key to remove");
|
|
68665
|
+
}
|
|
68666
|
+
getAllItemStatistics() {
|
|
68667
|
+
return this.itemStatistics;
|
|
68668
|
+
}
|
|
68669
|
+
hasItemStatistics(key) {
|
|
68670
|
+
return this.itemStatistics.has(key);
|
|
68671
|
+
}
|
|
68672
|
+
getItemStatistics(key) {
|
|
68673
|
+
return this.itemStatistics.get(key);
|
|
68674
|
+
}
|
|
68675
|
+
setItemStatistics(key, value, tsLastUpdate) {
|
|
68676
|
+
this.itemStatistics.set(key, {
|
|
68677
|
+
tsLastUpdate: tsLastUpdate,
|
|
68678
|
+
value: value
|
|
68679
|
+
});
|
|
68680
|
+
this.set(TradeInventory._itemStatistics + DataObjectBase_1.DataObjectBase.DOT + key, {
|
|
68681
|
+
tsLastUpdate: tsLastUpdate,
|
|
68682
|
+
value: value
|
|
68683
|
+
});
|
|
68684
|
+
}
|
|
68685
|
+
removeItemStatistics(key) {
|
|
68686
|
+
if (this.itemStatistics.has(key)) {
|
|
68687
|
+
this.itemStatistics.delete(key);
|
|
68688
|
+
return this.unset(TradeInventory._itemStatistics + DataObjectBase_1.DataObjectBase.DOT + key);
|
|
68689
|
+
}
|
|
68690
|
+
throw Error("can not found the key to remove");
|
|
68691
|
+
}
|
|
68692
|
+
getRemoveStatus() {
|
|
68693
|
+
return this.removeStatus;
|
|
68694
|
+
}
|
|
68695
|
+
setRemoveStatus(tsRemove, reason) {
|
|
68696
|
+
this.removeStatus = {
|
|
68697
|
+
tsRemove: tsRemove,
|
|
68698
|
+
reason: reason,
|
|
68699
|
+
};
|
|
68700
|
+
this.set(TradeInventory._removeStatus, this.removeStatus);
|
|
68701
|
+
}
|
|
68702
|
+
getAllPrices() {
|
|
68703
|
+
return this.prices;
|
|
68704
|
+
}
|
|
68705
|
+
hasPrice(key) {
|
|
68706
|
+
return this.prices.has(key);
|
|
68707
|
+
}
|
|
68708
|
+
getPrice(key) {
|
|
68709
|
+
return this.prices.get(key);
|
|
68710
|
+
}
|
|
68711
|
+
setPrice(key, value) {
|
|
68712
|
+
this.prices.set(key, {
|
|
68713
|
+
value: value
|
|
68714
|
+
});
|
|
68715
|
+
this.set(TradeInventory._prices + DataObjectBase_1.DataObjectBase.DOT + key, {
|
|
68716
|
+
value: value
|
|
68717
|
+
});
|
|
68718
|
+
}
|
|
68719
|
+
removePrice(key) {
|
|
68720
|
+
if (this.prices.has(key)) {
|
|
68721
|
+
this.prices.delete(key);
|
|
68722
|
+
return this.unset(TradeInventory._prices + DataObjectBase_1.DataObjectBase.DOT + key);
|
|
68723
|
+
}
|
|
68724
|
+
throw Error("can not found the key to remove");
|
|
68725
|
+
}
|
|
68726
|
+
}
|
|
68727
|
+
exports.TradeInventory = TradeInventory;
|
|
68728
|
+
TradeInventory._tradeId = "tradeId";
|
|
68729
|
+
TradeInventory._tradeItems = "tradeItems";
|
|
68730
|
+
TradeInventory._owner = "owner";
|
|
68731
|
+
TradeInventory._buyer = "buyer";
|
|
68732
|
+
TradeInventory._tsBuy = "tsBuy";
|
|
68733
|
+
TradeInventory._prices = "prices";
|
|
68734
|
+
TradeInventory._itemDatas = "itemDatas";
|
|
68735
|
+
TradeInventory._itemStatistics = "itemStatistics";
|
|
68736
|
+
TradeInventory._removeStatus = "removeStatus";
|
|
68737
|
+
|
|
68738
|
+
|
|
68455
68739
|
/***/ }),
|
|
68456
68740
|
|
|
68457
68741
|
/***/ 4272:
|
|
@@ -68546,7 +68830,7 @@ UploadFileInfo._fileUpload = "fileUpload";
|
|
|
68546
68830
|
|
|
68547
68831
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
68548
68832
|
exports.GameItem = void 0;
|
|
68549
|
-
const MasterAdminMongoObject_1 = __webpack_require__(
|
|
68833
|
+
const MasterAdminMongoObject_1 = __webpack_require__(4868);
|
|
68550
68834
|
class GameItem extends MasterAdminMongoObject_1.MasterAdminMongoObject {
|
|
68551
68835
|
constructor(result, collection) {
|
|
68552
68836
|
super(result, collection);
|
|
@@ -68620,7 +68904,7 @@ GameItem._matchmakingQueueSettings = "matchmakingQueueSettings";
|
|
|
68620
68904
|
|
|
68621
68905
|
/***/ }),
|
|
68622
68906
|
|
|
68623
|
-
/***/
|
|
68907
|
+
/***/ 4868:
|
|
68624
68908
|
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
68625
68909
|
|
|
68626
68910
|
|
|
@@ -68648,7 +68932,7 @@ MasterAdminMongoObject._type = "type";
|
|
|
68648
68932
|
|
|
68649
68933
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
68650
68934
|
exports.MasterAdminPlayer = void 0;
|
|
68651
|
-
const MasterAdminMongoObject_1 = __webpack_require__(
|
|
68935
|
+
const MasterAdminMongoObject_1 = __webpack_require__(4868);
|
|
68652
68936
|
class MasterAdminPlayer extends MasterAdminMongoObject_1.MasterAdminMongoObject {
|
|
68653
68937
|
constructor(result, collection) {
|
|
68654
68938
|
super(result, collection);
|
|
@@ -68694,13 +68978,13 @@ MasterAdminPlayer._secretKey = "secretKey";
|
|
|
68694
68978
|
|
|
68695
68979
|
/***/ }),
|
|
68696
68980
|
|
|
68697
|
-
/***/
|
|
68981
|
+
/***/ 1012:
|
|
68698
68982
|
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
68699
68983
|
|
|
68700
68984
|
|
|
68701
68985
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
68702
68986
|
exports.MasterGameSettings = void 0;
|
|
68703
|
-
const MasterAdminMongoObject_1 = __webpack_require__(
|
|
68987
|
+
const MasterAdminMongoObject_1 = __webpack_require__(4868);
|
|
68704
68988
|
class MasterGameSettings extends MasterAdminMongoObject_1.MasterAdminMongoObject {
|
|
68705
68989
|
constructor(result, collection) {
|
|
68706
68990
|
super(result, collection);
|
|
@@ -68738,7 +69022,7 @@ MasterGameSettings._masterPlayerSettings = "masterPlayerSettings";
|
|
|
68738
69022
|
|
|
68739
69023
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
68740
69024
|
exports.SecretInfoItem = void 0;
|
|
68741
|
-
const MasterAdminMongoObject_1 = __webpack_require__(
|
|
69025
|
+
const MasterAdminMongoObject_1 = __webpack_require__(4868);
|
|
68742
69026
|
class SecretInfoItem extends MasterAdminMongoObject_1.MasterAdminMongoObject {
|
|
68743
69027
|
constructor(result, collection) {
|
|
68744
69028
|
super(result, collection);
|
|
@@ -70379,7 +70663,7 @@ exports.DefaultApplicationStartup = DefaultApplicationStartup;
|
|
|
70379
70663
|
|
|
70380
70664
|
/***/ }),
|
|
70381
70665
|
|
|
70382
|
-
/***/
|
|
70666
|
+
/***/ 3303:
|
|
70383
70667
|
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
70384
70668
|
|
|
70385
70669
|
|
|
@@ -70534,14 +70818,14 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
70534
70818
|
};
|
|
70535
70819
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
70536
70820
|
exports.ServerApplication = void 0;
|
|
70537
|
-
const HttpApp_1 = __webpack_require__(
|
|
70821
|
+
const HttpApp_1 = __webpack_require__(3303);
|
|
70538
70822
|
const SocketApp_1 = __webpack_require__(7340);
|
|
70539
70823
|
const express_1 = __importDefault(__webpack_require__(9224));
|
|
70540
70824
|
const http_1 = __importDefault(__webpack_require__(6136));
|
|
70541
70825
|
const https_1 = __importDefault(__webpack_require__(1256));
|
|
70542
70826
|
const fs_1 = __importDefault(__webpack_require__(5664));
|
|
70543
70827
|
const GNServer_1 = __webpack_require__(7404);
|
|
70544
|
-
const ApiMiddleware_1 = __webpack_require__(
|
|
70828
|
+
const ApiMiddleware_1 = __webpack_require__(3836);
|
|
70545
70829
|
const xDebug_1 = __webpack_require__(9343);
|
|
70546
70830
|
const UploadFileMiddleware_1 = __webpack_require__(4988);
|
|
70547
70831
|
const Md5Generate_1 = __webpack_require__(2860);
|
|
@@ -70550,7 +70834,7 @@ const StringUtility_1 = __webpack_require__(6416);
|
|
|
70550
70834
|
const bcrypt_1 = __importDefault(__webpack_require__(8784));
|
|
70551
70835
|
const SecretInfo_1 = __webpack_require__(8716);
|
|
70552
70836
|
const SecretInfoItem_1 = __webpack_require__(5916);
|
|
70553
|
-
const MasterGameSettings_1 = __webpack_require__(
|
|
70837
|
+
const MasterGameSettings_1 = __webpack_require__(1012);
|
|
70554
70838
|
const GameItem_1 = __webpack_require__(4208);
|
|
70555
70839
|
const GrantSecretInfoRequestHandler_1 = __webpack_require__(628);
|
|
70556
70840
|
const xDatetime_1 = __webpack_require__(1308);
|
|
@@ -72087,7 +72371,7 @@ AntiDdosMiddleware.K_MULTIPLE = 5;
|
|
|
72087
72371
|
|
|
72088
72372
|
/***/ }),
|
|
72089
72373
|
|
|
72090
|
-
/***/
|
|
72374
|
+
/***/ 3836:
|
|
72091
72375
|
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
72092
72376
|
|
|
72093
72377
|
|
|
@@ -74594,7 +74878,7 @@ const LoginByCustomDeviceIdRequestHandler_1 = __webpack_require__(3932);
|
|
|
74594
74878
|
const LoginByCustomIdRequestHandler_1 = __webpack_require__(156);
|
|
74595
74879
|
const LoginByFacebookRequestHandler_1 = __webpack_require__(7980);
|
|
74596
74880
|
const LoginByGenericServiceRequestHandler_1 = __webpack_require__(7004);
|
|
74597
|
-
const LoginByGoogleRequestHandler_1 = __webpack_require__(
|
|
74881
|
+
const LoginByGoogleRequestHandler_1 = __webpack_require__(8888);
|
|
74598
74882
|
const LoginByiOSDeviceIdRequestHandler_1 = __webpack_require__(5048);
|
|
74599
74883
|
const LoginByWindowsPhoneDeviceIdRequestHandler_1 = __webpack_require__(3840);
|
|
74600
74884
|
const RegisterAccountRequestHandler_1 = __webpack_require__(9916);
|
|
@@ -74605,7 +74889,7 @@ const LoginByWindowsDeviceIdRequestHandler_1 = __webpack_require__(4728);
|
|
|
74605
74889
|
const RefreshAuthTokenRequestHandler_1 = __webpack_require__(8012);
|
|
74606
74890
|
const LinkAccountRequestHandler_1 = __webpack_require__(1676);
|
|
74607
74891
|
const LinkAndroidDeviceIdRequestHandler_1 = __webpack_require__(6408);
|
|
74608
|
-
const LinkAppleRequestHandler_1 = __webpack_require__(
|
|
74892
|
+
const LinkAppleRequestHandler_1 = __webpack_require__(1015);
|
|
74609
74893
|
const LinkCustomDeviceIdRequestHandler_1 = __webpack_require__(44);
|
|
74610
74894
|
const LinkCustomIdRequestHandler_1 = __webpack_require__(2232);
|
|
74611
74895
|
const LinkEditorDeviceIdRequestHandler_1 = __webpack_require__(3768);
|
|
@@ -74729,7 +75013,7 @@ const GetTagRequestHandler_3 = __webpack_require__(8076);
|
|
|
74729
75013
|
const GetDisplayNameRequestHandler_3 = __webpack_require__(1600);
|
|
74730
75014
|
const SetDisplayNameRequestHandler_3 = __webpack_require__(548);
|
|
74731
75015
|
const GetTsCreateRequestHandler_3 = __webpack_require__(9568);
|
|
74732
|
-
const GetIpAddressCreateRequestHandler_3 = __webpack_require__(
|
|
75016
|
+
const GetIpAddressCreateRequestHandler_3 = __webpack_require__(5684);
|
|
74733
75017
|
const GetTsLastLoginRequestHandler_3 = __webpack_require__(4936);
|
|
74734
75018
|
const SetPlayerBanRequestHandler_3 = __webpack_require__(9004);
|
|
74735
75019
|
const GetPlayerBanRequestHandler_3 = __webpack_require__(3892);
|
|
@@ -74829,7 +75113,7 @@ const GetCustomDataRequestHandler_5 = __webpack_require__(7100);
|
|
|
74829
75113
|
const SetCustomDataRequestHandler_5 = __webpack_require__(5000);
|
|
74830
75114
|
const SetItemDataRequestHandler_1 = __webpack_require__(8696);
|
|
74831
75115
|
const GetItemDataRequestHandler_1 = __webpack_require__(8712);
|
|
74832
|
-
const GetItemInformationRequestHandler_1 = __webpack_require__(
|
|
75116
|
+
const GetItemInformationRequestHandler_1 = __webpack_require__(2488);
|
|
74833
75117
|
const GetItemsWithSegmentRequestHandler_1 = __webpack_require__(6800);
|
|
74834
75118
|
const GetItemsWithTagRequestHandler_1 = __webpack_require__(7859);
|
|
74835
75119
|
const GetCatalogIdRequestHandler_3 = __webpack_require__(392);
|
|
@@ -75628,27 +75912,10 @@ var __webpack_exports__ = {};
|
|
|
75628
75912
|
(() => {
|
|
75629
75913
|
var exports = __webpack_exports__;
|
|
75630
75914
|
|
|
75631
|
-
// import { DebugParameterCode } from "./GN-common/constant/parameterCode/DebugParameterCode";
|
|
75632
|
-
// import { GetAppConfigParameterCode } from "./GN-common/constant/parameterCode/GetAppConfigParameterCode";
|
|
75633
|
-
// import { LoginParameterCode } from "./GN-common/constant/parameterCode/LoginParameterCode";
|
|
75634
|
-
// import { EnterDisplayNameParameterCode } from "./GN-common/constant/parameterCode/EnterDisplayNameParameterCode";
|
|
75635
|
-
// import { FetchAllDataParameterCode } from "./GN-common/constant/parameterCode/FetchAllDataParameterCode";
|
|
75636
|
-
// import { RegisterSocketParameterCode } from "./GN-common/constant/parameterCode/RegisterSocketParameterCode";
|
|
75637
|
-
// import { FetchSparkPlayerParameterCode } from "./GN-common/constant/parameterCode/FetchSparkPlayerParameterCode";
|
|
75638
|
-
// import { ChatParameterCode } from "./GN-common/constant/parameterCode/ChatParameterCode";
|
|
75639
|
-
// import { FriendParameterCode } from "./GN-common/constant/parameterCode/FriendParameterCode";
|
|
75640
75915
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
75641
|
-
exports.
|
|
75642
|
-
exports.UploadFileHandler = exports.SocketAppHandler = exports.HttpAppHandler = exports.AdminAppHandler = exports.
|
|
75643
|
-
|
|
75644
|
-
// export { GetAppConfigParameterCode };
|
|
75645
|
-
// export { LoginParameterCode };
|
|
75646
|
-
// export { EnterDisplayNameParameterCode };
|
|
75647
|
-
// export { FetchAllDataParameterCode };
|
|
75648
|
-
// export { RegisterSocketParameterCode };
|
|
75649
|
-
// export { FetchSparkPlayerParameterCode };
|
|
75650
|
-
// export { ChatParameterCode };
|
|
75651
|
-
// export { FriendParameterCode };
|
|
75916
|
+
exports.BooleanDataMember = exports.GNArrayDataMember = exports.GNHashtableDataMember = exports.StringDataMember = exports.DataMember = exports.AuthInfo = exports.OperationResponse = exports.Request = exports.OperationRequest = exports.OperationObject = exports.OperationArray = exports.CommonOperationRequest = exports.OperationHelper = exports.OperationEvent = exports.ReturnCode = exports.OperationCode = exports.EventCode = exports.Commands = exports.ParameterCode = exports.GNParameterCode = exports.GNErrorCode = exports.RequestType = exports.RequestRole = exports.PermissionDataItem = exports.OwnerType = exports.MatchmakingTicketStatus = exports.MatchmakingMemberStatus = exports.ItemType = exports.InvalidMemberType = exports.GroupStatus = exports.GoogleLoginType = exports.FriendStatus = exports.GNHashtableBuilder = exports.GNHashtable = exports.GNArrayBuilder = exports.GNArray = exports.GNData = exports.TimerService = exports.RequestConverterService = exports.LockService = exports.IGenericService = exports.GoogleService = exports.GenericService = exports.FacebookService = exports.PreEventCallbackService = exports.PostEventCallbackService = exports.AppleService = exports.AnalyticsService = exports.RequestController = exports.RequestHandler = void 0;
|
|
75917
|
+
exports.HttpAppSettings = exports.DdosSettings = exports.DatabaseSettings = exports.ApplicationSettings = exports.UploadFileHandler = exports.SocketAppHandler = exports.HttpAppHandler = exports.AdminAppHandler = exports.UploadFileMiddleware = exports.ApiMiddleware = exports.AntiDdosMiddleware = exports.xGNSettings = exports.xStatisticsAggregationMethod = exports.xRandom = exports.xMail = exports.Debug = exports.xDatetime = exports.xDatabase = exports.UploadFileInfo = exports.TradeInventory = exports.StoreInventory = exports.PlayerBase = exports.MongoObject = exports.MatchmakingTicket = exports.Match = exports.MasterPlayer = exports.Inventory = exports.Group = exports.GamePlayerBase = exports.GamePlayer = exports.DataObjectBase = exports.ChatMessage = exports.CharacterPlayer = exports.SecretInfoItem = exports.MasterGameSettings = exports.MasterAdminPlayer = exports.MasterAdminMongoObject = exports.GameItem = exports.xConfig = exports.xConfigItem = exports.xCacheItem = exports.xCacheData = exports.StringUtility = exports.Md5Generate = exports.DisplayNameUtility = exports.CodeHelper = exports.SecretInfo = exports.FieldDataType = exports.GNFieldDataType = exports.NumberDataMember = void 0;
|
|
75918
|
+
exports.GNServer = exports.SocketApp = exports.ServerApplicationStartup = exports.ServerApplication = exports.HttpApp = exports.DefaultApplicationStartup = exports.UploadFileSettings = exports.SocketAppSettings = exports.OtherSettings = exports.MailSettings = exports.LogSettings = void 0;
|
|
75652
75919
|
const RequestHandler_1 = __webpack_require__(9264);
|
|
75653
75920
|
Object.defineProperty(exports, "RequestHandler", ({ enumerable: true, get: function () { return RequestHandler_1.RequestHandler; } }));
|
|
75654
75921
|
const RequestController_1 = __webpack_require__(7748);
|
|
@@ -75658,7 +75925,8 @@ Object.defineProperty(exports, "AnalyticsService", ({ enumerable: true, get: fun
|
|
|
75658
75925
|
const AppleService_1 = __webpack_require__(3936);
|
|
75659
75926
|
Object.defineProperty(exports, "AppleService", ({ enumerable: true, get: function () { return AppleService_1.AppleService; } }));
|
|
75660
75927
|
const EventCallbackService_1 = __webpack_require__(492);
|
|
75661
|
-
Object.defineProperty(exports, "
|
|
75928
|
+
Object.defineProperty(exports, "PostEventCallbackService", ({ enumerable: true, get: function () { return EventCallbackService_1.PostEventCallbackService; } }));
|
|
75929
|
+
Object.defineProperty(exports, "PreEventCallbackService", ({ enumerable: true, get: function () { return EventCallbackService_1.PreEventCallbackService; } }));
|
|
75662
75930
|
const FacebookService_1 = __webpack_require__(6312);
|
|
75663
75931
|
Object.defineProperty(exports, "FacebookService", ({ enumerable: true, get: function () { return FacebookService_1.FacebookService; } }));
|
|
75664
75932
|
const GenericService_1 = __webpack_require__(3071);
|
|
@@ -75689,6 +75957,10 @@ const InvalidMemberType_1 = __webpack_require__(6052);
|
|
|
75689
75957
|
Object.defineProperty(exports, "InvalidMemberType", ({ enumerable: true, get: function () { return InvalidMemberType_1.InvalidMemberType; } }));
|
|
75690
75958
|
const ItemType_1 = __webpack_require__(7104);
|
|
75691
75959
|
Object.defineProperty(exports, "ItemType", ({ enumerable: true, get: function () { return ItemType_1.ItemType; } }));
|
|
75960
|
+
const MatchmakingMemberStatus_1 = __webpack_require__(1824);
|
|
75961
|
+
Object.defineProperty(exports, "MatchmakingMemberStatus", ({ enumerable: true, get: function () { return MatchmakingMemberStatus_1.MatchmakingMemberStatus; } }));
|
|
75962
|
+
const MatchmakingTicketStatus_1 = __webpack_require__(3396);
|
|
75963
|
+
Object.defineProperty(exports, "MatchmakingTicketStatus", ({ enumerable: true, get: function () { return MatchmakingTicketStatus_1.MatchmakingTicketStatus; } }));
|
|
75692
75964
|
const OwnerType_1 = __webpack_require__(6828);
|
|
75693
75965
|
Object.defineProperty(exports, "OwnerType", ({ enumerable: true, get: function () { return OwnerType_1.OwnerType; } }));
|
|
75694
75966
|
const PermissionDataItem_1 = __webpack_require__(8944);
|
|
@@ -75731,6 +76003,12 @@ const AuthInfo_1 = __webpack_require__(7084);
|
|
|
75731
76003
|
Object.defineProperty(exports, "AuthInfo", ({ enumerable: true, get: function () { return AuthInfo_1.AuthInfo; } }));
|
|
75732
76004
|
const DataMember_1 = __webpack_require__(4628);
|
|
75733
76005
|
Object.defineProperty(exports, "DataMember", ({ enumerable: true, get: function () { return DataMember_1.DataMember; } }));
|
|
76006
|
+
Object.defineProperty(exports, "StringDataMember", ({ enumerable: true, get: function () { return DataMember_1.StringDataMember; } }));
|
|
76007
|
+
Object.defineProperty(exports, "GNHashtableDataMember", ({ enumerable: true, get: function () { return DataMember_1.GNHashtableDataMember; } }));
|
|
76008
|
+
Object.defineProperty(exports, "GNArrayDataMember", ({ enumerable: true, get: function () { return DataMember_1.GNArrayDataMember; } }));
|
|
76009
|
+
Object.defineProperty(exports, "BooleanDataMember", ({ enumerable: true, get: function () { return DataMember_1.BooleanDataMember; } }));
|
|
76010
|
+
Object.defineProperty(exports, "NumberDataMember", ({ enumerable: true, get: function () { return DataMember_1.NumberDataMember; } }));
|
|
76011
|
+
Object.defineProperty(exports, "GNFieldDataType", ({ enumerable: true, get: function () { return DataMember_1.GNFieldDataType; } }));
|
|
75734
76012
|
const GNMetadata_1 = __webpack_require__(8128);
|
|
75735
76013
|
Object.defineProperty(exports, "FieldDataType", ({ enumerable: true, get: function () { return GNMetadata_1.FieldDataType; } }));
|
|
75736
76014
|
const SecretInfo_1 = __webpack_require__(8716);
|
|
@@ -75751,6 +76029,48 @@ const xConfigItem_1 = __webpack_require__(5736);
|
|
|
75751
76029
|
Object.defineProperty(exports, "xConfigItem", ({ enumerable: true, get: function () { return xConfigItem_1.xConfigItem; } }));
|
|
75752
76030
|
const xConfig_1 = __webpack_require__(4312);
|
|
75753
76031
|
Object.defineProperty(exports, "xConfig", ({ enumerable: true, get: function () { return xConfig_1.xConfig; } }));
|
|
76032
|
+
const GameItem_1 = __webpack_require__(4208);
|
|
76033
|
+
Object.defineProperty(exports, "GameItem", ({ enumerable: true, get: function () { return GameItem_1.GameItem; } }));
|
|
76034
|
+
const MasterAdminMongoObject_1 = __webpack_require__(4868);
|
|
76035
|
+
Object.defineProperty(exports, "MasterAdminMongoObject", ({ enumerable: true, get: function () { return MasterAdminMongoObject_1.MasterAdminMongoObject; } }));
|
|
76036
|
+
const MasterAdminPlayer_1 = __webpack_require__(8664);
|
|
76037
|
+
Object.defineProperty(exports, "MasterAdminPlayer", ({ enumerable: true, get: function () { return MasterAdminPlayer_1.MasterAdminPlayer; } }));
|
|
76038
|
+
const MasterGameSettings_1 = __webpack_require__(1012);
|
|
76039
|
+
Object.defineProperty(exports, "MasterGameSettings", ({ enumerable: true, get: function () { return MasterGameSettings_1.MasterGameSettings; } }));
|
|
76040
|
+
const SecretInfoItem_1 = __webpack_require__(5916);
|
|
76041
|
+
Object.defineProperty(exports, "SecretInfoItem", ({ enumerable: true, get: function () { return SecretInfoItem_1.SecretInfoItem; } }));
|
|
76042
|
+
const CharacterPlayer_1 = __webpack_require__(4992);
|
|
76043
|
+
Object.defineProperty(exports, "CharacterPlayer", ({ enumerable: true, get: function () { return CharacterPlayer_1.CharacterPlayer; } }));
|
|
76044
|
+
const ChatMessage_1 = __webpack_require__(1268);
|
|
76045
|
+
Object.defineProperty(exports, "ChatMessage", ({ enumerable: true, get: function () { return ChatMessage_1.ChatMessage; } }));
|
|
76046
|
+
const DataObjectBase_1 = __webpack_require__(6415);
|
|
76047
|
+
Object.defineProperty(exports, "DataObjectBase", ({ enumerable: true, get: function () { return DataObjectBase_1.DataObjectBase; } }));
|
|
76048
|
+
const GamePlayer_1 = __webpack_require__(9416);
|
|
76049
|
+
Object.defineProperty(exports, "GamePlayer", ({ enumerable: true, get: function () { return GamePlayer_1.GamePlayer; } }));
|
|
76050
|
+
const GamePlayerBase_1 = __webpack_require__(1656);
|
|
76051
|
+
Object.defineProperty(exports, "GamePlayerBase", ({ enumerable: true, get: function () { return GamePlayerBase_1.GamePlayerBase; } }));
|
|
76052
|
+
const Group_1 = __webpack_require__(3324);
|
|
76053
|
+
Object.defineProperty(exports, "Group", ({ enumerable: true, get: function () { return Group_1.Group; } }));
|
|
76054
|
+
const Inventory_1 = __webpack_require__(1940);
|
|
76055
|
+
Object.defineProperty(exports, "Inventory", ({ enumerable: true, get: function () { return Inventory_1.Inventory; } }));
|
|
76056
|
+
const MasterPlayer_1 = __webpack_require__(3456);
|
|
76057
|
+
Object.defineProperty(exports, "MasterPlayer", ({ enumerable: true, get: function () { return MasterPlayer_1.MasterPlayer; } }));
|
|
76058
|
+
const Match_1 = __webpack_require__(3484);
|
|
76059
|
+
Object.defineProperty(exports, "Match", ({ enumerable: true, get: function () { return Match_1.Match; } }));
|
|
76060
|
+
const MatchmakingTicket_1 = __webpack_require__(1648);
|
|
76061
|
+
Object.defineProperty(exports, "MatchmakingTicket", ({ enumerable: true, get: function () { return MatchmakingTicket_1.MatchmakingTicket; } }));
|
|
76062
|
+
const MongoObject_1 = __webpack_require__(1412);
|
|
76063
|
+
Object.defineProperty(exports, "MongoObject", ({ enumerable: true, get: function () { return MongoObject_1.MongoObject; } }));
|
|
76064
|
+
const PlayerBase_1 = __webpack_require__(8116);
|
|
76065
|
+
Object.defineProperty(exports, "PlayerBase", ({ enumerable: true, get: function () { return PlayerBase_1.PlayerBase; } }));
|
|
76066
|
+
const StoreInventory_1 = __webpack_require__(140);
|
|
76067
|
+
Object.defineProperty(exports, "StoreInventory", ({ enumerable: true, get: function () { return StoreInventory_1.StoreInventory; } }));
|
|
76068
|
+
const TradeInventory_1 = __webpack_require__(1284);
|
|
76069
|
+
Object.defineProperty(exports, "TradeInventory", ({ enumerable: true, get: function () { return TradeInventory_1.TradeInventory; } }));
|
|
76070
|
+
const UploadFileInfo_1 = __webpack_require__(4272);
|
|
76071
|
+
Object.defineProperty(exports, "UploadFileInfo", ({ enumerable: true, get: function () { return UploadFileInfo_1.UploadFileInfo; } }));
|
|
76072
|
+
const xDatabase_1 = __webpack_require__(3908);
|
|
76073
|
+
Object.defineProperty(exports, "xDatabase", ({ enumerable: true, get: function () { return xDatabase_1.xDatabase; } }));
|
|
75754
76074
|
const xDatetime_1 = __webpack_require__(1308);
|
|
75755
76075
|
Object.defineProperty(exports, "xDatetime", ({ enumerable: true, get: function () { return xDatetime_1.xDatetime; } }));
|
|
75756
76076
|
const xDebug_1 = __webpack_require__(9343);
|
|
@@ -75763,20 +76083,20 @@ const xStatisticsAggregationMethod_1 = __webpack_require__(6292);
|
|
|
75763
76083
|
Object.defineProperty(exports, "xStatisticsAggregationMethod", ({ enumerable: true, get: function () { return xStatisticsAggregationMethod_1.xStatisticsAggregationMethod; } }));
|
|
75764
76084
|
const xGNSettings_1 = __webpack_require__(1592);
|
|
75765
76085
|
Object.defineProperty(exports, "xGNSettings", ({ enumerable: true, get: function () { return xGNSettings_1.xGNSettings; } }));
|
|
75766
|
-
|
|
75767
|
-
|
|
75768
|
-
|
|
75769
|
-
|
|
75770
|
-
const
|
|
75771
|
-
Object.defineProperty(exports, "
|
|
75772
|
-
const
|
|
75773
|
-
Object.defineProperty(exports, "
|
|
75774
|
-
const
|
|
75775
|
-
Object.defineProperty(exports, "
|
|
75776
|
-
const
|
|
75777
|
-
Object.defineProperty(exports, "
|
|
75778
|
-
const
|
|
75779
|
-
Object.defineProperty(exports, "
|
|
76086
|
+
const AntiDdosMiddleware_1 = __webpack_require__(276);
|
|
76087
|
+
Object.defineProperty(exports, "AntiDdosMiddleware", ({ enumerable: true, get: function () { return AntiDdosMiddleware_1.AntiDdosMiddleware; } }));
|
|
76088
|
+
const ApiMiddleware_1 = __webpack_require__(3836);
|
|
76089
|
+
Object.defineProperty(exports, "ApiMiddleware", ({ enumerable: true, get: function () { return ApiMiddleware_1.ApiMiddleware; } }));
|
|
76090
|
+
const UploadFileMiddleware_1 = __webpack_require__(4988);
|
|
76091
|
+
Object.defineProperty(exports, "UploadFileMiddleware", ({ enumerable: true, get: function () { return UploadFileMiddleware_1.UploadFileMiddleware; } }));
|
|
76092
|
+
const AdminAppHandler_1 = __webpack_require__(1500);
|
|
76093
|
+
Object.defineProperty(exports, "AdminAppHandler", ({ enumerable: true, get: function () { return AdminAppHandler_1.AdminAppHandler; } }));
|
|
76094
|
+
const HttpAppHandler_1 = __webpack_require__(7304);
|
|
76095
|
+
Object.defineProperty(exports, "HttpAppHandler", ({ enumerable: true, get: function () { return HttpAppHandler_1.HttpAppHandler; } }));
|
|
76096
|
+
const SocketAppHandler_1 = __webpack_require__(6340);
|
|
76097
|
+
Object.defineProperty(exports, "SocketAppHandler", ({ enumerable: true, get: function () { return SocketAppHandler_1.SocketAppHandler; } }));
|
|
76098
|
+
const UploadFileHandler_1 = __webpack_require__(900);
|
|
76099
|
+
Object.defineProperty(exports, "UploadFileHandler", ({ enumerable: true, get: function () { return UploadFileHandler_1.UploadFileHandler; } }));
|
|
75780
76100
|
const ApplicationSettings_1 = __webpack_require__(7584);
|
|
75781
76101
|
Object.defineProperty(exports, "ApplicationSettings", ({ enumerable: true, get: function () { return ApplicationSettings_1.ApplicationSettings; } }));
|
|
75782
76102
|
const DatabaseSettings_1 = __webpack_require__(5492);
|
|
@@ -75795,38 +76115,18 @@ const SocketAppSettings_1 = __webpack_require__(7556);
|
|
|
75795
76115
|
Object.defineProperty(exports, "SocketAppSettings", ({ enumerable: true, get: function () { return SocketAppSettings_1.SocketAppSettings; } }));
|
|
75796
76116
|
const UploadFileSettings_1 = __webpack_require__(2508);
|
|
75797
76117
|
Object.defineProperty(exports, "UploadFileSettings", ({ enumerable: true, get: function () { return UploadFileSettings_1.UploadFileSettings; } }));
|
|
75798
|
-
const
|
|
75799
|
-
Object.defineProperty(exports, "
|
|
75800
|
-
const
|
|
75801
|
-
Object.defineProperty(exports, "
|
|
75802
|
-
const
|
|
75803
|
-
Object.defineProperty(exports, "
|
|
75804
|
-
const
|
|
75805
|
-
Object.defineProperty(exports, "
|
|
75806
|
-
|
|
75807
|
-
|
|
75808
|
-
|
|
75809
|
-
|
|
75810
|
-
// import { DisplayNameUtility } from "./GN-common/helper/DisplayNameUtility";
|
|
75811
|
-
// export { DisplayNameUtility as DisplayNameUltils };
|
|
75812
|
-
// import { StringUtility } from "./GN-common/helper/StringUtility";
|
|
75813
|
-
// export { StringUtility as StringUtility };
|
|
75814
|
-
// import { Md5Generate } from "./GN-common/helper/Md5Generate";
|
|
75815
|
-
// export { Md5Generate };
|
|
75816
|
-
// import { xSparkPlayer } from "./GN-library/xdatabase/lib/entity/xSparkPlayer";
|
|
75817
|
-
// export { xSparkPlayer };
|
|
75818
|
-
// import { xGamePlayer } from "./GN-library/xdatabase/lib/entity/xGamePlayer";
|
|
75819
|
-
// export { xGamePlayer };
|
|
75820
|
-
// import { xCacheData } from "./GN-library/xcachedata/lib/xCacheData";
|
|
75821
|
-
// export { xCacheData };
|
|
75822
|
-
// import { xDatetime } from "./GN-library/xdatetime/lib/xDatetime";
|
|
75823
|
-
// export { xDatetime };
|
|
75824
|
-
// import { xRandom } from "./GN-library/xrandom/lib/xRandom";
|
|
75825
|
-
// export { xRandom };
|
|
75826
|
-
// import { GNServer } from "./GNServer";
|
|
75827
|
-
// export { GNServer };
|
|
75828
|
-
// import { DataMember, StringDataMember, GNHashtableDataMember, GNArrayDataMember, BooleanDataMember, NumberDataMember, GNFieldDataType } from "./GN-common/entity/DataMember";
|
|
75829
|
-
// export { DataMember, StringDataMember, GNHashtableDataMember, GNArrayDataMember, BooleanDataMember, NumberDataMember, GNFieldDataType };
|
|
76118
|
+
const DefaultApplicationStartup_1 = __webpack_require__(800);
|
|
76119
|
+
Object.defineProperty(exports, "DefaultApplicationStartup", ({ enumerable: true, get: function () { return DefaultApplicationStartup_1.DefaultApplicationStartup; } }));
|
|
76120
|
+
const HttpApp_1 = __webpack_require__(3303);
|
|
76121
|
+
Object.defineProperty(exports, "HttpApp", ({ enumerable: true, get: function () { return HttpApp_1.HttpApp; } }));
|
|
76122
|
+
const ServerApplication_1 = __webpack_require__(2768);
|
|
76123
|
+
Object.defineProperty(exports, "ServerApplication", ({ enumerable: true, get: function () { return ServerApplication_1.ServerApplication; } }));
|
|
76124
|
+
const ServerApplicationStartup_1 = __webpack_require__(7720);
|
|
76125
|
+
Object.defineProperty(exports, "ServerApplicationStartup", ({ enumerable: true, get: function () { return ServerApplicationStartup_1.ServerApplicationStartup; } }));
|
|
76126
|
+
const SocketApp_1 = __webpack_require__(7340);
|
|
76127
|
+
Object.defineProperty(exports, "SocketApp", ({ enumerable: true, get: function () { return SocketApp_1.SocketApp; } }));
|
|
76128
|
+
const GNServer_1 = __webpack_require__(7404);
|
|
76129
|
+
Object.defineProperty(exports, "GNServer", ({ enumerable: true, get: function () { return GNServer_1.GNServer; } }));
|
|
75830
76130
|
|
|
75831
76131
|
})();
|
|
75832
76132
|
|
package/gn.sh
CHANGED
|
@@ -79,7 +79,7 @@ GNconfig.release.json' > .gitignore
|
|
|
79
79
|
|
|
80
80
|
init_create_projectIndexJs() {
|
|
81
81
|
echo 'process.env.ENVIROMENT = "debug";
|
|
82
|
-
require("./index");' > "$PROJECT_NAME"'.index.js'
|
|
82
|
+
require("./dist/index");' > "$PROJECT_NAME"'.index.js'
|
|
83
83
|
echo 'create '"$PROJECT_NAME"'.index.js file success'
|
|
84
84
|
|
|
85
85
|
return
|
|
@@ -195,7 +195,7 @@ applicationStartup.run(() => {
|
|
|
195
195
|
|
|
196
196
|
let gnServer = applicationStartup.getGNServer();
|
|
197
197
|
|
|
198
|
-
gnServer.
|
|
198
|
+
gnServer.addCustomHandler(new TestRequestHandler(gnServer), false);
|
|
199
199
|
|
|
200
200
|
postIndex.setOptions(options);
|
|
201
201
|
postIndex.setGNServer(gnServer);
|
|
@@ -281,6 +281,7 @@ init_create_srcAppApiHandlerDir() {
|
|
|
281
281
|
StringDataMember,
|
|
282
282
|
GNHashtableDataMember,
|
|
283
283
|
GNArrayDataMember,
|
|
284
|
+
SecretInfo,
|
|
284
285
|
|
|
285
286
|
} from "@xmobitea/gn-server";
|
|
286
287
|
import { TestErrorCode } from "./../../common/constant/errorCode/TestErrorCode";
|
|
@@ -289,19 +290,19 @@ import { TestParameterCode } from "./../../common/constant/parameterCode/TestPar
|
|
|
289
290
|
|
|
290
291
|
class TestOperationRequest extends OperationRequest {
|
|
291
292
|
@BooleanDataMember({ code: TestParameterCode.Boolean, isOptional: true })
|
|
292
|
-
booleanValue
|
|
293
|
+
booleanValue?: boolean;
|
|
293
294
|
|
|
294
295
|
@NumberDataMember({ code: TestParameterCode.Number, isOptional: true })
|
|
295
|
-
numberValue
|
|
296
|
+
numberValue?: number;
|
|
296
297
|
|
|
297
298
|
@StringDataMember({ code: TestParameterCode.String, isOptional: true })
|
|
298
|
-
stringValue
|
|
299
|
+
stringValue?: string;
|
|
299
300
|
|
|
300
301
|
@GNHashtableDataMember({ code: TestParameterCode.GNHashtable, isOptional: true })
|
|
301
|
-
gnHashtableValue
|
|
302
|
+
gnHashtableValue?: GNHashtable;
|
|
302
303
|
|
|
303
304
|
@GNArrayDataMember({ code: TestParameterCode.GNArray, isOptional: true })
|
|
304
|
-
gnArrayValue
|
|
305
|
+
gnArrayValue?: GNArray;
|
|
305
306
|
|
|
306
307
|
public override isValidRequest() {
|
|
307
308
|
return true;
|
|
@@ -319,6 +320,7 @@ export class TestRequestHandler extends RequestHandler {
|
|
|
319
320
|
|
|
320
321
|
public async handle(
|
|
321
322
|
authInfo: AuthInfo,
|
|
323
|
+
secretInfo: SecretInfo,
|
|
322
324
|
operationRequest: OperationRequest
|
|
323
325
|
): Promise<OperationResponse> {
|
|
324
326
|
let request = this.requestConverterService.createTOperationRequest(operationRequest, this.getCommonOperationRequest());
|
|
@@ -327,39 +329,46 @@ export class TestRequestHandler extends RequestHandler {
|
|
|
327
329
|
return this.newInvalidRequestParameters(request);
|
|
328
330
|
}
|
|
329
331
|
|
|
330
|
-
|
|
331
|
-
request.
|
|
332
|
-
request.
|
|
333
|
-
|
|
332
|
+
return this.execute({
|
|
333
|
+
booleanValue: request.booleanValue,
|
|
334
|
+
numberValue: request.numberValue,
|
|
335
|
+
stringValue: request.stringValue,
|
|
336
|
+
gnHashtableValue: request.gnHashtableValue,
|
|
337
|
+
gnArrayValue: request.gnArrayValue,
|
|
338
|
+
}, secretInfo, operationRequest);
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
private async execute(request: { booleanValue: boolean, numberValue: number, stringValue: string, gnHashtableValue: GNHashtable, gnArrayValue: GNArray }, secretInfo: SecretInfo, operationRequest: OperationRequest): Promise<OperationResponse> {
|
|
342
|
+
let operationResponse = new OperationResponse(operationRequest.getOperationCode(), operationRequest.getRequestId());
|
|
334
343
|
operationResponse.setReturnCode(ReturnCode.Ok);
|
|
335
|
-
operationResponse.
|
|
344
|
+
operationResponse.setParameter(
|
|
336
345
|
ParameterCode.ErrorCode,
|
|
337
346
|
TestErrorCode.Ok
|
|
338
347
|
);
|
|
339
348
|
|
|
340
|
-
operationResponse.
|
|
349
|
+
operationResponse.setParameter(
|
|
341
350
|
TestParameterCode.Boolean,
|
|
342
351
|
request.booleanValue
|
|
343
352
|
);
|
|
344
|
-
operationResponse.
|
|
353
|
+
operationResponse.setParameter(
|
|
345
354
|
TestParameterCode.Number,
|
|
346
355
|
request.numberValue
|
|
347
356
|
);
|
|
348
|
-
operationResponse.
|
|
357
|
+
operationResponse.setParameter(
|
|
349
358
|
TestParameterCode.String,
|
|
350
359
|
request.stringValue
|
|
351
360
|
);
|
|
352
|
-
operationResponse.
|
|
361
|
+
operationResponse.setParameter(
|
|
353
362
|
TestParameterCode.GNHashtable,
|
|
354
363
|
request.gnHashtableValue
|
|
355
364
|
);
|
|
356
|
-
operationResponse.
|
|
365
|
+
operationResponse.setParameter(
|
|
357
366
|
TestParameterCode.GNArray,
|
|
358
367
|
request.gnArrayValue
|
|
359
368
|
);
|
|
360
369
|
|
|
361
370
|
return operationResponse;
|
|
362
|
-
|
|
371
|
+
}
|
|
363
372
|
}' > TestRequestHandler.ts
|
|
364
373
|
echo 'create TestRequestHandler.ts file success'
|
|
365
374
|
|