@xmobitea/gn-typescript-client 2.6.6 → 2.6.7-tsc
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/index.js +337 -34157
- package/dist/runtime/GNNetwork.js +250 -0
- package/dist/runtime/GNNetworkAuthenticateApi.js +122 -0
- package/dist/runtime/GNNetworkCharacterPlayerApi.js +968 -0
- package/dist/runtime/GNNetworkCloudScriptApi.js +104 -0
- package/dist/runtime/GNNetworkContentApi.js +140 -0
- package/dist/runtime/GNNetworkDashboardApi.js +170 -0
- package/dist/runtime/GNNetworkGamePlayerApi.js +950 -0
- package/dist/runtime/GNNetworkGroupApi.js +734 -0
- package/dist/runtime/GNNetworkInventoryApi.js +626 -0
- package/dist/runtime/GNNetworkMasterPlayerApi.js +1550 -0
- package/dist/runtime/GNNetworkMultiplayerApi.js +194 -0
- package/dist/runtime/GNNetworkStoreInventoryApi.js +266 -0
- package/dist/runtime/common/Action0.js +1 -0
- package/dist/runtime/common/Action1.js +1 -0
- package/dist/runtime/common/Action2.js +1 -0
- package/dist/runtime/common/Action3.js +1 -0
- package/dist/runtime/common/Action4.js +1 -0
- package/dist/runtime/common/GNData.js +211 -0
- package/dist/runtime/config/GNServerSettings.js +149 -0
- package/dist/runtime/constant/Commands.js +19 -0
- package/dist/runtime/constant/EventCode.js +8 -0
- package/dist/runtime/constant/OperationCode.js +221 -0
- package/dist/runtime/constant/ReturnCode.js +14 -0
- package/dist/runtime/constant/enumType/ExecuteResponseStatus.js +8 -0
- package/dist/runtime/constant/enumType/FriendStatus.js +7 -0
- package/dist/runtime/constant/enumType/GoogleLoginType.js +5 -0
- package/dist/runtime/constant/enumType/GroupStatus.js +7 -0
- package/dist/runtime/constant/enumType/InvalidMemberType.js +18 -0
- package/dist/runtime/constant/enumType/ItemType.js +5 -0
- package/dist/runtime/constant/enumType/MatchmakingMemberStatus.js +6 -0
- package/dist/runtime/constant/enumType/MatchmakingTicketStatus.js +8 -0
- package/dist/runtime/constant/enumType/OwnerType.js +9 -0
- package/dist/runtime/constant/enumType/PermissionDataItem.js +5 -0
- package/dist/runtime/constant/enumType/PushPlatformType.js +5 -0
- package/dist/runtime/constant/enumType/RequestRole.js +6 -0
- package/dist/runtime/constant/enumType/RequestType.js +15 -0
- package/dist/runtime/constant/enumType/StoreItemType.js +5 -0
- package/dist/runtime/constant/enumType/StoreReceiveType.js +8 -0
- package/dist/runtime/constant/errorCode/ErrorCode.js +52 -0
- package/dist/runtime/constant/parameterCode/ParameterCode.d.ts +1 -0
- package/dist/runtime/constant/parameterCode/ParameterCode.js +617 -0
- package/dist/runtime/entity/DataMember.js +208 -0
- package/dist/runtime/entity/GNMetadata.js +11 -0
- package/dist/runtime/entity/InvalidMember.js +1 -0
- package/dist/runtime/entity/OperationEvent.js +24 -0
- package/dist/runtime/entity/OperationHelper.js +24 -0
- package/dist/runtime/entity/OperationRequest.js +42 -0
- package/dist/runtime/entity/OperationResponse.js +73 -0
- package/dist/runtime/entity/models/AuthenticateModels.js +426 -0
- package/dist/runtime/entity/models/AuthenticateRequestModels.js +188 -0
- package/dist/runtime/entity/models/AuthenticateResponseModels.js +131 -0
- package/dist/runtime/entity/models/CharacterPlayerModels.js +1437 -0
- package/dist/runtime/entity/models/CharacterPlayerRequestModels.js +1386 -0
- package/dist/runtime/entity/models/CharacterPlayerResponseModels.js +376 -0
- package/dist/runtime/entity/models/CloudScriptModels.js +197 -0
- package/dist/runtime/entity/models/CloudScriptRequestModels.js +138 -0
- package/dist/runtime/entity/models/CloudScriptResponseModels.js +40 -0
- package/dist/runtime/entity/models/ContentModels.js +203 -0
- package/dist/runtime/entity/models/ContentRequestModels.js +190 -0
- package/dist/runtime/entity/models/ContentResponseModels.js +54 -0
- package/dist/runtime/entity/models/DashboardModels.d.ts +7 -4
- package/dist/runtime/entity/models/DashboardModels.js +3002 -0
- package/dist/runtime/entity/models/DashboardRequestModels.js +268 -0
- package/dist/runtime/entity/models/DashboardResponseModels.js +187 -0
- package/dist/runtime/entity/models/GamePlayerModels.js +1591 -0
- package/dist/runtime/entity/models/GamePlayerRequestModels.js +1360 -0
- package/dist/runtime/entity/models/GamePlayerResponseModels.js +369 -0
- package/dist/runtime/entity/models/GenericModels.js +177 -0
- package/dist/runtime/entity/models/GroupModels.js +1139 -0
- package/dist/runtime/entity/models/GroupRequestModels.js +1048 -0
- package/dist/runtime/entity/models/GroupResponseModels.js +285 -0
- package/dist/runtime/entity/models/InventoryModels.js +915 -0
- package/dist/runtime/entity/models/InventoryRequestModels.js +892 -0
- package/dist/runtime/entity/models/InventoryResponseModels.js +243 -0
- package/dist/runtime/entity/models/MasterPlayerModels.js +2573 -0
- package/dist/runtime/entity/models/MasterPlayerRequestModels.js +2228 -0
- package/dist/runtime/entity/models/MasterPlayerResponseModels.js +607 -0
- package/dist/runtime/entity/models/MultiplayerModels.js +404 -0
- package/dist/runtime/entity/models/MultiplayerRequestModels.js +268 -0
- package/dist/runtime/entity/models/MultiplayerResponseModels.js +75 -0
- package/dist/runtime/entity/models/StoreInventoryModels.js +797 -0
- package/dist/runtime/entity/models/StoreInventoryRequestModels.js +372 -0
- package/dist/runtime/entity/models/StoreInventoryResponseModels.js +103 -0
- package/dist/runtime/entity/request/CustomOperationRequest.js +24 -0
- package/dist/runtime/entity/response/CustomOperationResponse.js +29 -0
- package/dist/runtime/entity/response/GetAuthInfoResponse.js +2 -0
- package/dist/runtime/entity/response/UploadFileResponse.js +2 -0
- package/dist/runtime/helper/CodeHelper.js +63 -0
- package/dist/runtime/helper/ConverterService.js +275 -0
- package/dist/runtime/helper/EnumUtility.js +33 -0
- package/dist/runtime/helper/GNSupport.js +8 -0
- package/dist/runtime/helper/GNUtils.js +72 -0
- package/dist/runtime/helper/MessagePackConverterService.js +9 -0
- package/dist/runtime/logger/GNDebug.js +29 -0
- package/dist/runtime/networking/AuthenticateStatus.js +14 -0
- package/dist/runtime/networking/IPeer.js +1 -0
- package/dist/runtime/networking/NetworkingPeer.js +178 -0
- package/dist/runtime/networking/OperationPending.js +53 -0
- package/dist/runtime/networking/PeerBase.js +161 -0
- package/dist/runtime/networking/handler/IServerEventHandler.js +13 -0
- package/dist/runtime/networking/handler/OnCharacterPlayerFriendUpdateEventHandler.js +39 -0
- package/dist/runtime/networking/handler/OnCharacterPlayerGroupUpdateEventHandler.js +39 -0
- package/dist/runtime/networking/handler/OnGamePlayerFriendUpdateEventHandler.js +39 -0
- package/dist/runtime/networking/handler/OnGamePlayerGroupUpdateEventHandler.js +39 -0
- package/dist/runtime/networking/handler/OnGroupMemberUpdateEventHandler.js +35 -0
- package/dist/runtime/networking/handler/OnGroupMessageUpdateEventHandler.js +43 -0
- package/dist/runtime/networking/http/HttpPeer.js +122 -0
- package/dist/runtime/networking/http/NetworkingHttpPeerBase.js +6 -0
- package/dist/runtime/networking/http/NetworkingPeerAxiosRequest.js +164 -0
- package/dist/runtime/networking/socket/NetworkingPeerSocketIOClient.js +130 -0
- package/dist/runtime/networking/socket/NetworkingSocketPeerBase.js +165 -0
- package/dist/runtime/networking/socket/SocketPeer.js +115 -0
- package/dist/runtime/typescript/ServiceUpdate.js +12 -0
- package/package.json +2 -1
- package/dist/gn.js.client.js +0 -46879
- package/dist/gn.js.client.min.js +0 -2
- package/dist/gn.js.client.min.js.LICENSE.txt +0 -14
|
@@ -0,0 +1,6 @@
|
|
|
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 = {}));
|
|
@@ -0,0 +1,8 @@
|
|
|
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 = {}));
|
|
@@ -0,0 +1,9 @@
|
|
|
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 = {}));
|
|
@@ -0,0 +1,15 @@
|
|
|
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 = {}));
|
|
@@ -0,0 +1,8 @@
|
|
|
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 = {}));
|
|
@@ -0,0 +1,52 @@
|
|
|
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;
|
|
@@ -599,6 +599,7 @@ export declare class ParameterCode {
|
|
|
599
599
|
static readonly Objects: string;
|
|
600
600
|
static readonly Indexes: string;
|
|
601
601
|
static readonly DatabaseSystem: string;
|
|
602
|
+
static readonly LogDatabaseSystem: string;
|
|
602
603
|
static readonly Cost: string;
|
|
603
604
|
static readonly MonthlyCost: string;
|
|
604
605
|
static readonly RequestCount: string;
|