@xmobitea/gn-server 2.6.5 → 2.6.7

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 (42) hide show
  1. package/LICENSE +198 -5
  2. package/apiReferences/Authenticate.json +1328 -1
  3. package/apiReferences/CharacterPlayer.json +3199 -1
  4. package/apiReferences/CloudScript.json +278 -1
  5. package/apiReferences/Content.json +324 -1
  6. package/apiReferences/GamePlayer.json +3844 -1
  7. package/apiReferences/Group.json +2454 -1
  8. package/apiReferences/Inventory.json +1964 -1
  9. package/apiReferences/MasterAdmin.json +5569 -1
  10. package/apiReferences/MasterPlayer.json +5924 -1
  11. package/apiReferences/Multiplayer.json +545 -1
  12. package/apiReferences/StoreInventory.json +1290 -1
  13. package/dist/GN-app-api/handler/controller/handler/characterPlayer/model/GroupMemberParam.d.ts +0 -1
  14. package/dist/GN-app-api/handler/controller/handler/cloudScript/ExecuteFunctionRequestHandler.d.ts +1 -1
  15. package/dist/GN-app-api/handler/controller/handler/group/model/GroupMemberParam.d.ts +0 -1
  16. package/dist/GN-app-api/handler/controller/handler/masterPlayer/SetPlayerBanRequestHandler.d.ts +2 -0
  17. package/dist/GN-app-api/service/CloudScriptEventService.d.ts +144 -0
  18. package/dist/GN-app-api/service/CloudScriptService.d.ts +1 -1
  19. package/dist/GN-app-api/service/EventCallbackService.d.ts +9 -17
  20. package/dist/GN-app-api/service/ICloudScriptService.d.ts +2 -2
  21. package/dist/GN-app-api/service/IEventCallbackService.d.ts +0 -14
  22. package/dist/GN-app-api/{handler/controller/handler/multiplayer/MatchmakingHandler.d.ts → service/IMatchmakingService.d.ts} +2 -19
  23. package/dist/GN-app-api/service/MatchmakingService.d.ts +21 -0
  24. package/dist/GN-startup/cloudScript/CloudScriptAdmin.ts +74 -0
  25. package/dist/GN-startup/cloudScript/CloudScriptDatabase.ts +93 -0
  26. package/dist/GN-startup/cloudScript/CloudScriptEvent.ts +158 -0
  27. package/dist/GN-startup/cloudScript/CloudScriptHttp.ts +31 -0
  28. package/dist/GN-startup/cloudScript/CloudScriptMail.ts +26 -0
  29. package/dist/GN-startup/cloudScript/CloudScriptMatchmaking.ts +14 -0
  30. package/dist/GN-startup/cloudScript/CloudScriptPushNotification.ts +65 -0
  31. package/dist/GN-startup/cloudScript/CloudScriptSocket.ts +64 -0
  32. package/dist/GN-startup/cloudScript/eventCallbackCloudScriptData.json +59 -17
  33. package/dist/GN-startup/cloudScript/templateCloudScript.ts +26 -385
  34. package/dist/GN-startup/cloudScript/templateEventCallback.ts +301 -509
  35. package/dist/GN-startup/middleware/ApiMiddleware.d.ts +1 -0
  36. package/dist/GN-startup/routes/SocketAppHandler.d.ts +7 -0
  37. package/dist/GNServer.d.ts +5 -1
  38. package/dist/RequestControllerUtils.d.ts +4 -0
  39. package/dist/index.d.ts +1 -1
  40. package/package.json +3 -3
  41. package/syncCode.js +1394 -0
  42. package/index.js +0 -26
