@xmobitea/gn-typescript-client 2.1.7 → 2.3.0-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 (127) hide show
  1. package/GNServerSettingsConfig.debug.json +3 -3
  2. package/dist/index.js +314 -33908
  3. package/dist/runtime/GNNetwork.js +238 -0
  4. package/dist/runtime/GNNetworkAuthenticateApi.js +167 -0
  5. package/dist/runtime/GNNetworkCharacterPlayerApi.js +1271 -0
  6. package/dist/runtime/GNNetworkCloudScriptApi.js +143 -0
  7. package/dist/runtime/GNNetworkContentApi.js +191 -0
  8. package/dist/runtime/GNNetworkDashboardApi.d.ts +14 -0
  9. package/dist/runtime/GNNetworkDashboardApi.js +223 -0
  10. package/dist/runtime/GNNetworkGamePlayerApi.js +1271 -0
  11. package/dist/runtime/GNNetworkGroupApi.js +983 -0
  12. package/dist/runtime/GNNetworkInventoryApi.js +839 -0
  13. package/dist/runtime/GNNetworkMasterPlayerApi.js +1927 -0
  14. package/dist/runtime/GNNetworkMultiplayerApi.js +263 -0
  15. package/dist/runtime/GNNetworkStoreInventoryApi.d.ts +12 -0
  16. package/dist/runtime/GNNetworkStoreInventoryApi.js +311 -0
  17. package/dist/runtime/common/Action0.js +1 -0
  18. package/dist/runtime/common/Action1.js +1 -0
  19. package/dist/runtime/common/Action2.js +1 -0
  20. package/dist/runtime/common/Action3.js +1 -0
  21. package/dist/runtime/common/Action4.js +1 -0
  22. package/dist/runtime/common/GNData.js +211 -0
  23. package/dist/runtime/config/GNServerSettings.js +127 -0
  24. package/dist/runtime/constant/Commands.js +19 -0
  25. package/dist/runtime/constant/EventCode.js +8 -0
  26. package/dist/runtime/constant/OperationCode.d.ts +10 -0
  27. package/dist/runtime/constant/OperationCode.js +214 -0
  28. package/dist/runtime/constant/ReturnCode.js +14 -0
  29. package/dist/runtime/constant/enumType/FriendStatus.js +7 -0
  30. package/dist/runtime/constant/enumType/GoogleLoginType.js +5 -0
  31. package/dist/runtime/constant/enumType/GroupStatus.js +7 -0
  32. package/dist/runtime/constant/enumType/InvalidMemberType.js +18 -0
  33. package/dist/runtime/constant/enumType/ItemType.js +5 -0
  34. package/dist/runtime/constant/enumType/MatchmakingMemberStatus.js +6 -0
  35. package/dist/runtime/constant/enumType/MatchmakingTicketStatus.js +8 -0
  36. package/dist/runtime/constant/enumType/OwnerType.d.ts +2 -1
  37. package/dist/runtime/constant/enumType/OwnerType.js +8 -0
  38. package/dist/runtime/constant/enumType/PermissionDataItem.js +5 -0
  39. package/dist/runtime/constant/enumType/RequestRole.js +6 -0
  40. package/dist/runtime/constant/enumType/RequestType.js +15 -0
  41. package/dist/runtime/constant/errorCode/GNErrorCode.d.ts +1 -0
  42. package/dist/runtime/constant/errorCode/GNErrorCode.js +49 -0
  43. package/dist/runtime/constant/parameterCode/GNParameterCode.d.ts +53 -0
  44. package/dist/runtime/constant/parameterCode/GNParameterCode.js +537 -0
  45. package/dist/runtime/constant/parameterCode/ParameterCode.js +6 -0
  46. package/dist/runtime/entity/DataMember.js +208 -0
  47. package/dist/runtime/entity/GNMetadata.js +11 -0
  48. package/dist/runtime/entity/InvalidMember.js +1 -0
  49. package/dist/runtime/entity/OperationEvent.js +32 -0
  50. package/dist/runtime/entity/OperationHelper.js +23 -0
  51. package/dist/runtime/entity/OperationRequest.js +50 -0
  52. package/dist/runtime/entity/OperationResponse.js +81 -0
  53. package/dist/runtime/entity/models/AuthenticateModels.js +416 -0
  54. package/dist/runtime/entity/models/AuthenticateRequestModels.js +206 -0
  55. package/dist/runtime/entity/models/AuthenticateResponseModels.js +131 -0
  56. package/dist/runtime/entity/models/CharacterPlayerModels.d.ts +5 -1
  57. package/dist/runtime/entity/models/CharacterPlayerModels.js +1377 -0
  58. package/dist/runtime/entity/models/CharacterPlayerRequestModels.js +1412 -0
  59. package/dist/runtime/entity/models/CharacterPlayerResponseModels.js +369 -0
  60. package/dist/runtime/entity/models/CloudScriptModels.js +197 -0
  61. package/dist/runtime/entity/models/CloudScriptRequestModels.js +143 -0
  62. package/dist/runtime/entity/models/CloudScriptResponseModels.js +40 -0
  63. package/dist/runtime/entity/models/ContentModels.d.ts +0 -1
  64. package/dist/runtime/entity/models/ContentModels.js +211 -0
  65. package/dist/runtime/entity/models/ContentRequestModels.js +197 -0
  66. package/dist/runtime/entity/models/ContentResponseModels.js +54 -0
  67. package/dist/runtime/entity/models/DashboardModels.d.ts +121 -0
  68. package/dist/runtime/entity/models/DashboardModels.js +2674 -0
  69. package/dist/runtime/entity/models/DashboardRequestModels.d.ts +49 -0
  70. package/dist/runtime/entity/models/DashboardRequestModels.js +283 -0
  71. package/dist/runtime/entity/models/DashboardResponseModels.d.ts +21 -0
  72. package/dist/runtime/entity/models/DashboardResponseModels.js +180 -0
  73. package/dist/runtime/entity/models/GamePlayerModels.d.ts +5 -1
  74. package/dist/runtime/entity/models/GamePlayerModels.js +1569 -0
  75. package/dist/runtime/entity/models/GamePlayerRequestModels.js +1412 -0
  76. package/dist/runtime/entity/models/GamePlayerResponseModels.js +369 -0
  77. package/dist/runtime/entity/models/GenericModels.js +177 -0
  78. package/dist/runtime/entity/models/GroupModels.d.ts +5 -1
  79. package/dist/runtime/entity/models/GroupModels.js +1123 -0
  80. package/dist/runtime/entity/models/GroupRequestModels.js +1088 -0
  81. package/dist/runtime/entity/models/GroupResponseModels.js +285 -0
  82. package/dist/runtime/entity/models/InventoryModels.d.ts +5 -1
  83. package/dist/runtime/entity/models/InventoryModels.js +903 -0
  84. package/dist/runtime/entity/models/InventoryRequestModels.js +926 -0
  85. package/dist/runtime/entity/models/InventoryResponseModels.js +243 -0
  86. package/dist/runtime/entity/models/MasterPlayerModels.d.ts +5 -1
  87. package/dist/runtime/entity/models/MasterPlayerModels.js +2371 -0
  88. package/dist/runtime/entity/models/MasterPlayerRequestModels.js +2152 -0
  89. package/dist/runtime/entity/models/MasterPlayerResponseModels.js +565 -0
  90. package/dist/runtime/entity/models/MultiplayerModels.js +404 -0
  91. package/dist/runtime/entity/models/MultiplayerRequestModels.js +278 -0
  92. package/dist/runtime/entity/models/MultiplayerResponseModels.js +75 -0
  93. package/dist/runtime/entity/models/StoreInventoryModels.d.ts +60 -3
  94. package/dist/runtime/entity/models/StoreInventoryModels.js +737 -0
  95. package/dist/runtime/entity/models/StoreInventoryRequestModels.d.ts +30 -0
  96. package/dist/runtime/entity/models/StoreInventoryRequestModels.js +332 -0
  97. package/dist/runtime/entity/models/StoreInventoryResponseModels.d.ts +6 -0
  98. package/dist/runtime/entity/models/StoreInventoryResponseModels.js +89 -0
  99. package/dist/runtime/entity/request/CustomOperationRequest.js +24 -0
  100. package/dist/runtime/entity/response/CustomOperationResponse.js +29 -0
  101. package/dist/runtime/helper/CodeHelper.js +61 -0
  102. package/dist/runtime/helper/ConverterService.js +275 -0
  103. package/dist/runtime/helper/GNSupport.js +8 -0
  104. package/dist/runtime/logger/GNDebug.js +29 -0
  105. package/dist/runtime/networking/AuthenticateStatus.js +14 -0
  106. package/dist/runtime/networking/IPeer.js +1 -0
  107. package/dist/runtime/networking/NetworkingPeer.js +129 -0
  108. package/dist/runtime/networking/OperationPending.js +53 -0
  109. package/dist/runtime/networking/PeerBase.js +168 -0
  110. package/dist/runtime/networking/handler/IServerEventHandler.js +13 -0
  111. package/dist/runtime/networking/handler/OnCharacterPlayerFriendUpdateEventHandler.js +39 -0
  112. package/dist/runtime/networking/handler/OnCharacterPlayerGroupUpdateEventHandler.js +39 -0
  113. package/dist/runtime/networking/handler/OnGamePlayerFriendUpdateEventHandler.js +39 -0
  114. package/dist/runtime/networking/handler/OnGamePlayerGroupUpdateEventHandler.js +39 -0
  115. package/dist/runtime/networking/handler/OnGroupMemberUpdateEventHandler.js +35 -0
  116. package/dist/runtime/networking/handler/OnGroupMessageUpdateEventHandler.js +35 -0
  117. package/dist/runtime/networking/http/HttpPeer.js +121 -0
  118. package/dist/runtime/networking/http/NetworkingHttpPeerBase.js +6 -0
  119. package/dist/runtime/networking/http/NetworkingPeerAxiosRequest.js +146 -0
  120. package/dist/runtime/networking/socket/NetworkingPeerSocketIOClient.js +126 -0
  121. package/dist/runtime/networking/socket/NetworkingSocketPeerBase.js +176 -0
  122. package/dist/runtime/networking/socket/SocketPeer.js +105 -0
  123. package/dist/runtime/typescript/ServiceUpdate.js +12 -0
  124. package/package.json +1 -1
  125. package/dist/gn.js.client.js +0 -46619
  126. package/dist/gn.js.client.min.js +0 -2
  127. package/dist/gn.js.client.min.js.LICENSE.txt +0 -14
