@xmobitea/gn-typescript-client 2.6.11-tsc → 2.6.12
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/LICENSE +1 -1
- package/README.MD +1 -0
- package/dist/gearn.js.client.js +47228 -0
- package/dist/gearn.js.client.min.js +2 -0
- package/dist/gearn.js.client.min.js.LICENSE.txt +14 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +34236 -337
- package/package.json +9 -9
- package/dist/runtime/GNNetwork.js +0 -260
- package/dist/runtime/GNNetworkAuthenticateApi.js +0 -122
- package/dist/runtime/GNNetworkCharacterPlayerApi.js +0 -968
- package/dist/runtime/GNNetworkCloudScriptApi.js +0 -104
- package/dist/runtime/GNNetworkContentApi.js +0 -140
- package/dist/runtime/GNNetworkDashboardApi.js +0 -170
- package/dist/runtime/GNNetworkGamePlayerApi.js +0 -950
- package/dist/runtime/GNNetworkGroupApi.js +0 -734
- package/dist/runtime/GNNetworkInventoryApi.js +0 -626
- package/dist/runtime/GNNetworkMasterPlayerApi.js +0 -1550
- package/dist/runtime/GNNetworkMultiplayerApi.js +0 -194
- package/dist/runtime/GNNetworkStoreInventoryApi.js +0 -266
- package/dist/runtime/common/Action0.js +0 -1
- package/dist/runtime/common/Action1.js +0 -1
- package/dist/runtime/common/Action2.js +0 -1
- package/dist/runtime/common/Action3.js +0 -1
- package/dist/runtime/common/Action4.js +0 -1
- package/dist/runtime/common/GNData.js +0 -211
- package/dist/runtime/config/GNServerSettings.js +0 -156
- package/dist/runtime/constant/Commands.js +0 -20
- package/dist/runtime/constant/EventCode.js +0 -8
- package/dist/runtime/constant/OperationCode.js +0 -221
- package/dist/runtime/constant/ReturnCode.js +0 -14
- package/dist/runtime/constant/enumType/ExecuteResponseStatus.js +0 -8
- package/dist/runtime/constant/enumType/FriendStatus.js +0 -7
- package/dist/runtime/constant/enumType/GoogleLoginType.js +0 -5
- package/dist/runtime/constant/enumType/GroupStatus.js +0 -7
- package/dist/runtime/constant/enumType/InvalidMemberType.js +0 -18
- package/dist/runtime/constant/enumType/ItemType.js +0 -5
- package/dist/runtime/constant/enumType/MatchmakingMemberStatus.js +0 -6
- package/dist/runtime/constant/enumType/MatchmakingTicketStatus.js +0 -8
- package/dist/runtime/constant/enumType/OwnerType.js +0 -9
- package/dist/runtime/constant/enumType/PermissionDataItem.js +0 -5
- package/dist/runtime/constant/enumType/PushPlatformType.js +0 -5
- package/dist/runtime/constant/enumType/RequestRole.js +0 -6
- package/dist/runtime/constant/enumType/RequestType.js +0 -15
- package/dist/runtime/constant/enumType/StoreItemType.js +0 -5
- package/dist/runtime/constant/enumType/StoreReceiveType.js +0 -8
- package/dist/runtime/constant/errorCode/ErrorCode.js +0 -52
- package/dist/runtime/constant/parameterCode/ParameterCode.js +0 -617
- package/dist/runtime/entity/DataMember.js +0 -208
- package/dist/runtime/entity/GNMetadata.js +0 -11
- package/dist/runtime/entity/InvalidMember.js +0 -1
- package/dist/runtime/entity/OperationEvent.js +0 -24
- package/dist/runtime/entity/OperationHelper.js +0 -24
- package/dist/runtime/entity/OperationRequest.js +0 -42
- package/dist/runtime/entity/OperationResponse.js +0 -73
- package/dist/runtime/entity/models/AuthenticateModels.js +0 -426
- package/dist/runtime/entity/models/AuthenticateRequestModels.js +0 -188
- package/dist/runtime/entity/models/AuthenticateResponseModels.js +0 -131
- package/dist/runtime/entity/models/CharacterPlayerModels.js +0 -1433
- package/dist/runtime/entity/models/CharacterPlayerRequestModels.js +0 -1386
- package/dist/runtime/entity/models/CharacterPlayerResponseModels.js +0 -376
- package/dist/runtime/entity/models/CloudScriptModels.js +0 -197
- package/dist/runtime/entity/models/CloudScriptRequestModels.js +0 -138
- package/dist/runtime/entity/models/CloudScriptResponseModels.js +0 -40
- package/dist/runtime/entity/models/ContentModels.js +0 -203
- package/dist/runtime/entity/models/ContentRequestModels.js +0 -190
- package/dist/runtime/entity/models/ContentResponseModels.js +0 -54
- package/dist/runtime/entity/models/DashboardModels.js +0 -3002
- package/dist/runtime/entity/models/DashboardRequestModels.js +0 -268
- package/dist/runtime/entity/models/DashboardResponseModels.js +0 -187
- package/dist/runtime/entity/models/GamePlayerModels.js +0 -1591
- package/dist/runtime/entity/models/GamePlayerRequestModels.js +0 -1360
- package/dist/runtime/entity/models/GamePlayerResponseModels.js +0 -369
- package/dist/runtime/entity/models/GenericModels.js +0 -177
- package/dist/runtime/entity/models/GroupModels.js +0 -1135
- package/dist/runtime/entity/models/GroupRequestModels.js +0 -1048
- package/dist/runtime/entity/models/GroupResponseModels.js +0 -285
- package/dist/runtime/entity/models/InventoryModels.js +0 -915
- package/dist/runtime/entity/models/InventoryRequestModels.js +0 -892
- package/dist/runtime/entity/models/InventoryResponseModels.js +0 -243
- package/dist/runtime/entity/models/MasterPlayerModels.js +0 -2573
- package/dist/runtime/entity/models/MasterPlayerRequestModels.js +0 -2228
- package/dist/runtime/entity/models/MasterPlayerResponseModels.js +0 -607
- package/dist/runtime/entity/models/MultiplayerModels.js +0 -404
- package/dist/runtime/entity/models/MultiplayerRequestModels.js +0 -268
- package/dist/runtime/entity/models/MultiplayerResponseModels.js +0 -75
- package/dist/runtime/entity/models/StoreInventoryModels.js +0 -797
- package/dist/runtime/entity/models/StoreInventoryRequestModels.js +0 -372
- package/dist/runtime/entity/models/StoreInventoryResponseModels.js +0 -103
- package/dist/runtime/entity/request/CustomOperationRequest.js +0 -24
- package/dist/runtime/entity/response/CustomOperationResponse.js +0 -29
- package/dist/runtime/entity/response/GetAuthInfoResponse.js +0 -2
- package/dist/runtime/entity/response/HealthCheckResponse.js +0 -2
- package/dist/runtime/entity/response/UploadFileResponse.js +0 -2
- package/dist/runtime/helper/CodeHelper.js +0 -63
- package/dist/runtime/helper/ConverterService.js +0 -275
- package/dist/runtime/helper/EnumUtility.js +0 -33
- package/dist/runtime/helper/GNSupport.js +0 -8
- package/dist/runtime/helper/GNUtils.js +0 -72
- package/dist/runtime/helper/MessagePackConverterService.js +0 -9
- package/dist/runtime/logger/GNDebug.js +0 -29
- package/dist/runtime/networking/AuthenticateStatus.js +0 -14
- package/dist/runtime/networking/IPeer.js +0 -1
- package/dist/runtime/networking/NetworkingPeer.js +0 -208
- package/dist/runtime/networking/OperationPending.js +0 -53
- package/dist/runtime/networking/PeerBase.js +0 -161
- package/dist/runtime/networking/handler/IServerEventHandler.js +0 -13
- package/dist/runtime/networking/handler/OnCharacterPlayerFriendUpdateEventHandler.js +0 -39
- package/dist/runtime/networking/handler/OnCharacterPlayerGroupUpdateEventHandler.js +0 -39
- package/dist/runtime/networking/handler/OnGamePlayerFriendUpdateEventHandler.js +0 -39
- package/dist/runtime/networking/handler/OnGamePlayerGroupUpdateEventHandler.js +0 -39
- package/dist/runtime/networking/handler/OnGroupMemberUpdateEventHandler.js +0 -35
- package/dist/runtime/networking/handler/OnGroupMessageUpdateEventHandler.js +0 -43
- package/dist/runtime/networking/http/HttpPeer.js +0 -123
- package/dist/runtime/networking/http/NetworkingHttpPeerBase.js +0 -9
- package/dist/runtime/networking/http/NetworkingPeerAxiosRequest.js +0 -179
- package/dist/runtime/networking/socket/NetworkingPeerSocketIOClient.js +0 -130
- package/dist/runtime/networking/socket/NetworkingSocketPeerBase.js +0 -165
- package/dist/runtime/networking/socket/SocketPeer.js +0 -115
- package/dist/runtime/typescript/ServiceUpdate.js +0 -12
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
export var InvalidMemberType;
|
|
2
|
-
(function (InvalidMemberType) {
|
|
3
|
-
InvalidMemberType[InvalidMemberType["UnknownError"] = 1] = "UnknownError";
|
|
4
|
-
InvalidMemberType[InvalidMemberType["DataRequired"] = 2] = "DataRequired";
|
|
5
|
-
InvalidMemberType[InvalidMemberType["TypeInvalid"] = 3] = "TypeInvalid";
|
|
6
|
-
InvalidMemberType[InvalidMemberType["StringNull"] = 4] = "StringNull";
|
|
7
|
-
InvalidMemberType[InvalidMemberType["StringMinLength"] = 5] = "StringMinLength";
|
|
8
|
-
InvalidMemberType[InvalidMemberType["StringMaxLength"] = 6] = "StringMaxLength";
|
|
9
|
-
InvalidMemberType[InvalidMemberType["NumberMinValue"] = 7] = "NumberMinValue";
|
|
10
|
-
InvalidMemberType[InvalidMemberType["NumberMaxValue"] = 8] = "NumberMaxValue";
|
|
11
|
-
InvalidMemberType[InvalidMemberType["NumberMustInt"] = 9] = "NumberMustInt";
|
|
12
|
-
InvalidMemberType[InvalidMemberType["GNHashtableNull"] = 10] = "GNHashtableNull";
|
|
13
|
-
InvalidMemberType[InvalidMemberType["GNHashtableMinLength"] = 11] = "GNHashtableMinLength";
|
|
14
|
-
InvalidMemberType[InvalidMemberType["GNHashtableMaxLength"] = 12] = "GNHashtableMaxLength";
|
|
15
|
-
InvalidMemberType[InvalidMemberType["GNArrayNull"] = 13] = "GNArrayNull";
|
|
16
|
-
InvalidMemberType[InvalidMemberType["GNArrayMinLength"] = 14] = "GNArrayMinLength";
|
|
17
|
-
InvalidMemberType[InvalidMemberType["GNArrayMaxLength"] = 15] = "GNArrayMaxLength";
|
|
18
|
-
})(InvalidMemberType || (InvalidMemberType = {}));
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
export var MatchmakingMemberStatus;
|
|
2
|
-
(function (MatchmakingMemberStatus) {
|
|
3
|
-
MatchmakingMemberStatus[MatchmakingMemberStatus["Pending"] = 1] = "Pending";
|
|
4
|
-
MatchmakingMemberStatus[MatchmakingMemberStatus["Joined"] = 2] = "Joined";
|
|
5
|
-
MatchmakingMemberStatus[MatchmakingMemberStatus["Canceled"] = 3] = "Canceled";
|
|
6
|
-
})(MatchmakingMemberStatus || (MatchmakingMemberStatus = {}));
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export var MatchmakingTicketStatus;
|
|
2
|
-
(function (MatchmakingTicketStatus) {
|
|
3
|
-
MatchmakingTicketStatus[MatchmakingTicketStatus["WaitingForMembers"] = 1] = "WaitingForMembers";
|
|
4
|
-
MatchmakingTicketStatus[MatchmakingTicketStatus["WaitingForMatch"] = 2] = "WaitingForMatch";
|
|
5
|
-
MatchmakingTicketStatus[MatchmakingTicketStatus["WaitingForServer"] = 3] = "WaitingForServer";
|
|
6
|
-
MatchmakingTicketStatus[MatchmakingTicketStatus["Matched"] = 4] = "Matched";
|
|
7
|
-
MatchmakingTicketStatus[MatchmakingTicketStatus["Canceled"] = 5] = "Canceled";
|
|
8
|
-
})(MatchmakingTicketStatus || (MatchmakingTicketStatus = {}));
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
export var OwnerType;
|
|
2
|
-
(function (OwnerType) {
|
|
3
|
-
OwnerType[OwnerType["MasterPlayer"] = 1] = "MasterPlayer";
|
|
4
|
-
OwnerType[OwnerType["GamePlayer"] = 2] = "GamePlayer";
|
|
5
|
-
OwnerType[OwnerType["CharacterPlayer"] = 3] = "CharacterPlayer";
|
|
6
|
-
OwnerType[OwnerType["Group"] = 4] = "Group";
|
|
7
|
-
OwnerType[OwnerType["Inventory"] = 5] = "Inventory";
|
|
8
|
-
OwnerType[OwnerType["StoreInventory"] = 6] = "StoreInventory";
|
|
9
|
-
})(OwnerType || (OwnerType = {}));
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
export var RequestType;
|
|
2
|
-
(function (RequestType) {
|
|
3
|
-
RequestType[RequestType["Custom"] = 0] = "Custom";
|
|
4
|
-
RequestType[RequestType["Authenticate"] = 1] = "Authenticate";
|
|
5
|
-
RequestType[RequestType["CharacterPlayer"] = 2] = "CharacterPlayer";
|
|
6
|
-
RequestType[RequestType["Content"] = 3] = "Content";
|
|
7
|
-
RequestType[RequestType["GamePlayer"] = 4] = "GamePlayer";
|
|
8
|
-
RequestType[RequestType["Group"] = 5] = "Group";
|
|
9
|
-
RequestType[RequestType["Inventory"] = 6] = "Inventory";
|
|
10
|
-
RequestType[RequestType["MasterPlayer"] = 7] = "MasterPlayer";
|
|
11
|
-
RequestType[RequestType["StoreInventory"] = 8] = "StoreInventory";
|
|
12
|
-
RequestType[RequestType["Dashboard"] = 9] = "Dashboard";
|
|
13
|
-
RequestType[RequestType["Multiplayer"] = 10] = "Multiplayer";
|
|
14
|
-
RequestType[RequestType["CloudScript"] = 11] = "CloudScript";
|
|
15
|
-
})(RequestType || (RequestType = {}));
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export var StoreReceiveType;
|
|
2
|
-
(function (StoreReceiveType) {
|
|
3
|
-
StoreReceiveType[StoreReceiveType["Buy"] = 1] = "Buy";
|
|
4
|
-
StoreReceiveType[StoreReceiveType["Present"] = 2] = "Present";
|
|
5
|
-
StoreReceiveType[StoreReceiveType["AppleAppStore"] = 3] = "AppleAppStore";
|
|
6
|
-
StoreReceiveType[StoreReceiveType["FacebookStore"] = 4] = "FacebookStore";
|
|
7
|
-
StoreReceiveType[StoreReceiveType["GooglePlayStore"] = 5] = "GooglePlayStore";
|
|
8
|
-
})(StoreReceiveType || (StoreReceiveType = {}));
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
export class ErrorCode {
|
|
2
|
-
}
|
|
3
|
-
ErrorCode.Ok = 1;
|
|
4
|
-
ErrorCode.AccountNotFound = 2;
|
|
5
|
-
ErrorCode.AccountPasswordWrong = 3;
|
|
6
|
-
ErrorCode.AccountUsernameExists = 4;
|
|
7
|
-
ErrorCode.VerifyTokenError = 5;
|
|
8
|
-
ErrorCode.VerifyFailed = 6;
|
|
9
|
-
ErrorCode.CharacterPlayerNotFound = 7;
|
|
10
|
-
ErrorCode.NotEnoughCurrency = 8;
|
|
11
|
-
ErrorCode.KeyNotFound = 9;
|
|
12
|
-
ErrorCode.ItemNotFound = 10;
|
|
13
|
-
ErrorCode.CatalogIdNotFound = 11;
|
|
14
|
-
ErrorCode.GroupNotFound = 12;
|
|
15
|
-
ErrorCode.OwnerNotFound = 13;
|
|
16
|
-
ErrorCode.ClassIdNotFound = 14;
|
|
17
|
-
ErrorCode.MemberNotFound = 15;
|
|
18
|
-
ErrorCode.PlayerNotMember = 16;
|
|
19
|
-
ErrorCode.GamePlayerNotFound = 17;
|
|
20
|
-
ErrorCode.FileNotFound = 18;
|
|
21
|
-
ErrorCode.FileNotUpload = 19;
|
|
22
|
-
ErrorCode.OwnerTypeNotSupport = 20;
|
|
23
|
-
ErrorCode.ItemNotStackable = 21;
|
|
24
|
-
ErrorCode.GameNotFound = 22;
|
|
25
|
-
ErrorCode.GameIsExists = 23;
|
|
26
|
-
ErrorCode.SecretInfoNotFound = 24;
|
|
27
|
-
ErrorCode.SecretInfoIsExists = 25;
|
|
28
|
-
ErrorCode.ExternalNotLinked = 26;
|
|
29
|
-
ErrorCode.ExternalLinkedOtherAccount = 27;
|
|
30
|
-
ErrorCode.ExternalLinkedOtherValue = 28;
|
|
31
|
-
ErrorCode.MasterPlayerNotFound = 29;
|
|
32
|
-
ErrorCode.StoreItemNotFound = 30;
|
|
33
|
-
ErrorCode.BuyerNotFound = 31;
|
|
34
|
-
ErrorCode.CanNotBuyThisStoreItem = 32;
|
|
35
|
-
ErrorCode.ExceptionWhenValidateReceipt = 33;
|
|
36
|
-
ErrorCode.StoreInvalid = 34;
|
|
37
|
-
ErrorCode.ReceiptInvalid = 35;
|
|
38
|
-
ErrorCode.StoreItemHadBeenRemove = 36;
|
|
39
|
-
ErrorCode.DisplayNameHasUse = 37;
|
|
40
|
-
ErrorCode.PlayerBan = 38;
|
|
41
|
-
ErrorCode.MatchmakingTicketNotFound = 39;
|
|
42
|
-
ErrorCode.MatchmakingTicketAlreadyCompleted = 40;
|
|
43
|
-
ErrorCode.MatchmakingPlayerHasNotJoinedTicket = 41;
|
|
44
|
-
ErrorCode.MatchNotFound = 42;
|
|
45
|
-
ErrorCode.MatchmakingPlayerHasJoinedOtherTicket = 43;
|
|
46
|
-
ErrorCode.MatchmakingQueueNotFound = 44;
|
|
47
|
-
ErrorCode.TicketSizeError = 45;
|
|
48
|
-
ErrorCode.ExecuteError = 46;
|
|
49
|
-
ErrorCode.VersionInvalid = 47;
|
|
50
|
-
ErrorCode.EmailInvalid = 48;
|
|
51
|
-
ErrorCode.StoreItemHadPurchaseAndNonConsumable = 49;
|
|
52
|
-
ErrorCode.StoreItemHadExists = 50;
|