@xmobitea/gn-typescript-client 2.6.7 → 2.6.8-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.
Files changed (116) hide show
  1. package/dist/index.js +337 -34170
  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 +149 -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/ErrorCode.js +52 -0
  41. package/dist/runtime/constant/parameterCode/ParameterCode.js +617 -0
  42. package/dist/runtime/entity/DataMember.js +208 -0
  43. package/dist/runtime/entity/GNMetadata.js +11 -0
  44. package/dist/runtime/entity/InvalidMember.js +1 -0
  45. package/dist/runtime/entity/OperationEvent.js +24 -0
  46. package/dist/runtime/entity/OperationHelper.js +24 -0
  47. package/dist/runtime/entity/OperationRequest.js +42 -0
  48. package/dist/runtime/entity/OperationResponse.js +73 -0
  49. package/dist/runtime/entity/models/AuthenticateModels.js +426 -0
  50. package/dist/runtime/entity/models/AuthenticateRequestModels.js +188 -0
  51. package/dist/runtime/entity/models/AuthenticateResponseModels.js +131 -0
  52. package/dist/runtime/entity/models/CharacterPlayerModels.js +1437 -0
  53. package/dist/runtime/entity/models/CharacterPlayerRequestModels.js +1386 -0
  54. package/dist/runtime/entity/models/CharacterPlayerResponseModels.js +376 -0
  55. package/dist/runtime/entity/models/CloudScriptModels.js +197 -0
  56. package/dist/runtime/entity/models/CloudScriptRequestModels.js +138 -0
  57. package/dist/runtime/entity/models/CloudScriptResponseModels.js +40 -0
  58. package/dist/runtime/entity/models/ContentModels.js +203 -0
  59. package/dist/runtime/entity/models/ContentRequestModels.js +190 -0
  60. package/dist/runtime/entity/models/ContentResponseModels.js +54 -0
  61. package/dist/runtime/entity/models/DashboardModels.js +3002 -0
  62. package/dist/runtime/entity/models/DashboardRequestModels.js +268 -0
  63. package/dist/runtime/entity/models/DashboardResponseModels.js +187 -0
  64. package/dist/runtime/entity/models/GamePlayerModels.js +1591 -0
  65. package/dist/runtime/entity/models/GamePlayerRequestModels.js +1360 -0
  66. package/dist/runtime/entity/models/GamePlayerResponseModels.js +369 -0
  67. package/dist/runtime/entity/models/GenericModels.js +177 -0
  68. package/dist/runtime/entity/models/GroupModels.js +1139 -0
  69. package/dist/runtime/entity/models/GroupRequestModels.js +1048 -0
  70. package/dist/runtime/entity/models/GroupResponseModels.js +285 -0
  71. package/dist/runtime/entity/models/InventoryModels.js +915 -0
  72. package/dist/runtime/entity/models/InventoryRequestModels.js +892 -0
  73. package/dist/runtime/entity/models/InventoryResponseModels.js +243 -0
  74. package/dist/runtime/entity/models/MasterPlayerModels.js +2573 -0
  75. package/dist/runtime/entity/models/MasterPlayerRequestModels.js +2228 -0
  76. package/dist/runtime/entity/models/MasterPlayerResponseModels.js +607 -0
  77. package/dist/runtime/entity/models/MultiplayerModels.js +404 -0
  78. package/dist/runtime/entity/models/MultiplayerRequestModels.js +268 -0
  79. package/dist/runtime/entity/models/MultiplayerResponseModels.js +75 -0
  80. package/dist/runtime/entity/models/StoreInventoryModels.js +797 -0
  81. package/dist/runtime/entity/models/StoreInventoryRequestModels.js +372 -0
  82. package/dist/runtime/entity/models/StoreInventoryResponseModels.js +103 -0
  83. package/dist/runtime/entity/request/CustomOperationRequest.js +24 -0
  84. package/dist/runtime/entity/response/CustomOperationResponse.js +29 -0
  85. package/dist/runtime/entity/response/GetAuthInfoResponse.js +2 -0
  86. package/dist/runtime/entity/response/UploadFileResponse.js +2 -0
  87. package/dist/runtime/helper/CodeHelper.js +63 -0
  88. package/dist/runtime/helper/ConverterService.js +275 -0
  89. package/dist/runtime/helper/EnumUtility.js +33 -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 +178 -0
  97. package/dist/runtime/networking/OperationPending.js +53 -0
  98. package/dist/runtime/networking/PeerBase.js +161 -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 +43 -0
  106. package/dist/runtime/networking/http/HttpPeer.js +122 -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 +130 -0
  110. package/dist/runtime/networking/socket/NetworkingSocketPeerBase.js +165 -0
  111. package/dist/runtime/networking/socket/SocketPeer.js +115 -0
  112. package/dist/runtime/typescript/ServiceUpdate.js +12 -0
  113. package/package.json +1 -1
  114. package/dist/gearn.js.client.js +0 -46892
  115. package/dist/gearn.js.client.min.js +0 -2
  116. package/dist/gearn.js.client.min.js.LICENSE.txt +0 -14
