@xmobitea/gn-typescript-client 2.6.2 → 2.6.3-esnext

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (116) hide show
  1. package/dist/index.js +339 -34512
  2. package/dist/runtime/GNNetwork.js +250 -0
  3. package/dist/runtime/GNNetworkAuthenticateApi.js +122 -0
  4. package/dist/runtime/GNNetworkCharacterPlayerApi.js +968 -0
  5. package/dist/runtime/GNNetworkCloudScriptApi.js +104 -0
  6. package/dist/runtime/GNNetworkContentApi.js +140 -0
  7. package/dist/runtime/GNNetworkDashboardApi.js +170 -0
  8. package/dist/runtime/GNNetworkGamePlayerApi.js +950 -0
  9. package/dist/runtime/GNNetworkGroupApi.js +734 -0
  10. package/dist/runtime/GNNetworkInventoryApi.js +626 -0
  11. package/dist/runtime/GNNetworkMasterPlayerApi.js +1550 -0
  12. package/dist/runtime/GNNetworkMultiplayerApi.js +194 -0
  13. package/dist/runtime/GNNetworkStoreInventoryApi.js +266 -0
  14. package/dist/runtime/common/Action0.js +1 -0
  15. package/dist/runtime/common/Action1.js +1 -0
  16. package/dist/runtime/common/Action2.js +1 -0
  17. package/dist/runtime/common/Action3.js +1 -0
  18. package/dist/runtime/common/Action4.js +1 -0
  19. package/dist/runtime/common/GNData.js +211 -0
  20. package/dist/runtime/config/GNServerSettings.js +141 -0
  21. package/dist/runtime/constant/Commands.js +19 -0
  22. package/dist/runtime/constant/EventCode.js +8 -0
  23. package/dist/runtime/constant/OperationCode.js +221 -0
  24. package/dist/runtime/constant/ReturnCode.js +14 -0
  25. package/dist/runtime/constant/enumType/ExecuteResponseStatus.js +8 -0
  26. package/dist/runtime/constant/enumType/FriendStatus.js +7 -0
  27. package/dist/runtime/constant/enumType/GoogleLoginType.js +5 -0
  28. package/dist/runtime/constant/enumType/GroupStatus.js +7 -0
  29. package/dist/runtime/constant/enumType/InvalidMemberType.js +18 -0
  30. package/dist/runtime/constant/enumType/ItemType.js +5 -0
  31. package/dist/runtime/constant/enumType/MatchmakingMemberStatus.js +6 -0
  32. package/dist/runtime/constant/enumType/MatchmakingTicketStatus.js +8 -0
  33. package/dist/runtime/constant/enumType/OwnerType.js +9 -0
  34. package/dist/runtime/constant/enumType/PermissionDataItem.js +5 -0
  35. package/dist/runtime/constant/enumType/PushPlatformType.js +5 -0
  36. package/dist/runtime/constant/enumType/RequestRole.js +6 -0
  37. package/dist/runtime/constant/enumType/RequestType.js +15 -0
  38. package/dist/runtime/constant/enumType/StoreItemType.js +5 -0
  39. package/dist/runtime/constant/enumType/StoreReceiveType.js +8 -0
  40. package/dist/runtime/constant/errorCode/GNErrorCode.js +52 -0
  41. package/dist/runtime/constant/parameterCode/GNParameterCode.js +599 -0
  42. package/dist/runtime/constant/parameterCode/ParameterCode.js +6 -0
  43. package/dist/runtime/entity/DataMember.js +208 -0
  44. package/dist/runtime/entity/GNMetadata.js +11 -0
  45. package/dist/runtime/entity/InvalidMember.js +1 -0
  46. package/dist/runtime/entity/OperationEvent.js +33 -0
  47. package/dist/runtime/entity/OperationHelper.js +23 -0
  48. package/dist/runtime/entity/OperationRequest.js +51 -0
  49. package/dist/runtime/entity/OperationResponse.js +82 -0
  50. package/dist/runtime/entity/models/AuthenticateModels.js +420 -0
  51. package/dist/runtime/entity/models/AuthenticateRequestModels.js +206 -0
  52. package/dist/runtime/entity/models/AuthenticateResponseModels.js +131 -0
  53. package/dist/runtime/entity/models/CharacterPlayerModels.js +1437 -0
  54. package/dist/runtime/entity/models/CharacterPlayerRequestModels.js +1439 -0
  55. package/dist/runtime/entity/models/CharacterPlayerResponseModels.js +376 -0
  56. package/dist/runtime/entity/models/CloudScriptModels.js +197 -0
  57. package/dist/runtime/entity/models/CloudScriptRequestModels.js +143 -0
  58. package/dist/runtime/entity/models/CloudScriptResponseModels.js +40 -0
  59. package/dist/runtime/entity/models/ContentModels.js +203 -0
  60. package/dist/runtime/entity/models/ContentRequestModels.js +197 -0
  61. package/dist/runtime/entity/models/ContentResponseModels.js +54 -0
  62. package/dist/runtime/entity/models/DashboardModels.js +2991 -0
  63. package/dist/runtime/entity/models/DashboardRequestModels.js +294 -0
  64. package/dist/runtime/entity/models/DashboardResponseModels.js +187 -0
  65. package/dist/runtime/entity/models/GamePlayerModels.js +1591 -0
  66. package/dist/runtime/entity/models/GamePlayerRequestModels.js +1412 -0
  67. package/dist/runtime/entity/models/GamePlayerResponseModels.js +369 -0
  68. package/dist/runtime/entity/models/GenericModels.js +177 -0
  69. package/dist/runtime/entity/models/GroupModels.js +1139 -0
  70. package/dist/runtime/entity/models/GroupRequestModels.js +1088 -0
  71. package/dist/runtime/entity/models/GroupResponseModels.js +285 -0
  72. package/dist/runtime/entity/models/InventoryModels.js +915 -0
  73. package/dist/runtime/entity/models/InventoryRequestModels.js +926 -0
  74. package/dist/runtime/entity/models/InventoryResponseModels.js +243 -0
  75. package/dist/runtime/entity/models/MasterPlayerModels.js +2570 -0
  76. package/dist/runtime/entity/models/MasterPlayerRequestModels.js +2314 -0
  77. package/dist/runtime/entity/models/MasterPlayerResponseModels.js +607 -0
  78. package/dist/runtime/entity/models/MultiplayerModels.js +404 -0
  79. package/dist/runtime/entity/models/MultiplayerRequestModels.js +278 -0
  80. package/dist/runtime/entity/models/MultiplayerResponseModels.js +75 -0
  81. package/dist/runtime/entity/models/StoreInventoryModels.js +797 -0
  82. package/dist/runtime/entity/models/StoreInventoryRequestModels.js +386 -0
  83. package/dist/runtime/entity/models/StoreInventoryResponseModels.js +103 -0
  84. package/dist/runtime/entity/request/CustomOperationRequest.js +24 -0
  85. package/dist/runtime/entity/response/CustomOperationResponse.js +29 -0
  86. package/dist/runtime/entity/response/GetAuthInfoResponse.js +2 -0
  87. package/dist/runtime/entity/response/UploadFileResponse.js +2 -0
  88. package/dist/runtime/helper/CodeHelper.js +61 -0
  89. package/dist/runtime/helper/ConverterService.js +275 -0
  90. package/dist/runtime/helper/GNSupport.js +8 -0
  91. package/dist/runtime/helper/GNUtils.js +72 -0
  92. package/dist/runtime/helper/MessagePackConverterService.js +9 -0
  93. package/dist/runtime/logger/GNDebug.js +29 -0
  94. package/dist/runtime/networking/AuthenticateStatus.js +14 -0
  95. package/dist/runtime/networking/IPeer.js +1 -0
  96. package/dist/runtime/networking/NetworkingPeer.js +182 -0
  97. package/dist/runtime/networking/OperationPending.js +53 -0
  98. package/dist/runtime/networking/PeerBase.js +170 -0
  99. package/dist/runtime/networking/handler/IServerEventHandler.js +13 -0
  100. package/dist/runtime/networking/handler/OnCharacterPlayerFriendUpdateEventHandler.js +39 -0
  101. package/dist/runtime/networking/handler/OnCharacterPlayerGroupUpdateEventHandler.js +39 -0
  102. package/dist/runtime/networking/handler/OnGamePlayerFriendUpdateEventHandler.js +39 -0
  103. package/dist/runtime/networking/handler/OnGamePlayerGroupUpdateEventHandler.js +39 -0
  104. package/dist/runtime/networking/handler/OnGroupMemberUpdateEventHandler.js +35 -0
  105. package/dist/runtime/networking/handler/OnGroupMessageUpdateEventHandler.js +35 -0
  106. package/dist/runtime/networking/http/HttpPeer.js +124 -0
  107. package/dist/runtime/networking/http/NetworkingHttpPeerBase.js +6 -0
  108. package/dist/runtime/networking/http/NetworkingPeerAxiosRequest.js +164 -0
  109. package/dist/runtime/networking/socket/NetworkingPeerSocketIOClient.js +128 -0
  110. package/dist/runtime/networking/socket/NetworkingSocketPeerBase.js +176 -0
  111. package/dist/runtime/networking/socket/SocketPeer.js +108 -0
  112. package/dist/runtime/typescript/ServiceUpdate.js +12 -0
  113. package/package.json +1 -1
  114. package/dist/gn.js.client.js +0 -47233
  115. package/dist/gn.js.client.min.js +0 -2
  116. package/dist/gn.js.client.min.js.LICENSE.txt +0 -14