@@ -0,0 +1,127 @@
1
+ import { LogType } from "./../logger/GNDebug";
2
+ export class GNServerSettings {
3
+ constructor() {
4
+ this.serverAddress = "127.0.0.1";
5
+ this.serverPort = 2202;
6
+ this.useSsl = false;
7
+ this.useSocket = true;
8
+ this.useHttp = true;
9
+ this.sendRate = 20;
10
+ this.reconnectDelay = 5000;
11
+ this.pingInterval = 20000;
12
+ this.pingTimeout = 20000;
13
+ this.logType = LogType.All;
14
+ }
15
+ config(options) {
16
+ this.serverAddress = options.serverAddress;
17
+ this.serverPort = options.serverPort;
18
+ this.useSsl = options.useSsl;
19
+ this.useSocket = options.useSocket;
20
+ this.useHttp = options.useHttp;
21
+ this.sendRate = options.sendRate;
22
+ this.reconnectDelay = options.reconnectDelay;
23
+ this.pingInterval = options.pingInterval;
24
+ this.pingTimeout = options.pingTimeout;
25
+ this.adminSecretKey = options.adminSecretKey;
26
+ this.serverSecretKey = options.serverSecretKey;
27
+ this.clientSecretKey = options.clientSecretKey;
28
+ this.gnServerSourcePath = options.gnServerSourcePath;
29
+ this.logType = options.logType;
30
+ }
31
+ getServerAddress() {
32
+ return this.serverAddress;
33
+ }
34
+ setServerAddress(serverAddress) {
35
+ this.serverAddress = serverAddress;
36
+ }
37
+ getServerPort() {
38
+ return this.serverPort;
39
+ }
40
+ setServerPort(serverPort) {
41
+ this.serverPort = serverPort;
42
+ }
43
+ isUseSsl() {
44
+ return this.useSsl;
45
+ }
46
+ setUseSsl(useSsl) {
47
+ this.useSsl = useSsl;
48
+ }
49
+ isUseSocket() {
50
+ return this.useSocket;
51
+ }
52
+ setUseSocket(useSocket) {
53
+ this.useSocket = useSocket;
54
+ }
55
+ isUseHttp() {
56
+ return this.useHttp;
57
+ }
58
+ setUseHttp(useHttp) {
59
+ this.useHttp = useHttp;
60
+ }
61
+ getSendRate() {
62
+ return this.sendRate;
63
+ }
64
+ setSendRate(sendRate) {
65
+ this.sendRate = sendRate;
66
+ }
67
+ getReconnectDelay() {
68
+ return this.reconnectDelay;
69
+ }
70
+ setReconnectDelay(reconnectDelay) {
71
+ this.reconnectDelay = reconnectDelay;
72
+ }
73
+ getPingInterval() {
74
+ return this.pingInterval;
75
+ }
76
+ setPingInterval(pingInterval) {
77
+ this.pingInterval = pingInterval;
78
+ }
79
+ getPingTimeout() {
80
+ return this.pingTimeout;
81
+ }
82
+ setPingTimeout(pingTimeout) {
83
+ this.pingTimeout = pingTimeout;
84
+ }
85
+ getAdminSecretKey() {
86
+ return this.adminSecretKey;
87
+ }
88
+ setAdminSecretKey(adminSecretKey) {
89
+ this.adminSecretKey = adminSecretKey;
90
+ }
91
+ getServerSecretKey() {
92
+ return this.serverSecretKey;
93
+ }
94
+ setServerSecretKey(serverSecretKey) {
95
+ this.serverSecretKey = serverSecretKey;
96
+ }
97
+ getClientSecretKey() {
98
+ return this.clientSecretKey;
99
+ }
100
+ setClientSecretKey(clientSecretKey) {
101
+ this.clientSecretKey = clientSecretKey;
102
+ }
103
+ getGNServerSourcePath() {
104
+ return this.gnServerSourcePath;
105
+ }
106
+ setGNServerSourcePath(gnServerSourcePath) {
107
+ this.gnServerSourcePath = gnServerSourcePath;
108
+ }
109
+ getLogType() {
110
+ return this.logType;
111
+ }
112
+ setLogType(logType) {
113
+ this.logType = logType;
114
+ }
115
+ getSocketUrl() {
116
+ if (this.serverPort < 0)
117
+ return (this.useSsl ? "https" : "http") + "://" + this.serverAddress;
118
+ else
119
+ return (this.useSsl ? "https" : "http") + "://" + this.serverAddress + ":" + this.serverPort;
120
+ }
121
+ getHttpUrl() {
122
+ if (this.serverPort < 0)
123
+ return (this.useSsl ? "https" : "http") + "://" + this.serverAddress;
124
+ else
125
+ return (this.useSsl ? "https" : "http") + "://" + this.serverAddress + ":" + this.serverPort;
126
+ }
127
+ }
@@ -0,0 +1,19 @@
1
+ export class Commands {
2
+ }
3
+ Commands.USER_AGENT = "User-Agent";
4
+ Commands.CONTENT_TYPE = "Content-Type";
5
+ Commands.ACCEPT = "Accept";
6
+ Commands.CONTENT_LENGTH = "Content-Length";
7
+ Commands.APPLICATION_JSON = "application/json";
8
+ Commands.APPLICATION_MSGPACK = "application/msgpack";
9
+ Commands.RequestAuthTokenCmd = "a";
10
+ Commands.RequestSecretCmd = "s";
11
+ Commands.RequestGameIdCmd = "g";
12
+ Commands.RequestCmd_MsgPack = "r";
13
+ Commands.ResponseCmd_MsgPack = "r";
14
+ Commands.EventCmd_MsgPack = "e";
15
+ Commands.RequestCmd_Json = "t";
16
+ Commands.ResponseCmd_Json = "t";
17
+ Commands.EventCmd_Json = "y";
18
+ Commands.Data = "d";
19
+ Commands.File = "f";
@@ -0,0 +1,8 @@
1
+ export class EventCode {
2
+ }
3
+ EventCode.OnGamePlayerFriendUpdate = 1;
4
+ EventCode.OnCharacterPlayerFriendUpdate = 2;
5
+ EventCode.OnGamePlayerGroupUpdate = 3;
6
+ EventCode.OnGroupMemberUpdate = 4;
7
+ EventCode.OnGroupMessageUpdate = 5;
8
+ EventCode.OnCharacterPlayerGroupUpdate = 6;
@@ -17,6 +17,14 @@ export declare class OperationCode {
17
17
  static readonly GetSecretInfoList: number;
18
18
  static readonly GrantSecretInfo: number;
19
19
  static readonly SetSecretInfoInformation: number;
20
+ static readonly GetUsernameAdminAccount: number;
21
+ static readonly GetAnalytics: number;
22
+ static readonly Get: number;
23
+ static readonly GetEventCallbackCloudScript: number;
24
+ static readonly SetEventCallbackCloudScript: number;
25
+ static readonly ResetStatisticsLeaderboard: number;
26
+ static readonly GetBackupStatisticsLeaderboardVersion: number;
27
+ static readonly GetServerGameData: number;
20
28
  static readonly LoginByAccount: number;
21
29
  static readonly LoginByAndroidDeviceId: number;
22
30
  static readonly LoginByApple: number;
@@ -201,4 +209,6 @@ export declare class OperationCode {
201
209
  static readonly SendSocketOperationEvent: number;
202
210
  static readonly GetStatisticsLog: number;
203
211
  static readonly GetCurrencyLog: number;
212
+ static readonly PresentStoreItem: number;
213
+ static readonly GetStoreLog: number;
204
214
  }
@@ -0,0 +1,214 @@
1
+ export class OperationCode {
2
+ }
3
+ OperationCode.LoginByAdminAccount = -1;
4
+ OperationCode.ChangePasswordAdminAccount = -2;
5
+ OperationCode.GetGameList = -3;
6
+ OperationCode.GetMasterGameSettings = -4;
7
+ OperationCode.SetMasterGameSettings = -5;
8
+ OperationCode.GrantAdminAccount = -6;
9
+ OperationCode.RemoveAdminAccount = -7;
10
+ OperationCode.SetPasswordAdminAccount = -8;
11
+ OperationCode.SetSecretKeyAdminAccount = -9;
12
+ OperationCode.GetGameInformation = -10;
13
+ OperationCode.SetGameInformation = -11;
14
+ OperationCode.GetAdminAccountList = -12;
15
+ OperationCode.GrantGame = -13;
16
+ OperationCode.GetServerLog = -14;
17
+ OperationCode.GetSecretInfoInformation = -15;
18
+ OperationCode.GetSecretInfoList = -16;
19
+ OperationCode.GrantSecretInfo = -17;
20
+ OperationCode.SetSecretInfoInformation = -18;
21
+ OperationCode.GetUsernameAdminAccount = -19;
22
+ OperationCode.GetAnalytics = -20;
23
+ OperationCode.Get = -20;
24
+ OperationCode.GetEventCallbackCloudScript = -21;
25
+ OperationCode.SetEventCallbackCloudScript = -22;
26
+ OperationCode.ResetStatisticsLeaderboard = -23;
27
+ OperationCode.GetBackupStatisticsLeaderboardVersion = -24;
28
+ OperationCode.GetServerGameData = -25;
29
+ OperationCode.LoginByAccount = 1;
30
+ OperationCode.LoginByAndroidDeviceId = 2;
31
+ OperationCode.LoginByApple = 3;
32
+ OperationCode.LoginByCustomDeviceId = 4;
33
+ OperationCode.LoginByCustomId = 5;
34
+ OperationCode.LoginByEditorDeviceId = 6;
35
+ OperationCode.LoginByFacebook = 7;
36
+ OperationCode.LoginByGenericService = 8;
37
+ OperationCode.LoginByGoogle = 9;
38
+ OperationCode.LoginByiOSDeviceId = 10;
39
+ OperationCode.LoginByLinuxDeviceId = 11;
40
+ OperationCode.LoginByMacOSDeviceId = 12;
41
+ OperationCode.LoginByWindowsDeviceId = 13;
42
+ OperationCode.LoginByWindowsPhoneDeviceId = 14;
43
+ OperationCode.RegisterAccount = 15;
44
+ OperationCode.LinkAccount = 16;
45
+ OperationCode.LinkAndroidDeviceId = 17;
46
+ OperationCode.LinkApple = 18;
47
+ OperationCode.LinkCustomDeviceId = 19;
48
+ OperationCode.LinkCustomId = 20;
49
+ OperationCode.LinkEditorDeviceId = 21;
50
+ OperationCode.LinkFacebook = 22;
51
+ OperationCode.LinkGenericService = 23;
52
+ OperationCode.LinkGoogle = 24;
53
+ OperationCode.LinkiOSDeviceId = 25;
54
+ OperationCode.LinkLinuxDeviceId = 26;
55
+ OperationCode.LinkMacOSDeviceId = 27;
56
+ OperationCode.LinkWindowsDeviceId = 28;
57
+ OperationCode.LinkWindowsPhoneDeviceId = 29;
58
+ OperationCode.UnlinkAccount = 30;
59
+ OperationCode.UnlinkAndroidDeviceId = 31;
60
+ OperationCode.UnlinkApple = 32;
61
+ OperationCode.UnlinkCustomDeviceId = 33;
62
+ OperationCode.UnlinkCustomId = 34;
63
+ OperationCode.UnlinkEditorDeviceId = 35;
64
+ OperationCode.UnlinkFacebook = 36;
65
+ OperationCode.UnlinkGenericService = 37;
66
+ OperationCode.UnlinkGoogle = 38;
67
+ OperationCode.UnlinkiOSDeviceId = 39;
68
+ OperationCode.UnlinkLinuxDeviceId = 40;
69
+ OperationCode.UnlinkMacOSDeviceId = 41;
70
+ OperationCode.UnlinkWindowsDeviceId = 42;
71
+ OperationCode.UnlinkWindowsPhoneDeviceId = 43;
72
+ OperationCode.AddSegment = 44;
73
+ OperationCode.RemoveSegment = 45;
74
+ OperationCode.GetSegment = 46;
75
+ OperationCode.SetTag = 47;
76
+ OperationCode.GetTag = 48;
77
+ OperationCode.SetDisplayName = 49;
78
+ OperationCode.GetDisplayName = 50;
79
+ OperationCode.GetTsCreate = 51;
80
+ OperationCode.GetIpAddressCreate = 52;
81
+ OperationCode.GetTsLastLogin = 53;
82
+ OperationCode.SetPlayerBan = 54;
83
+ OperationCode.GetPlayerBan = 55;
84
+ OperationCode.SetCountryCode = 56;
85
+ OperationCode.GetCountryCode = 57;
86
+ OperationCode.ChangeAccountPassword = 58;
87
+ OperationCode.ResetAccountPassword = 59;
88
+ OperationCode.SetAvatar = 60;
89
+ OperationCode.GetAvatar = 61;
90
+ OperationCode.SetPlayerCurrency = 62;
91
+ OperationCode.GetPlayerCurrency = 63;
92
+ OperationCode.SetPlayerStatistics = 64;
93
+ OperationCode.GetPlayerStatistics = 65;
94
+ OperationCode.GetStatisticsLeaderboard = 66;
95
+ OperationCode.GetStatisticsLeaderboardAroundPlayer = 67;
96
+ OperationCode.SetCustomData = 68;
97
+ OperationCode.GetCustomData = 69;
98
+ OperationCode.SetPlayerData = 70;
99
+ OperationCode.GetPlayerData = 71;
100
+ OperationCode.GetPlayerInformation = 72;
101
+ OperationCode.GetPlayersWithApple = 73;
102
+ OperationCode.GetPlayersWithFacebook = 74;
103
+ OperationCode.GetPlayersWithGoogle = 75;
104
+ OperationCode.GetPlayersWithGenericService = 76;
105
+ OperationCode.GetPlayersWithSegment = 77;
106
+ OperationCode.GetPlayersWithTag = 78;
107
+ OperationCode.GetExternal = 79;
108
+ OperationCode.GetCatalogId = 80;
109
+ OperationCode.GetOwnerInfo = 81;
110
+ OperationCode.GetOnlineStatus = 82;
111
+ OperationCode.RemovePlayerItem = 83;
112
+ OperationCode.RemovePlayerCharacter = 84;
113
+ OperationCode.AddPlayerFriend = 85;
114
+ OperationCode.RemovePlayerFriend = 86;
115
+ OperationCode.GetPlayerInventory = 87;
116
+ OperationCode.GetPlayerCharacter = 88;
117
+ OperationCode.GetPlayerFriend = 89;
118
+ OperationCode.GetPlayerGroup = 90;
119
+ OperationCode.GrantGroup = 91;
120
+ OperationCode.JoinGroup = 92;
121
+ OperationCode.GrantPlayerItem = 93;
122
+ OperationCode.GrantPlayerCharacter = 94;
123
+ OperationCode.GetOwner = 95;
124
+ OperationCode.GetRemoveStatus = 96;
125
+ OperationCode.SetGroupStatistics = 97;
126
+ OperationCode.SetGroupData = 98;
127
+ OperationCode.GetGroupCurrency = 99;
128
+ OperationCode.SetGroupCurrency = 100;
129
+ OperationCode.GrantGroupItem = 101;
130
+ OperationCode.GetStatisticsLeaderboardAroundGroup = 102;
131
+ OperationCode.GetGroupsWithTag = 103;
132
+ OperationCode.GetGroupsWithSegment = 104;
133
+ OperationCode.GetGroupStatistics = 105;
134
+ OperationCode.GetGroupInventory = 106;
135
+ OperationCode.GetGroupData = 107;
136
+ OperationCode.GetGroupInformation = 108;
137
+ OperationCode.GetMembers = 109;
138
+ OperationCode.SetItemStatistics = 110;
139
+ OperationCode.SetItemData = 111;
140
+ OperationCode.GetItemData = 112;
141
+ OperationCode.GetStatisticsLeaderboardAroundItem = 113;
142
+ OperationCode.GetItemsWithTag = 114;
143
+ OperationCode.GetItemsWithSegment = 115;
144
+ OperationCode.GetItemStatistics = 116;
145
+ OperationCode.GetItemInformation = 117;
146
+ OperationCode.GetAmount = 118;
147
+ OperationCode.GetItemType = 119;
148
+ OperationCode.SetTsLastLogin = 120;
149
+ OperationCode.SetRemoveStatus = 121;
150
+ OperationCode.SetAmount = 122;
151
+ OperationCode.RemoveGroup = 123;
152
+ OperationCode.LeaveGroup = 124;
153
+ OperationCode.AddMember = 125;
154
+ OperationCode.RemoveMember = 126;
155
+ OperationCode.GetContentData = 127;
156
+ OperationCode.SetContentData = 128;
157
+ OperationCode.GetGroupMessage = 129;
158
+ OperationCode.SendGroupMessage = 130;
159
+ OperationCode.GetPlayersWithDisplayName = 131;
160
+ OperationCode.GetItemsWithDisplayName = 132;
161
+ OperationCode.GetGroupsWithDisplayName = 133;
162
+ OperationCode.SetOwner = 134;
163
+ OperationCode.RemoveGroupItem = 135;
164
+ OperationCode.GetClassId = 136;
165
+ OperationCode.GetStoreItemInformation = 137;
166
+ OperationCode.GetStoreItemsWithTag = 138;
167
+ OperationCode.GrantStoreItem = 139;
168
+ OperationCode.RemoveTag = 140;
169
+ OperationCode.BuyStoreItem = 141;
170
+ OperationCode.ValidateAppleAppStoreReceipt = 142;
171
+ OperationCode.ValidateGooglePlayStoreReceipt = 143;
172
+ OperationCode.ValidateFacebookStoreReceipt = 144;
173
+ OperationCode.GetFriendStatisticsLeaderboardAroundPlayer = 145;
174
+ OperationCode.GetFriendStatisticsLeaderboard = 146;
175
+ OperationCode.SetEmail = 147;
176
+ OperationCode.GetEmail = 148;
177
+ OperationCode.CreateNewFileUploadInfo = 149;
178
+ OperationCode.GetFileUploadInfo = 150;
179
+ OperationCode.RequestDownloadFileUploadInfo = 151;
180
+ OperationCode.RemoveFileUploadInfo = 152;
181
+ OperationCode.GetFileUploadInfoList = 153;
182
+ OperationCode.SetStoreItemInformation = 154;
183
+ OperationCode.RefreshAuthToken = 155;
184
+ OperationCode.CancelAllMatchmakingTicket = 156;
185
+ OperationCode.CancelMatchmakingTicket = 157;
186
+ OperationCode.CreateMatchmakingTicket = 158;
187
+ OperationCode.GetMatch = 159;
188
+ OperationCode.GetMatchmakingTicket = 160;
189
+ OperationCode.GetQueueStatistics = 161;
190
+ OperationCode.JoinMatchmakingTicket = 162;
191
+ OperationCode.ListMatchmakingTicketsForPlayer = 163;
192
+ OperationCode.GetCurrencyLeaderboard = 164;
193
+ OperationCode.ExecuteFunction = 165;
194
+ OperationCode.GetFunctions = 166;
195
+ OperationCode.AddFunction = 167;
196
+ OperationCode.EditFunction = 168;
197
+ OperationCode.GetFunction = 169;
198
+ OperationCode.LoginByGooglePlayGameService = 170;
199
+ OperationCode.LoginByGameCenter = 171;
200
+ OperationCode.LinkGooglePlayGameService = 172;
201
+ OperationCode.LinkGameCenter = 173;
202
+ OperationCode.UnlinkGooglePlayGameService = 174;
203
+ OperationCode.UnlinkGameCenter = 175;
204
+ OperationCode.GetPlayersWithGooglePlayGameService = 176;
205
+ OperationCode.GetPlayersWithGameCenter = 177;
206
+ OperationCode.GetLastLoginLeaderboard = 178;
207
+ OperationCode.GetCreateLeaderboard = 179;
208
+ OperationCode.GetAllMatchmakingTicket = 180;
209
+ OperationCode.GetAllMatch = 181;
210
+ OperationCode.SendSocketOperationEvent = 182;
211
+ OperationCode.GetStatisticsLog = 183;
212
+ OperationCode.GetCurrencyLog = 184;
213
+ OperationCode.PresentStoreItem = 185;
214
+ OperationCode.GetStoreLog = 186;
@@ -0,0 +1,14 @@
1
+ export class ReturnCode {
2
+ }
3
+ ReturnCode.SecretInvalid = -10;
4
+ ReturnCode.MaxSizeRequestReject = -9;
5
+ ReturnCode.MaxRequestReject = -8;
6
+ ReturnCode.MaxCCUReject = -7;
7
+ ReturnCode.OperationNotAuthorized = -6;
8
+ ReturnCode.InvalidRequestParameters = -5;
9
+ ReturnCode.OperationInvalid = -4;
10
+ ReturnCode.InternalServerError = -3;
11
+ ReturnCode.OperationNotAllow = -2;
12
+ ReturnCode.OperationTimeout = -1;
13
+ ReturnCode.UnknownError = 0;
14
+ ReturnCode.Ok = 1;
@@ -0,0 +1,7 @@
1
+ export var FriendStatus;
2
+ (function (FriendStatus) {
3
+ FriendStatus[FriendStatus["Friend"] = 1] = "Friend";
4
+ FriendStatus[FriendStatus["WaitingAccept"] = 2] = "WaitingAccept";
5
+ FriendStatus[FriendStatus["SentRequestAndWaitingAccept"] = 3] = "SentRequestAndWaitingAccept";
6
+ FriendStatus[FriendStatus["NotFriend"] = 4] = "NotFriend";
7
+ })(FriendStatus || (FriendStatus = {}));
@@ -0,0 +1,5 @@
1
+ export var GoogleLoginType;
2
+ (function (GoogleLoginType) {
3
+ GoogleLoginType[GoogleLoginType["AccessToken"] = 1] = "AccessToken";
4
+ GoogleLoginType[GoogleLoginType["IdToken"] = 2] = "IdToken";
5
+ })(GoogleLoginType || (GoogleLoginType = {}));
@@ -0,0 +1,7 @@
1
+ export var GroupStatus;
2
+ (function (GroupStatus) {
3
+ GroupStatus[GroupStatus["Member"] = 1] = "Member";
4
+ GroupStatus[GroupStatus["WaitingAccept"] = 2] = "WaitingAccept";
5
+ GroupStatus[GroupStatus["SentRequestAndWaitingAccept"] = 3] = "SentRequestAndWaitingAccept";
6
+ GroupStatus[GroupStatus["NotMember"] = 4] = "NotMember";
7
+ })(GroupStatus || (GroupStatus = {}));
@@ -0,0 +1,18 @@
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 = {}));
@@ -0,0 +1,5 @@
1
+ export var ItemType;
2
+ (function (ItemType) {
3
+ ItemType[ItemType["NonConsumable"] = 1] = "NonConsumable";
4
+ ItemType[ItemType["Consumable"] = 2] = "Consumable";
5
+ })(ItemType || (ItemType = {}));
@@ -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 = {}));
@@ -2,5 +2,6 @@ export declare enum OwnerType {
2
2
  MasterPlayer = 1,
3
3
  GamePlayer = 2,
4
4
  CharacterPlayer = 3,
5
- Group = 4
5
+ Group = 4,
6
+ Inventory = 5
6
7
  }