@@ -1 +1,278 @@
1
- {"requestType":"CloudScript","operations":[{"operationCode":"AddFunction","details":[{"role":"Client","requestData":[{"code":"Script","description":"","optional":false,"type":"string","gnType":"String","conditions":{"mustNonNull":true,"minLength":0,"maxLength":null}},{"code":"CanExecute","description":"","optional":false,"type":"boolean","gnType":"Boolean","conditions":{}},{"code":"IsLive","description":"","optional":false,"type":"boolean","gnType":"Boolean","conditions":{}}]}],"responseData":[{"code":"ErrorCode","value":["GameNotFound","ExecuteError","Ok"]},{"code":"ErrorMessage"},{"code":"Version"}],"description":""},{"operationCode":"EditFunction","details":[{"role":"Client","requestData":[{"code":"Version","description":"","optional":false,"type":"string","gnType":"String","conditions":{"mustNonNull":true,"minLength":7,"maxLength":7}},{"code":"CanExecute","description":"","optional":false,"type":"boolean","gnType":"Boolean","conditions":{}},{"code":"IsLive","description":"","optional":false,"type":"boolean","gnType":"Boolean","conditions":{}}]}],"responseData":[{"code":"ErrorCode","value":["GameNotFound","Ok","ExecuteError"]},{"code":"ErrorMessage"}],"description":""},{"operationCode":"ExecuteFunction","details":[{"role":"Client","requestData":[{"code":"UserId","description":"","optional":true,"type":"string","gnType":"String","conditions":{"minLength":10,"maxLength":10}},{"code":"FunctionName","description":"","optional":false,"type":"string","gnType":"String","conditions":{"mustNonNull":true,"minLength":3,"maxLength":30}},{"code":"FunctionParameters","description":"","optional":true,"type":"object","gnType":"DataMember","conditions":{}},{"code":"Version","description":"","optional":true,"type":"string","gnType":"String","conditions":{"minLength":7,"maxLength":7}}]},{"role":"Server","requestData":[{"code":"UserId","description":"","optional":false,"type":"string","gnType":"String","conditions":{"mustNonNull":true,"minLength":10,"maxLength":10}}]}],"responseData":[{"code":"ErrorCode","value":["GameNotFound","Ok","ExecuteError"]},{"code":"FunctionLogs"},{"code":"Status"},{"code":"ExecutionTimeInMs"},{"code":"MemoryUsedInBytes"},{"code":"FunctionResult"},{"code":"ErrorMessage"}],"description":""},{"operationCode":"GetFunction","details":[{"role":"Client","requestData":[{"code":"Version","description":"","optional":false,"type":"string","gnType":"String","conditions":{"mustNonNull":true,"minLength":7,"maxLength":7}}]}],"responseData":[{"code":"ErrorCode","value":["GameNotFound","Ok"]},{"code":"Script"},{"code":"CanExecute"},{"code":"IsLive"},{"code":"TsCreate"}],"description":""},{"operationCode":"GetFunctions","details":[],"responseData":[{"code":"ErrorCode","value":["GameNotFound","Ok"]},{"code":"Results"},{"code":"LatestVersion"},{"code":"LiveLatestVersion"}],"description":""}],"models":[]}
1
+ {
2
+ "requestType": "CloudScript",
3
+ "operations": [
4
+ {
5
+ "operationCode": "AddFunction",
6
+ "details": [
7
+ {
8
+ "role": "Client",
9
+ "requestData": [
10
+ {
11
+ "code": "Script",
12
+ "description": "",
13
+ "optional": false,
14
+ "type": "string",
15
+ "gnType": "String",
16
+ "conditions": {
17
+ "mustNonNull": true,
18
+ "minLength": 0,
19
+ "maxLength": null
20
+ }
21
+ },
22
+ {
23
+ "code": "CanExecute",
24
+ "description": "",
25
+ "optional": false,
26
+ "type": "boolean",
27
+ "gnType": "Boolean",
28
+ "conditions": {}
29
+ },
30
+ {
31
+ "code": "IsLive",
32
+ "description": "",
33
+ "optional": false,
34
+ "type": "boolean",
35
+ "gnType": "Boolean",
36
+ "conditions": {}
37
+ }
38
+ ]
39
+ }
40
+ ],
41
+ "responseData": [
42
+ {
43
+ "code": "ErrorCode",
44
+ "value": [
45
+ "GameNotFound",
46
+ "ExecuteError",
47
+ "Ok"
48
+ ]
49
+ },
50
+ {
51
+ "code": "ErrorMessage"
52
+ },
53
+ {
54
+ "code": "Version"
55
+ }
56
+ ],
57
+ "description": ""
58
+ },
59
+ {
60
+ "operationCode": "EditFunction",
61
+ "details": [
62
+ {
63
+ "role": "Client",
64
+ "requestData": [
65
+ {
66
+ "code": "Version",
67
+ "description": "",
68
+ "optional": false,
69
+ "type": "string",
70
+ "gnType": "String",
71
+ "conditions": {
72
+ "mustNonNull": true,
73
+ "minLength": 7,
74
+ "maxLength": 7
75
+ }
76
+ },
77
+ {
78
+ "code": "CanExecute",
79
+ "description": "",
80
+ "optional": false,
81
+ "type": "boolean",
82
+ "gnType": "Boolean",
83
+ "conditions": {}
84
+ },
85
+ {
86
+ "code": "IsLive",
87
+ "description": "",
88
+ "optional": false,
89
+ "type": "boolean",
90
+ "gnType": "Boolean",
91
+ "conditions": {}
92
+ }
93
+ ]
94
+ }
95
+ ],
96
+ "responseData": [
97
+ {
98
+ "code": "ErrorCode",
99
+ "value": [
100
+ "GameNotFound",
101
+ "Ok",
102
+ "ExecuteError"
103
+ ]
104
+ },
105
+ {
106
+ "code": "ErrorMessage"
107
+ }
108
+ ],
109
+ "description": ""
110
+ },
111
+ {
112
+ "operationCode": "ExecuteFunction",
113
+ "details": [
114
+ {
115
+ "role": "Client",
116
+ "requestData": [
117
+ {
118
+ "code": "UserId",
119
+ "description": "",
120
+ "optional": true,
121
+ "type": "string",
122
+ "gnType": "String",
123
+ "conditions": {
124
+ "minLength": 10,
125
+ "maxLength": 10
126
+ }
127
+ },
128
+ {
129
+ "code": "FunctionName",
130
+ "description": "",
131
+ "optional": false,
132
+ "type": "string",
133
+ "gnType": "String",
134
+ "conditions": {
135
+ "mustNonNull": true,
136
+ "minLength": 3,
137
+ "maxLength": 30
138
+ }
139
+ },
140
+ {
141
+ "code": "FunctionParameters",
142
+ "description": "",
143
+ "optional": true,
144
+ "type": "object",
145
+ "gnType": "DataMember",
146
+ "conditions": {}
147
+ },
148
+ {
149
+ "code": "Version",
150
+ "description": "",
151
+ "optional": true,
152
+ "type": "string",
153
+ "gnType": "String",
154
+ "conditions": {
155
+ "minLength": 7,
156
+ "maxLength": 7
157
+ }
158
+ }
159
+ ]
160
+ },
161
+ {
162
+ "role": "Server",
163
+ "requestData": [
164
+ {
165
+ "code": "UserId",
166
+ "description": "",
167
+ "optional": false,
168
+ "type": "string",
169
+ "gnType": "String",
170
+ "conditions": {
171
+ "mustNonNull": true,
172
+ "minLength": 10,
173
+ "maxLength": 10
174
+ }
175
+ }
176
+ ]
177
+ }
178
+ ],
179
+ "responseData": [
180
+ {
181
+ "code": "ErrorCode",
182
+ "value": [
183
+ "GameNotFound",
184
+ "Ok",
185
+ "ExecuteError"
186
+ ]
187
+ },
188
+ {
189
+ "code": "FunctionLogs"
190
+ },
191
+ {
192
+ "code": "Status"
193
+ },
194
+ {
195
+ "code": "ExecutionTimeInMs"
196
+ },
197
+ {
198
+ "code": "MemoryUsedInBytes"
199
+ },
200
+ {
201
+ "code": "FunctionResult"
202
+ },
203
+ {
204
+ "code": "ErrorMessage"
205
+ }
206
+ ],
207
+ "description": ""
208
+ },
209
+ {
210
+ "operationCode": "GetFunction",
211
+ "details": [
212
+ {
213
+ "role": "Client",
214
+ "requestData": [
215
+ {
216
+ "code": "Version",
217
+ "description": "",
218
+ "optional": false,
219
+ "type": "string",
220
+ "gnType": "String",
221
+ "conditions": {
222
+ "mustNonNull": true,
223
+ "minLength": 7,
224
+ "maxLength": 7
225
+ }
226
+ }
227
+ ]
228
+ }
229
+ ],
230
+ "responseData": [
231
+ {
232
+ "code": "ErrorCode",
233
+ "value": [
234
+ "GameNotFound",
235
+ "Ok"
236
+ ]
237
+ },
238
+ {
239
+ "code": "Script"
240
+ },
241
+ {
242
+ "code": "CanExecute"
243
+ },
244
+ {
245
+ "code": "IsLive"
246
+ },
247
+ {
248
+ "code": "TsCreate"
249
+ }
250
+ ],
251
+ "description": ""
252
+ },
253
+ {
254
+ "operationCode": "GetFunctions",
255
+ "details": [],
256
+ "responseData": [
257
+ {
258
+ "code": "ErrorCode",
259
+ "value": [
260
+ "GameNotFound",
261
+ "Ok"
262
+ ]
263
+ },
264
+ {
265
+ "code": "Results"
266
+ },
267
+ {
268
+ "code": "LatestVersion"
269
+ },
270
+ {
271
+ "code": "LiveLatestVersion"
272
+ }
273
+ ],
274
+ "description": ""
275
+ }
276
+ ],
277
+ "models": []
278
+ }
@@ -1 +1,324 @@
1
- {"requestType":"Content","operations":[{"operationCode":"CreateNewFileUploadInfo","details":[{"role":"Client","requestData":[{"code":"FileName","description":"","optional":false,"type":"string","gnType":"String","conditions":{"mustNonNull":true,"minLength":5,"maxLength":50}}]}],"responseData":[{"code":"ErrorCode","value":["Ok"]},{"code":"FileId"}],"description":""},{"operationCode":"GetContentData","details":[{"role":"Client","requestData":[{"code":"Keys","description":"","optional":true,"type":"string","gnType":"GNArray","conditions":{}},{"code":"Label","description":"","optional":true,"type":"string","gnType":"String","defaultValue":"\"\"","conditions":{"minLength":2,"maxLength":32}}]}],"responseData":[{"code":"ErrorCode","value":["GameNotFound","Ok"]},{"code":"Configs"}],"description":""},{"operationCode":"GetFileUploadInfoList","details":[{"role":"Client","requestData":[{"code":"Skip","description":"","optional":true,"type":"number","gnType":"Number","defaultValue":"0","conditions":{"mustInt":true,"minValue":0}},{"code":"Limit","description":"","optional":true,"type":"number","gnType":"Number","defaultValue":"10","conditions":{"mustInt":true,"minValue":1,"maxValue":100}}]}],"responseData":[{"code":"ErrorCode","value":["Ok"]},{"code":"Results"}],"description":""},{"operationCode":"GetFileUploadInfo","details":[{"role":"Client","requestData":[{"code":"FileId","description":"","optional":false,"type":"string","gnType":"String","conditions":{"mustNonNull":true,"minLength":15,"maxLength":15}}]}],"responseData":[{"code":"ErrorCode","value":["FileNotFound","Ok"]},{"code":"FileId"},{"code":"FileName"},{"code":"TsCreate"},{"code":"RemoveStatus"},{"code":"FileUpload"},{"code":"TsUploadExpire"}],"description":""},{"operationCode":"RemoveFileUploadInfo","details":[{"role":"Client","requestData":[{"code":"FileId","description":"","optional":false,"type":"string","gnType":"String","conditions":{"mustNonNull":true,"minLength":15,"maxLength":15}},{"code":"Reason","description":"","optional":true,"type":"string","gnType":"String","defaultValue":"\"\"","conditions":{}}]}],"responseData":[{"code":"ErrorCode","value":["FileNotFound","Ok"]}],"description":""},{"operationCode":"RequestDownloadFileUploadInfo","details":[{"role":"Client","requestData":[{"code":"FileId","description":"","optional":false,"type":"string","gnType":"String","conditions":{"mustNonNull":true,"minLength":15,"maxLength":15}}]}],"responseData":[{"code":"ErrorCode","value":["FileNotFound","FileNotUpload","Ok"]},{"code":"DownloadToken"}],"description":""},{"operationCode":"SetContentData","details":[{"role":"Client","requestData":[{"code":"Configs","description":"","optional":false,"type":"ContentDataParam","gnType":"GNArray","conditions":{"mustNonNull":true}},{"code":"Label","description":"","optional":true,"type":"string","gnType":"String","conditions":{"minLength":2,"maxLength":32}}]}],"responseData":[{"code":"ErrorCode","value":["GameNotFound","Ok"]}],"description":""}],"models":[{"name":"ContentDataParam","details":[{"code":"Key","description":"","optional":false,"type":"string","gnType":"String","conditions":{"mustNonNull":true,"mustInt":false,"minLength":2,"maxLength":32}},{"code":"Data","description":"","optional":false,"type":"GNHashtable","gnType":"GNHashtable","conditions":{"mustNonNull":false,"mustInt":false}}]}]}
1
+ {
2
+ "requestType": "Content",
3
+ "operations": [
4
+ {
5
+ "operationCode": "CreateNewFileUploadInfo",
6
+ "details": [
7
+ {
8
+ "role": "Client",
9
+ "requestData": [
10
+ {
11
+ "code": "FileName",
12
+ "description": "",
13
+ "optional": false,
14
+ "type": "string",
15
+ "gnType": "String",
16
+ "conditions": {
17
+ "mustNonNull": true,
18
+ "minLength": 5,
19
+ "maxLength": 50
20
+ }
21
+ }
22
+ ]
23
+ }
24
+ ],
25
+ "responseData": [
26
+ {
27
+ "code": "ErrorCode",
28
+ "value": [
29
+ "Ok"
30
+ ]
31
+ },
32
+ {
33
+ "code": "FileId"
34
+ }
35
+ ],
36
+ "description": ""
37
+ },
38
+ {
39
+ "operationCode": "GetContentData",
40
+ "details": [
41
+ {
42
+ "role": "Client",
43
+ "requestData": [
44
+ {
45
+ "code": "Keys",
46
+ "description": "",
47
+ "optional": true,
48
+ "type": "string",
49
+ "gnType": "GNArray",
50
+ "conditions": {}
51
+ },
52
+ {
53
+ "code": "Label",
54
+ "description": "",
55
+ "optional": true,
56
+ "type": "string",
57
+ "gnType": "String",
58
+ "defaultValue": "\"\"",
59
+ "conditions": {
60
+ "minLength": 2,
61
+ "maxLength": 32
62
+ }
63
+ }
64
+ ]
65
+ }
66
+ ],
67
+ "responseData": [
68
+ {
69
+ "code": "ErrorCode",
70
+ "value": [
71
+ "GameNotFound",
72
+ "Ok"
73
+ ]
74
+ },
75
+ {
76
+ "code": "Configs"
77
+ }
78
+ ],
79
+ "description": ""
80
+ },
81
+ {
82
+ "operationCode": "GetFileUploadInfoList",
83
+ "details": [
84
+ {
85
+ "role": "Client",
86
+ "requestData": [
87
+ {
88
+ "code": "Skip",
89
+ "description": "",
90
+ "optional": true,
91
+ "type": "number",
92
+ "gnType": "Number",
93
+ "defaultValue": "0",
94
+ "conditions": {
95
+ "mustInt": true,
96
+ "minValue": 0
97
+ }
98
+ },
99
+ {
100
+ "code": "Limit",
101
+ "description": "",
102
+ "optional": true,
103
+ "type": "number",
104
+ "gnType": "Number",
105
+ "defaultValue": "10",
106
+ "conditions": {
107
+ "mustInt": true,
108
+ "minValue": 1,
109
+ "maxValue": 100
110
+ }
111
+ }
112
+ ]
113
+ }
114
+ ],
115
+ "responseData": [
116
+ {
117
+ "code": "ErrorCode",
118
+ "value": [
119
+ "Ok"
120
+ ]
121
+ },
122
+ {
123
+ "code": "Results"
124
+ }
125
+ ],
126
+ "description": ""
127
+ },
128
+ {
129
+ "operationCode": "GetFileUploadInfo",
130
+ "details": [
131
+ {
132
+ "role": "Client",
133
+ "requestData": [
134
+ {
135
+ "code": "FileId",
136
+ "description": "",
137
+ "optional": false,
138
+ "type": "string",
139
+ "gnType": "String",
140
+ "conditions": {
141
+ "mustNonNull": true,
142
+ "minLength": 15,
143
+ "maxLength": 15
144
+ }
145
+ }
146
+ ]
147
+ }
148
+ ],
149
+ "responseData": [
150
+ {
151
+ "code": "ErrorCode",
152
+ "value": [
153
+ "FileNotFound",
154
+ "Ok"
155
+ ]
156
+ },
157
+ {
158
+ "code": "FileId"
159
+ },
160
+ {
161
+ "code": "FileName"
162
+ },
163
+ {
164
+ "code": "TsCreate"
165
+ },
166
+ {
167
+ "code": "RemoveStatus"
168
+ },
169
+ {
170
+ "code": "FileUpload"
171
+ },
172
+ {
173
+ "code": "TsUploadExpire"
174
+ }
175
+ ],
176
+ "description": ""
177
+ },
178
+ {
179
+ "operationCode": "RemoveFileUploadInfo",
180
+ "details": [
181
+ {
182
+ "role": "Client",
183
+ "requestData": [
184
+ {
185
+ "code": "FileId",
186
+ "description": "",
187
+ "optional": false,
188
+ "type": "string",
189
+ "gnType": "String",
190
+ "conditions": {
191
+ "mustNonNull": true,
192
+ "minLength": 15,
193
+ "maxLength": 15
194
+ }
195
+ },
196
+ {
197
+ "code": "Reason",
198
+ "description": "",
199
+ "optional": true,
200
+ "type": "string",
201
+ "gnType": "String",
202
+ "defaultValue": "\"\"",
203
+ "conditions": {}
204
+ }
205
+ ]
206
+ }
207
+ ],
208
+ "responseData": [
209
+ {
210
+ "code": "ErrorCode",
211
+ "value": [
212
+ "FileNotFound",
213
+ "Ok"
214
+ ]
215
+ }
216
+ ],
217
+ "description": ""
218
+ },
219
+ {
220
+ "operationCode": "RequestDownloadFileUploadInfo",
221
+ "details": [
222
+ {
223
+ "role": "Client",
224
+ "requestData": [
225
+ {
226
+ "code": "FileId",
227
+ "description": "",
228
+ "optional": false,
229
+ "type": "string",
230
+ "gnType": "String",
231
+ "conditions": {
232
+ "mustNonNull": true,
233
+ "minLength": 15,
234
+ "maxLength": 15
235
+ }
236
+ }
237
+ ]
238
+ }
239
+ ],
240
+ "responseData": [
241
+ {
242
+ "code": "ErrorCode",
243
+ "value": [
244
+ "FileNotFound",
245
+ "FileNotUpload",
246
+ "Ok"
247
+ ]
248
+ },
249
+ {
250
+ "code": "DownloadToken"
251
+ }
252
+ ],
253
+ "description": ""
254
+ },
255
+ {
256
+ "operationCode": "SetContentData",
257
+ "details": [
258
+ {
259
+ "role": "Client",
260
+ "requestData": [
261
+ {
262
+ "code": "Configs",
263
+ "description": "",
264
+ "optional": false,
265
+ "type": "ContentDataParam",
266
+ "gnType": "GNArray",
267
+ "conditions": {
268
+ "mustNonNull": true
269
+ }
270
+ },
271
+ {
272
+ "code": "Label",
273
+ "description": "",
274
+ "optional": true,
275
+ "type": "string",
276
+ "gnType": "String",
277
+ "conditions": {
278
+ "minLength": 2,
279
+ "maxLength": 32
280
+ }
281
+ }
282
+ ]
283
+ }
284
+ ],
285
+ "responseData": [
286
+ {
287
+ "code": "ErrorCode",
288
+ "value": [
289
+ "GameNotFound",
290
+ "Ok"
291
+ ]
292
+ }
293
+ ],
294
+ "description": ""
295
+ }
296
+ ],
297
+ "models": [
298
+ {
299
+ "name": "ContentDataParam",
300
+ "details": [
301
+ {
302
+ "code": "Key",
303
+ "description": "",
304
+ "optional": false,
305
+ "type": "string",
306
+ "gnType": "String",
307
+ "conditions": {
308
+ "mustNonNull": true,
309
+ "minLength": 2,
310
+ "maxLength": 32
311
+ }
312
+ },
313
+ {
314
+ "code": "Data",
315
+ "description": "",
316
+ "optional": false,
317
+ "type": "GNHashtable",
318
+ "gnType": "GNHashtable",
319
+ "conditions": {}
320
+ }
321
+ ]
322
+ }
323
+ ]
324
+ }