@@ -0,0 +1,211 @@
1
+ export class GNData {
2
+ get(k, def) {
3
+ return def;
4
+ }
5
+ getBoolean(k, def) {
6
+ return this.get(k, def);
7
+ }
8
+ getObject(k, def) {
9
+ return this.get(k, def);
10
+ }
11
+ getString(k, def) {
12
+ return this.get(k, def);
13
+ }
14
+ getNumber(k, def) {
15
+ return this.get(k, def);
16
+ }
17
+ getGNHashtable(k, def) {
18
+ return this.get(k, def);
19
+ }
20
+ getGNArray(k, def) {
21
+ return this.get(k, def);
22
+ }
23
+ static createGNHashtableFromObject(value) {
24
+ let answer = new GNHashtable();
25
+ let valueKeys = Object.keys(value);
26
+ for (let i = 0; i < valueKeys.length; i++) {
27
+ let key = valueKeys[i];
28
+ answer.add(key, value[key]);
29
+ }
30
+ return answer;
31
+ }
32
+ static createGNArrayFromArray(value) {
33
+ let answer = new GNArray();
34
+ let valueArr = value;
35
+ for (let i = 0; i < valueArr.length; i++) {
36
+ answer.add(valueArr[i]);
37
+ }
38
+ return answer;
39
+ }
40
+ static createUseDataFromOriginData(value) {
41
+ if (value == null)
42
+ return null;
43
+ let typeOfValue = typeof value;
44
+ if (typeOfValue === "string")
45
+ return value;
46
+ if (typeOfValue === "number")
47
+ return value;
48
+ if (typeOfValue === "boolean")
49
+ return value;
50
+ if (value instanceof GNArray)
51
+ return value;
52
+ if (value instanceof GNHashtable)
53
+ return value;
54
+ if (typeOfValue === "object") {
55
+ if (Array.isArray(value))
56
+ return this.createGNArrayFromArray(value);
57
+ else
58
+ return this.createGNHashtableFromObject(value);
59
+ }
60
+ return null;
61
+ }
62
+ static createDataFromUseData(value) {
63
+ if (value == null)
64
+ return null;
65
+ if (value instanceof GNArray) {
66
+ return value.toData();
67
+ }
68
+ if (value instanceof GNHashtable) {
69
+ return value.toData();
70
+ }
71
+ return value;
72
+ }
73
+ }
74
+ export class GNHashtableBuilder {
75
+ add(k, value) {
76
+ this.dict[k] = value;
77
+ return this;
78
+ }
79
+ addAll(dict) {
80
+ let keys = Object.keys(dict);
81
+ keys.forEach(keyStr => {
82
+ this.add(keyStr, dict[keyStr]);
83
+ });
84
+ return this;
85
+ }
86
+ constructor() {
87
+ this.dict = {};
88
+ this.dict = {};
89
+ }
90
+ build() {
91
+ let answer = new GNHashtable();
92
+ let keys = Object.keys(this.dict);
93
+ keys.forEach(keyStr => {
94
+ answer.add(keyStr, this.dict[keyStr]);
95
+ });
96
+ return answer;
97
+ }
98
+ }
99
+ export class GNHashtable extends GNData {
100
+ constructor() {
101
+ super(...arguments);
102
+ this.dict = {};
103
+ }
104
+ clear() {
105
+ this.dict = {};
106
+ }
107
+ remove(k) {
108
+ if (this.containsKey(k)) {
109
+ delete this.dict[k];
110
+ return true;
111
+ }
112
+ return false;
113
+ }
114
+ count() {
115
+ return Object.keys(this.dict).length;
116
+ }
117
+ containsKey(k) {
118
+ let keys = Object.keys(this.dict);
119
+ let kStr = k.toString();
120
+ return keys.indexOf(kStr) != -1;
121
+ }
122
+ get(k, def) {
123
+ let value = this.dict[k];
124
+ if (value == null)
125
+ return def;
126
+ return value;
127
+ }
128
+ add(k, value) {
129
+ this.dict[k] = GNData.createUseDataFromOriginData(value);
130
+ }
131
+ toData() {
132
+ let anwser = {};
133
+ let keys = Object.keys(this.dict);
134
+ for (let i = 0; i < keys.length; i++) {
135
+ let key = keys[i];
136
+ anwser[key] = GNData.createDataFromUseData(this.dict[key]);
137
+ }
138
+ return anwser;
139
+ }
140
+ static builder() {
141
+ return new GNHashtableBuilder();
142
+ }
143
+ toString() {
144
+ return JSON.stringify(this.dict);
145
+ }
146
+ }
147
+ export class GNArrayBuilder {
148
+ add(value) {
149
+ this.array.push(value);
150
+ return this;
151
+ }
152
+ addAll(array) {
153
+ array.forEach(o => {
154
+ this.add(o);
155
+ });
156
+ return this;
157
+ }
158
+ build() {
159
+ let awnser = new GNArray();
160
+ this.array.forEach(o => {
161
+ awnser.add(o);
162
+ });
163
+ return awnser;
164
+ }
165
+ constructor() {
166
+ this.array = [];
167
+ this.array = [];
168
+ }
169
+ }
170
+ export class GNArray extends GNData {
171
+ constructor() {
172
+ super(...arguments);
173
+ this.array = [];
174
+ }
175
+ clear() {
176
+ this.array = [];
177
+ }
178
+ remove(k) {
179
+ if (k < 0 || k >= this.array.length)
180
+ return false;
181
+ this.array.splice(k, 1);
182
+ return true;
183
+ }
184
+ count() {
185
+ return this.array.length;
186
+ }
187
+ get(k, def) {
188
+ if (k < 0 || k >= this.array.length)
189
+ return null;
190
+ let value = this.array[k];
191
+ if (value == null)
192
+ return def;
193
+ return value;
194
+ }
195
+ add(value) {
196
+ this.array.push(GNData.createUseDataFromOriginData(value));
197
+ }
198
+ toData() {
199
+ let anwser = [];
200
+ for (let i = 0; i < this.array.length; i++) {
201
+ anwser.push(GNData.createDataFromUseData(this.array[i]));
202
+ }
203
+ return anwser;
204
+ }
205
+ static builder() {
206
+ return new GNArrayBuilder();
207
+ }
208
+ toString() {
209
+ return JSON.stringify(this.array);
210
+ }
211
+ }
@@ -0,0 +1,149 @@
1
+ import { LogType } from "./../logger/GNDebug";
2
+ export var MessageType;
3
+ (function (MessageType) {
4
+ MessageType[MessageType["Json"] = 1] = "Json";
5
+ MessageType[MessageType["MsgPack"] = 2] = "MsgPack";
6
+ })(MessageType || (MessageType = {}));
7
+ export class GNServerSettings {
8
+ constructor() {
9
+ this.serverAddress = "127.0.0.1";
10
+ this.serverPort = 2202;
11
+ this.serverSocketPort = 2901;
12
+ this.useSsl = false;
13
+ this.useSocket = true;
14
+ this.useHttp = true;
15
+ this.defaultTimeoutInSeconds = 20;
16
+ this.messageType = MessageType.MsgPack;
17
+ this.sendRate = 20;
18
+ this.reconnectDelay = 5000;
19
+ this.pingInterval = 20000;
20
+ this.pingTimeout = 20000;
21
+ this.logType = LogType.All;
22
+ }
23
+ config(options) {
24
+ this.serverAddress = options.serverAddress;
25
+ this.serverPort = options.serverPort;
26
+ this.serverSocketPort = options.serverSocketPort;
27
+ this.useSsl = options.useSsl;
28
+ this.useSocket = options.useSocket;
29
+ this.useHttp = options.useHttp;
30
+ this.defaultTimeoutInSeconds = options.defaultTimeoutInSeconds;
31
+ this.messageType = options.messageType;
32
+ this.sendRate = options.sendRate;
33
+ this.reconnectDelay = options.reconnectDelay;
34
+ this.pingInterval = options.pingInterval;
35
+ this.pingTimeout = options.pingTimeout;
36
+ this.adminSecretKey = options.adminSecretKey;
37
+ this.serverSecretKey = options.serverSecretKey;
38
+ this.clientSecretKey = options.clientSecretKey;
39
+ this.logType = options.logType;
40
+ }
41
+ getServerAddress() {
42
+ return this.serverAddress;
43
+ }
44
+ setServerAddress(serverAddress) {
45
+ this.serverAddress = serverAddress;
46
+ }
47
+ getServerPort() {
48
+ return this.serverPort;
49
+ }
50
+ setServerPort(serverPort) {
51
+ this.serverPort = serverPort;
52
+ }
53
+ getServerSocketPort() {
54
+ return this.serverSocketPort;
55
+ }
56
+ setServerSocketPort(serverSocketPort) {
57
+ this.serverSocketPort = serverSocketPort;
58
+ }
59
+ isUseSsl() {
60
+ return this.useSsl;
61
+ }
62
+ setUseSsl(useSsl) {
63
+ this.useSsl = useSsl;
64
+ }
65
+ isUseSocket() {
66
+ return this.useSocket;
67
+ }
68
+ setUseSocket(useSocket) {
69
+ this.useSocket = useSocket;
70
+ }
71
+ isUseHttp() {
72
+ return this.useHttp;
73
+ }
74
+ setUseHttp(useHttp) {
75
+ this.useHttp = useHttp;
76
+ }
77
+ getDefaultTimeoutInSeconds() {
78
+ return this.defaultTimeoutInSeconds;
79
+ }
80
+ setDefaultTimeoutInSeconds(defaultTimeoutInSeconds) {
81
+ this.defaultTimeoutInSeconds = defaultTimeoutInSeconds;
82
+ }
83
+ getMessageType() {
84
+ return this.messageType;
85
+ }
86
+ setMessageType(messageType) {
87
+ this.messageType = messageType;
88
+ }
89
+ getSendRate() {
90
+ return this.sendRate;
91
+ }
92
+ setSendRate(sendRate) {
93
+ this.sendRate = sendRate;
94
+ }
95
+ getReconnectDelay() {
96
+ return this.reconnectDelay;
97
+ }
98
+ setReconnectDelay(reconnectDelay) {
99
+ this.reconnectDelay = reconnectDelay;
100
+ }
101
+ getPingInterval() {
102
+ return this.pingInterval;
103
+ }
104
+ setPingInterval(pingInterval) {
105
+ this.pingInterval = pingInterval;
106
+ }
107
+ getPingTimeout() {
108
+ return this.pingTimeout;
109
+ }
110
+ setPingTimeout(pingTimeout) {
111
+ this.pingTimeout = pingTimeout;
112
+ }
113
+ getAdminSecretKey() {
114
+ return this.adminSecretKey;
115
+ }
116
+ setAdminSecretKey(adminSecretKey) {
117
+ this.adminSecretKey = adminSecretKey;
118
+ }
119
+ getServerSecretKey() {
120
+ return this.serverSecretKey;
121
+ }
122
+ setServerSecretKey(serverSecretKey) {
123
+ this.serverSecretKey = serverSecretKey;
124
+ }
125
+ getClientSecretKey() {
126
+ return this.clientSecretKey;
127
+ }
128
+ setClientSecretKey(clientSecretKey) {
129
+ this.clientSecretKey = clientSecretKey;
130
+ }
131
+ getLogType() {
132
+ return this.logType;
133
+ }
134
+ setLogType(logType) {
135
+ this.logType = logType;
136
+ }
137
+ getSocketUrl() {
138
+ if (this.serverSocketPort < 0)
139
+ return (this.useSsl ? "https" : "http") + "://" + this.serverAddress;
140
+ else
141
+ return (this.useSsl ? "https" : "http") + "://" + this.serverAddress + ":" + this.serverSocketPort;
142
+ }
143
+ getHttpUrl() {
144
+ if (this.serverPort < 0)
145
+ return (this.useSsl ? "https" : "http") + "://" + this.serverAddress;
146
+ else
147
+ return (this.useSsl ? "https" : "http") + "://" + this.serverAddress + ":" + this.serverPort;
148
+ }
149
+ }
@@ -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 = "Auth-Token";
10
+ Commands.RequestSecretCmd = "Secret-Key";
11
+ Commands.RequestGameIdCmd = "Game-Id";
12
+ Commands.RequestCmd_MsgPack = "rMsgPack";
13
+ Commands.ResponseCmd_MsgPack = "rMsgPack";
14
+ Commands.EventCmd_MsgPack = "eMsgPack";
15
+ Commands.RequestCmd_Json = "rJson";
16
+ Commands.ResponseCmd_Json = "rJson";
17
+ Commands.EventCmd_Json = "eJson";
18
+ Commands.Data = "data";
19
+ Commands.File = "file";
@@ -0,0 +1,8 @@
1
+ export class EventCode {
2
+ }
3
+ EventCode.OnGamePlayerFriendUpdate = "onGamePlayerFriendUpdate";
4
+ EventCode.OnCharacterPlayerFriendUpdate = "onCharacterPlayerFriendUpdate";
5
+ EventCode.OnGamePlayerGroupUpdate = "onGamePlayerGroupUpdate";
6
+ EventCode.OnGroupMemberUpdate = "onGroupMemberUpdate";
7
+ EventCode.OnGroupMessageUpdate = "onGroupMessageUpdate";
8
+ EventCode.OnCharacterPlayerGroupUpdate = "onCharacterPlayerGroupUpdate";
@@ -0,0 +1,221 @@
1
+ export class OperationCode {
2
+ }
3
+ OperationCode.LoginByAdminAccount = "loginByAdminAccount";
4
+ OperationCode.ChangePasswordAdminAccount = "changePasswordAdminAccount";
5
+ OperationCode.GetGameList = "getGameList";
6
+ OperationCode.GetMasterGameSettings = "getMasterGameSettings";
7
+ OperationCode.SetMasterGameSettings = "setMasterGameSettings";
8
+ OperationCode.CreateAdminAccount = "createAdminAccount";
9
+ OperationCode.RemoveAdminAccount = "removeAdminAccount";
10
+ OperationCode.SetPasswordAdminAccount = "setPasswordAdminAccount";
11
+ OperationCode.SetSecretKeyAdminAccount = "setSecretKeyAdminAccount";
12
+ OperationCode.GetGameInformation = "getGameInformation";
13
+ OperationCode.SetGameInformation = "setGameInformation";
14
+ OperationCode.GetAdminAccountList = "getAdminAccountList";
15
+ OperationCode.CreateGame = "createGame";
16
+ OperationCode.GetServerLog = "getServerLog";
17
+ OperationCode.GetSecretInfoInformation = "getSecretInfoInformation";
18
+ OperationCode.GetSecretInfoList = "getSecretInfoList";
19
+ OperationCode.CreateSecretInfo = "createSecretInfo";
20
+ OperationCode.SetSecretInfoInformation = "setSecretInfoInformation";
21
+ OperationCode.GetUsernameAdminAccount = "getUsernameAdminAccount";
22
+ OperationCode.GetAnalytics = "getAnalytics";
23
+ OperationCode.GetEventCallbackCloudScript = "getEventCallbackCloudScript";
24
+ OperationCode.SetEventCallbackCloudScript = "setEventCallbackCloudScript";
25
+ OperationCode.ResetStatisticsLeaderboard = "resetStatisticsLeaderboard";
26
+ OperationCode.GetBackupStatisticsLeaderboardVersion = "getBackupStatisticsLeaderboardVersion";
27
+ OperationCode.GetServerGameData = "getServerGameData";
28
+ OperationCode.DeleteInDatabase = "deleteInDatabase";
29
+ OperationCode.LoginByAccount = "loginByAccount";
30
+ OperationCode.LoginByAndroidDeviceId = "loginByAndroidDeviceId";
31
+ OperationCode.LoginByApple = "loginByApple";
32
+ OperationCode.LoginByCustomDeviceId = "loginByCustomDeviceId";
33
+ OperationCode.LoginByCustomId = "loginByCustomId";
34
+ OperationCode.LoginByEditorDeviceId = "loginByEditorDeviceId";
35
+ OperationCode.LoginByFacebook = "loginByFacebook";
36
+ OperationCode.LoginByGenericService = "loginByGenericService";
37
+ OperationCode.LoginByGoogle = "loginByGoogle";
38
+ OperationCode.LoginByiOSDeviceId = "loginByiOSDeviceId";
39
+ OperationCode.LoginByLinuxDeviceId = "loginByLinuxDeviceId";
40
+ OperationCode.LoginByMacOSDeviceId = "loginByMacOSDeviceId";
41
+ OperationCode.LoginByWindowsDeviceId = "loginByWindowsDeviceId";
42
+ OperationCode.LoginByWindowsPhoneDeviceId = "loginByWindowsPhoneDeviceId";
43
+ OperationCode.RegisterAccount = "registerAccount";
44
+ OperationCode.LinkAccount = "linkAccount";
45
+ OperationCode.LinkAndroidDeviceId = "linkAndroidDeviceId";
46
+ OperationCode.LinkApple = "linkApple";
47
+ OperationCode.LinkCustomDeviceId = "linkCustomDeviceId";
48
+ OperationCode.LinkCustomId = "linkCustomId";
49
+ OperationCode.LinkEditorDeviceId = "linkEditorDeviceId";
50
+ OperationCode.LinkFacebook = "linkFacebook";
51
+ OperationCode.LinkGenericService = "linkGenericService";
52
+ OperationCode.LinkGoogle = "linkGoogle";
53
+ OperationCode.LinkiOSDeviceId = "linkiOSDeviceId";
54
+ OperationCode.LinkLinuxDeviceId = "linkLinuxDeviceId";
55
+ OperationCode.LinkMacOSDeviceId = "linkMacOSDeviceId";
56
+ OperationCode.LinkWindowsDeviceId = "linkWindowsDeviceId";
57
+ OperationCode.LinkWindowsPhoneDeviceId = "linkWindowsPhoneDeviceId";
58
+ OperationCode.UnlinkAccount = "unlinkAccount";
59
+ OperationCode.UnlinkAndroidDeviceId = "unlinkAndroidDeviceId";
60
+ OperationCode.UnlinkApple = "unlinkApple";
61
+ OperationCode.UnlinkCustomDeviceId = "unlinkCustomDeviceId";
62
+ OperationCode.UnlinkCustomId = "unlinkCustomId";
63
+ OperationCode.UnlinkEditorDeviceId = "unlinkEditorDeviceId";
64
+ OperationCode.UnlinkFacebook = "unlinkFacebook";
65
+ OperationCode.UnlinkGenericService = "unlinkGenericService";
66
+ OperationCode.UnlinkGoogle = "unlinkGoogle";
67
+ OperationCode.UnlinkiOSDeviceId = "unlinkiOSDeviceId";
68
+ OperationCode.UnlinkLinuxDeviceId = "unlinkLinuxDeviceId";
69
+ OperationCode.UnlinkMacOSDeviceId = "unlinkMacOSDeviceId";
70
+ OperationCode.UnlinkWindowsDeviceId = "unlinkWindowsDeviceId";
71
+ OperationCode.UnlinkWindowsPhoneDeviceId = "unlinkWindowsPhoneDeviceId";
72
+ OperationCode.AddSegment = "addSegment";
73
+ OperationCode.RemoveSegment = "removeSegment";
74
+ OperationCode.GetSegment = "getSegment";
75
+ OperationCode.SetTag = "setTag";
76
+ OperationCode.GetTag = "getTag";
77
+ OperationCode.SetDisplayName = "setDisplayName";
78
+ OperationCode.GetDisplayName = "getDisplayName";
79
+ OperationCode.GetTsCreate = "getTsCreate";
80
+ OperationCode.GetIpAddressCreate = "getIpAddressCreate";
81
+ OperationCode.GetTsLastLogin = "getTsLastLogin";
82
+ OperationCode.SetPlayerBan = "setPlayerBan";
83
+ OperationCode.GetPlayerBan = "getPlayerBan";
84
+ OperationCode.SetCountryCode = "setCountryCode";
85
+ OperationCode.GetCountryCode = "getCountryCode";
86
+ OperationCode.ChangeAccountPassword = "changeAccountPassword";
87
+ OperationCode.ResetAccountPassword = "resetAccountPassword";
88
+ OperationCode.SetAvatar = "setAvatar";
89
+ OperationCode.GetAvatar = "getAvatar";
90
+ OperationCode.ChangePlayerCurrency = "changePlayerCurrency";
91
+ OperationCode.GetPlayerCurrency = "getPlayerCurrency";
92
+ OperationCode.ChangePlayerStatistics = "changePlayerStatistics";
93
+ OperationCode.GetPlayerStatistics = "getPlayerStatistics";
94
+ OperationCode.GetStatisticsLeaderboard = "getStatisticsLeaderboard";
95
+ OperationCode.GetStatisticsLeaderboardAroundPlayer = "getStatisticsLeaderboardAroundPlayer";
96
+ OperationCode.SetCustomData = "setCustomData";
97
+ OperationCode.GetCustomData = "getCustomData";
98
+ OperationCode.SetPlayerData = "setPlayerData";
99
+ OperationCode.GetPlayerData = "getPlayerData";
100
+ OperationCode.GetPlayerInformation = "getPlayerInformation";
101
+ OperationCode.GetPlayersWithApple = "getPlayersWithApple";
102
+ OperationCode.GetPlayersWithFacebook = "getPlayersWithFacebook";
103
+ OperationCode.GetPlayersWithGoogle = "getPlayersWithGoogle";
104
+ OperationCode.GetPlayersWithGenericService = "getPlayersWithGenericService";
105
+ OperationCode.GetPlayersWithSegment = "getPlayersWithSegment";
106
+ OperationCode.GetPlayersWithTag = "getPlayersWithTag";
107
+ OperationCode.GetExternal = "getExternal";
108
+ OperationCode.GetCatalogId = "getCatalogId";
109
+ OperationCode.GetOwnerInfo = "getOwnerInfo";
110
+ OperationCode.GetOnlineStatus = "getOnlineStatus";
111
+ OperationCode.RemovePlayerItem = "removePlayerItem";
112
+ OperationCode.RemovePlayerCharacter = "removePlayerCharacter";
113
+ OperationCode.AddPlayerFriend = "addPlayerFriend";
114
+ OperationCode.RemovePlayerFriend = "removePlayerFriend";
115
+ OperationCode.GetPlayerInventory = "getPlayerInventory";
116
+ OperationCode.GetPlayerCharacter = "getPlayerCharacter";
117
+ OperationCode.GetPlayerFriend = "getPlayerFriend";
118
+ OperationCode.GetPlayerGroup = "getPlayerGroup";
119
+ OperationCode.CreateGroup = "createGroup";
120
+ OperationCode.JoinGroup = "joinGroup";
121
+ OperationCode.CreatePlayerItem = "createPlayerItem";
122
+ OperationCode.CreatePlayerCharacter = "createPlayerCharacter";
123
+ OperationCode.GetOwner = "getOwner";
124
+ OperationCode.GetRemoveStatus = "getRemoveStatus";
125
+ OperationCode.ChangeGroupStatistics = "changeGroupStatistics";
126
+ OperationCode.SetGroupData = "setGroupData";
127
+ OperationCode.GetGroupCurrency = "getGroupCurrency";
128
+ OperationCode.ChangeGroupCurrency = "changeGroupCurrency";
129
+ OperationCode.CreateGroupItem = "createGroupItem";
130
+ OperationCode.GetStatisticsLeaderboardAroundGroup = "getStatisticsLeaderboardAroundGroup";
131
+ OperationCode.GetGroupsWithTag = "getGroupsWithTag";
132
+ OperationCode.GetGroupsWithSegment = "getGroupsWithSegment";
133
+ OperationCode.GetGroupStatistics = "getGroupStatistics";
134
+ OperationCode.GetGroupInventory = "getGroupInventory";
135
+ OperationCode.GetGroupData = "getGroupData";
136
+ OperationCode.GetGroupInformation = "getGroupInformation";
137
+ OperationCode.GetMembers = "getMembers";
138
+ OperationCode.ChangeItemStatistics = "changeItemStatistics";
139
+ OperationCode.SetItemData = "setItemData";
140
+ OperationCode.GetItemData = "getItemData";
141
+ OperationCode.GetStatisticsLeaderboardAroundItem = "getStatisticsLeaderboardAroundItem";
142
+ OperationCode.GetItemsWithTag = "getItemsWithTag";
143
+ OperationCode.GetItemsWithSegment = "getItemsWithSegment";
144
+ OperationCode.GetItemStatistics = "getItemStatistics";
145
+ OperationCode.GetItemInformation = "getItemInformation";
146
+ OperationCode.GetAmount = "getAmount";
147
+ OperationCode.GetItemType = "getItemType";
148
+ OperationCode.SetTsLastLogin = "setTsLastLogin";
149
+ OperationCode.SetRemoveStatus = "setRemoveStatus";
150
+ OperationCode.SetAmount = "setAmount";
151
+ OperationCode.RemoveGroup = "removeGroup";
152
+ OperationCode.LeaveGroup = "leaveGroup";
153
+ OperationCode.AddMember = "addMember";
154
+ OperationCode.RemoveMember = "removeMember";
155
+ OperationCode.GetContentData = "getContentData";
156
+ OperationCode.SetContentData = "setContentData";
157
+ OperationCode.GetGroupMessage = "getGroupMessage";
158
+ OperationCode.SendGroupMessage = "sendGroupMessage";
159
+ OperationCode.GetPlayersWithDisplayName = "getPlayersWithDisplayName";
160
+ OperationCode.GetItemsWithDisplayName = "getItemsWithDisplayName";
161
+ OperationCode.GetGroupsWithDisplayName = "getGroupsWithDisplayName";
162
+ OperationCode.SetOwner = "setOwner";
163
+ OperationCode.RemoveGroupItem = "removeGroupItem";
164
+ OperationCode.GetClassId = "getClassId";
165
+ OperationCode.GetStoreItemInformation = "getStoreItemInformation";
166
+ OperationCode.GetStoreItemsWithTag = "getStoreItemsWithTag";
167
+ OperationCode.CreateStoreItem = "createStoreItem";
168
+ OperationCode.RemoveTag = "removeTag";
169
+ OperationCode.BuyStoreItem = "buyStoreItem";
170
+ OperationCode.ValidateAppleAppStoreReceipt = "validateAppleAppStoreReceipt";
171
+ OperationCode.ValidateGooglePlayStoreReceipt = "validateGooglePlayStoreReceipt";
172
+ OperationCode.ValidateFacebookStoreReceipt = "validateFacebookStoreReceipt";
173
+ OperationCode.GetFriendStatisticsLeaderboardAroundPlayer = "getFriendStatisticsLeaderboardAroundPlayer";
174
+ OperationCode.GetFriendStatisticsLeaderboard = "getFriendStatisticsLeaderboard";
175
+ OperationCode.SetEmail = "setEmail";
176
+ OperationCode.GetEmail = "getEmail";
177
+ OperationCode.CreateNewFileUploadInfo = "createNewFileUploadInfo";
178
+ OperationCode.GetFileUploadInfo = "getFileUploadInfo";
179
+ OperationCode.RequestDownloadFileUploadInfo = "requestDownloadFileUploadInfo";
180
+ OperationCode.RemoveFileUploadInfo = "removeFileUploadInfo";
181
+ OperationCode.GetFileUploadInfoList = "getFileUploadInfoList";
182
+ OperationCode.SetStoreItemInformation = "setStoreItemInformation";
183
+ OperationCode.RefreshAuthToken = "refreshAuthToken";
184
+ OperationCode.CancelAllMatchmakingTicket = "cancelAllMatchmakingTicket";
185
+ OperationCode.CancelMatchmakingTicket = "cancelMatchmakingTicket";
186
+ OperationCode.CreateMatchmakingTicket = "createMatchmakingTicket";
187
+ OperationCode.GetMatch = "getMatch";
188
+ OperationCode.GetMatchmakingTicket = "getMatchmakingTicket";
189
+ OperationCode.GetQueueStatistics = "getQueueStatistics";
190
+ OperationCode.JoinMatchmakingTicket = "joinMatchmakingTicket";
191
+ OperationCode.ListMatchmakingTicketsForPlayer = "listMatchmakingTicketsForPlayer";
192
+ OperationCode.GetCurrencyLeaderboard = "getCurrencyLeaderboard";
193
+ OperationCode.ExecuteFunction = "executeFunction";
194
+ OperationCode.GetFunctions = "getFunctions";
195
+ OperationCode.AddFunction = "addFunction";
196
+ OperationCode.EditFunction = "editFunction";
197
+ OperationCode.GetFunction = "getFunction";
198
+ OperationCode.LoginByGooglePlayGameService = "loginByGooglePlayGameService";
199
+ OperationCode.LoginByGameCenter = "loginByGameCenter";
200
+ OperationCode.LinkGooglePlayGameService = "linkGooglePlayGameService";
201
+ OperationCode.LinkGameCenter = "linkGameCenter";
202
+ OperationCode.UnlinkGooglePlayGameService = "unlinkGooglePlayGameService";
203
+ OperationCode.UnlinkGameCenter = "unlinkGameCenter";
204
+ OperationCode.GetPlayersWithGooglePlayGameService = "getPlayersWithGooglePlayGameService";
205
+ OperationCode.GetPlayersWithGameCenter = "getPlayersWithGameCenter";
206
+ OperationCode.GetLastLoginLeaderboard = "getLastLoginLeaderboard";
207
+ OperationCode.GetCreateLeaderboard = "getCreateLeaderboard";
208
+ OperationCode.GetAllMatchmakingTicket = "getAllMatchmakingTicket";
209
+ OperationCode.GetAllMatch = "getAllMatch";
210
+ OperationCode.SendSocketOperationEvent = "sendSocketOperationEvent";
211
+ OperationCode.GetStatisticsLog = "getStatisticsLog";
212
+ OperationCode.GetCurrencyLog = "getCurrencyLog";
213
+ OperationCode.PresentStoreItem = "presentStoreItem";
214
+ OperationCode.GetStoreLog = "getStoreLog";
215
+ OperationCode.SendEmail = "sendEmail";
216
+ OperationCode.SendPushNotification = "sendPushNotification";
217
+ OperationCode.AddPushNotification = "addPushNotification";
218
+ OperationCode.RemovePushNotification = "removePushNotification";
219
+ OperationCode.GetPushNotification = "getPushNotification";
220
+ OperationCode.GetStoreUsed = "getStoreUsed";
221
+ OperationCode.RemoveStoreUsed = "removeStoreUsed";
@@ -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,8 @@
1
+ export var ExecuteResponseStatus;
2
+ (function (ExecuteResponseStatus) {
3
+ ExecuteResponseStatus[ExecuteResponseStatus["Ok"] = 1] = "Ok";
4
+ ExecuteResponseStatus[ExecuteResponseStatus["Exception"] = 2] = "Exception";
5
+ ExecuteResponseStatus[ExecuteResponseStatus["FunctionNameNotFound"] = 3] = "FunctionNameNotFound";
6
+ ExecuteResponseStatus[ExecuteResponseStatus["VersionInvalid"] = 4] = "VersionInvalid";
7
+ ExecuteResponseStatus[ExecuteResponseStatus["Timeout"] = 5] = "Timeout";
8
+ })(ExecuteResponseStatus || (ExecuteResponseStatus = {}));
@@ -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 = {}));