@@ -0,0 +1,8 @@
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 = {}));
@@ -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,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 = {}));
@@ -45,4 +45,5 @@ export declare class GNErrorCode {
45
45
  static readonly MatchmakingQueueNotFound: number;
46
46
  static readonly TicketSizeError: number;
47
47
  static readonly ExecuteError: number;
48
+ static readonly VersionInvalid: number;
48
49
  }
@@ -0,0 +1,49 @@
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.ItemNotComsumable = 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;
@@ -481,4 +481,57 @@ export declare class GNParameterCode {
481
481
  static readonly FinalValue: string;
482
482
  static readonly GetStatisticsLog: string;
483
483
  static readonly GetCurrencyLog: string;
484
+ static readonly GetUsernameAdminAccount: string;
485
+ static readonly GetAnalytics: string;
486
+ static readonly AnalyticsItem: string;
487
+ static readonly CCU: string;
488
+ static readonly DAU: string;
489
+ static readonly DAUSince0h: string;
490
+ static readonly DNU: string;
491
+ static readonly DNUSince0h: string;
492
+ static readonly DRT: string;
493
+ static readonly DRTSince0h: string;
494
+ static readonly MAU: string;
495
+ static readonly MAUSince0h1: string;
496
+ static readonly MNU: string;
497
+ static readonly MNUSince0h1: string;
498
+ static readonly MRT: string;
499
+ static readonly MRTSince0h1: string;
500
+ static readonly GetEventCallbackCloudScript: string;
501
+ static readonly SetEventCallbackCloudScript: string;
502
+ static readonly HasEdit: string;
503
+ static readonly FullScript: string;
504
+ static readonly ChildScripts: string;
505
+ static readonly EventName: string;
506
+ static readonly PresentStoreItem: string;
507
+ static readonly GetStoreLog: string;
508
+ static readonly TsLastUpdate: string;
509
+ static readonly StoreReceiveType: string;
510
+ static readonly StoreReceiveTypes: string;
511
+ static readonly TransactionId: string;
512
+ static readonly PriceCurrencyStartValues: string;
513
+ static readonly PriceCurrencyAmountValues: string;
514
+ static readonly PriceCurrencyFinalValues: string;
515
+ static readonly StoreCurrencyStartValues: string;
516
+ static readonly StoreCurrencyAmountValues: string;
517
+ static readonly StoreCurrencyFinalValues: string;
518
+ static readonly StoreItemFinalValues: string;
519
+ static readonly Index: string;
520
+ static readonly ResetStatisticsLeaderboard: string;
521
+ static readonly GetBackupStatisticsLeaderboardVersion: string;
522
+ static readonly GetServerGameData: string;
523
+ static readonly MasterPlayerCount: string;
524
+ static readonly GamePlayerCount: string;
525
+ static readonly CharacterPlayerCount: string;
526
+ static readonly InventoryCount: string;
527
+ static readonly StoreInventoryCount: string;
528
+ static readonly GroupCount: string;
529
+ static readonly Country: string;
530
+ static readonly RegionCode: string;
531
+ static readonly RegionName: string;
532
+ static readonly Regions: string;
533
+ static readonly Latitude: string;
534
+ static readonly Longitude: string;
535
+ static readonly BackupValue: string;
536
+ static readonly AnalyticsPrice: string;
484
537
  }