@@ -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,5 @@
1
+ export var PermissionDataItem;
2
+ (function (PermissionDataItem) {
3
+ PermissionDataItem[PermissionDataItem["ReadOnly"] = 1] = "ReadOnly";
4
+ PermissionDataItem[PermissionDataItem["CanOverride"] = 2] = "CanOverride";
5
+ })(PermissionDataItem || (PermissionDataItem = {}));
@@ -0,0 +1,5 @@
1
+ export var PushPlatformType;
2
+ (function (PushPlatformType) {
3
+ PushPlatformType[PushPlatformType["Android"] = 1] = "Android";
4
+ PushPlatformType[PushPlatformType["iOS"] = 2] = "iOS";
5
+ })(PushPlatformType || (PushPlatformType = {}));
@@ -0,0 +1,6 @@
1
+ export var RequestRole;
2
+ (function (RequestRole) {
3
+ RequestRole[RequestRole["Admin"] = 1] = "Admin";
4
+ RequestRole[RequestRole["Server"] = 2] = "Server";
5
+ RequestRole[RequestRole["Client"] = 3] = "Client";
6
+ })(RequestRole || (RequestRole = {}));
@@ -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,5 @@
1
+ export var StoreItemType;
2
+ (function (StoreItemType) {
3
+ StoreItemType[StoreItemType["NonConsumable"] = 1] = "NonConsumable";
4
+ StoreItemType[StoreItemType["Consumable"] = 2] = "Consumable";
5
+ })(StoreItemType || (StoreItemType = {}));
@@ -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 GNErrorCode {
2
+ }
3
+ GNErrorCode.Ok = 1;
4
+ GNErrorCode.AccountNotFound = 2;
5
+ GNErrorCode.AccountPasswordWrong = 3;
6
+ GNErrorCode.AccountUsernameExists = 4;
7
+ GNErrorCode.VerifyTokenError = 5;
8
+ GNErrorCode.ServiceNameNotFound = 6;
9
+ GNErrorCode.CharacterPlayerNotFound = 7;
10
+ GNErrorCode.NotEnoughCurrency = 8;
11
+ GNErrorCode.KeyNotFound = 9;
12
+ GNErrorCode.ItemNotFound = 10;
13
+ GNErrorCode.CatalogIdNotFound = 11;
14
+ GNErrorCode.GroupNotFound = 12;
15
+ GNErrorCode.OwnerNotFound = 13;
16
+ GNErrorCode.ClassIdNotFound = 14;
17
+ GNErrorCode.MemberNotFound = 15;
18
+ GNErrorCode.PlayerNotMember = 16;
19
+ GNErrorCode.GamePlayerNotFound = 17;
20
+ GNErrorCode.FileNotFound = 18;
21
+ GNErrorCode.FileNotUpload = 19;
22
+ GNErrorCode.OwnerTypeNotSupport = 20;
23
+ GNErrorCode.ItemNotStackable = 21;
24
+ GNErrorCode.GameNotFound = 22;
25
+ GNErrorCode.GameIsExists = 23;
26
+ GNErrorCode.SecretInfoNotFound = 24;
27
+ GNErrorCode.SecretInfoIsExists = 25;
28
+ GNErrorCode.ExternalNotLinked = 26;
29
+ GNErrorCode.ExternalLinkedOtherAccount = 27;
30
+ GNErrorCode.ExternalLinkedOtherValue = 28;
31
+ GNErrorCode.MasterPlayerNotFound = 29;
32
+ GNErrorCode.StoreItemNotFound = 30;
33
+ GNErrorCode.BuyerNotFound = 31;
34
+ GNErrorCode.CanNotBuyThisStoreItem = 32;
35
+ GNErrorCode.ExceptionWhenValidateReceipt = 33;
36
+ GNErrorCode.StoreInvalid = 34;
37
+ GNErrorCode.ReceiptInvalid = 35;
38
+ GNErrorCode.StoreItemHadBeenRemove = 36;
39
+ GNErrorCode.DisplayNameHasUse = 37;
40
+ GNErrorCode.PlayerBan = 38;
41
+ GNErrorCode.MatchmakingTicketNotFound = 39;
42
+ GNErrorCode.MatchmakingTicketAlreadyCompleted = 40;
43
+ GNErrorCode.MatchmakingPlayerHasNotJoinedTicket = 41;
44
+ GNErrorCode.MatchNotFound = 42;
45
+ GNErrorCode.MatchmakingPlayerHasJoinedOtherTicket = 43;
46
+ GNErrorCode.MatchmakingQueueNotFound = 44;
47
+ GNErrorCode.TicketSizeError = 45;
48
+ GNErrorCode.ExecuteError = 46;
49
+ GNErrorCode.VersionInvalid = 47;
50
+ GNErrorCode.EmailInvalid = 48;
51
+ GNErrorCode.StoreItemHadPurchaseAndNonConsumable = 49;
52
+ GNErrorCode.StoreItemHadExists = 50;