@xmobitea/gn-server 2.6.3 → 2.6.5

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 (442) hide show
  1. package/LICENSE +5 -198
  2. package/apiReferences/Authenticate.json +1 -0
  3. package/apiReferences/CharacterPlayer.json +1 -0
  4. package/apiReferences/CloudScript.json +1 -0
  5. package/apiReferences/Content.json +1 -0
  6. package/apiReferences/GamePlayer.json +1 -0
  7. package/apiReferences/Group.json +1 -0
  8. package/apiReferences/Inventory.json +1 -0
  9. package/apiReferences/MasterAdmin.json +1 -0
  10. package/apiReferences/MasterPlayer.json +1 -0
  11. package/apiReferences/Multiplayer.json +1 -0
  12. package/apiReferences/StoreInventory.json +1 -0
  13. package/dist/GN-app-api/handler/controller/RequestController.d.ts +5 -5
  14. package/dist/GN-app-api/handler/controller/handler/authenticate/LoginBaseRequestHandler.d.ts +1 -2
  15. package/dist/GN-app-api/handler/controller/handler/authenticate/LoginByAccountRequestHandler.d.ts +1 -1
  16. package/dist/GN-app-api/handler/controller/handler/authenticate/LoginByAndroidDeviceIdRequestHandler.d.ts +1 -1
  17. package/dist/GN-app-api/handler/controller/handler/authenticate/LoginByAppleRequestHandler.d.ts +1 -1
  18. package/dist/GN-app-api/handler/controller/handler/authenticate/LoginByCustomDeviceIdRequestHandler.d.ts +1 -1
  19. package/dist/GN-app-api/handler/controller/handler/authenticate/LoginByCustomIdRequestHandler.d.ts +1 -1
  20. package/dist/GN-app-api/handler/controller/handler/authenticate/LoginByEditorDeviceIdRequestHandler.d.ts +1 -1
  21. package/dist/GN-app-api/handler/controller/handler/authenticate/LoginByFacebookRequestHandler.d.ts +1 -1
  22. package/dist/GN-app-api/handler/controller/handler/authenticate/LoginByGameCenterRequestHandler.d.ts +5 -5
  23. package/dist/GN-app-api/handler/controller/handler/authenticate/LoginByGenericServiceRequestHandler.d.ts +1 -1
  24. package/dist/GN-app-api/handler/controller/handler/authenticate/LoginByGooglePlayGameServiceRequestHandler.d.ts +5 -5
  25. package/dist/GN-app-api/handler/controller/handler/authenticate/LoginByGoogleRequestHandler.d.ts +1 -1
  26. package/dist/GN-app-api/handler/controller/handler/authenticate/LoginByLinuxDeviceIdRequestHandler.d.ts +1 -1
  27. package/dist/GN-app-api/handler/controller/handler/authenticate/LoginByMacOSDeviceIdRequestHandler.d.ts +1 -1
  28. package/dist/GN-app-api/handler/controller/handler/authenticate/LoginByWindowsDeviceIdRequestHandler.d.ts +1 -1
  29. package/dist/GN-app-api/handler/controller/handler/authenticate/LoginByWindowsPhoneDeviceIdRequestHandler.d.ts +1 -1
  30. package/dist/GN-app-api/handler/controller/handler/authenticate/LoginByiOSDeviceIdRequestHandler.d.ts +1 -1
  31. package/dist/GN-app-api/handler/controller/handler/authenticate/RefreshAuthTokenRequestHandler.d.ts +1 -1
  32. package/dist/GN-app-api/handler/controller/handler/authenticate/RegisterAccountRequestHandler.d.ts +1 -1
  33. package/dist/GN-app-api/handler/controller/handler/base/IRequestHandler.d.ts +1 -1
  34. package/dist/GN-app-api/handler/controller/handler/base/RequestHandler.d.ts +1 -1
  35. package/dist/GN-app-api/handler/controller/handler/characterPlayer/AddPlayerFriendRequestHandler.d.ts +1 -1
  36. package/dist/GN-app-api/handler/controller/handler/characterPlayer/AddSegmentRequestHandler.d.ts +1 -1
  37. package/dist/GN-app-api/handler/controller/handler/characterPlayer/{SetPlayerCurrencyRequestHandler.d.ts → ChangePlayerCurrencyRequestHandler.d.ts} +5 -5
  38. package/dist/GN-app-api/handler/controller/handler/characterPlayer/{SetPlayerStatisticsRequestHandler.d.ts → ChangePlayerStatisticsRequestHandler.d.ts} +5 -5
  39. package/dist/GN-app-api/handler/controller/handler/characterPlayer/CharacterPlayerBaseRequestHandler.d.ts +1 -1
  40. package/dist/GN-app-api/handler/controller/handler/characterPlayer/{GrantGroupRequestHandler.d.ts → CreateGroupRequestHandler.d.ts} +4 -4
  41. package/dist/GN-app-api/handler/controller/handler/characterPlayer/{GrantPlayerItemRequestHandler.d.ts → CreatePlayerItemRequestHandler.d.ts} +4 -4
  42. package/dist/GN-app-api/handler/controller/handler/characterPlayer/GetAvatarRequestHandler.d.ts +1 -1
  43. package/dist/GN-app-api/handler/controller/handler/characterPlayer/GetCatalogIdRequestHandler.d.ts +1 -1
  44. package/dist/GN-app-api/handler/controller/handler/characterPlayer/GetCountryCodeRequestHandler.d.ts +1 -1
  45. package/dist/GN-app-api/handler/controller/handler/characterPlayer/GetCreateLeaderboardRequestHandler.d.ts +5 -5
  46. package/dist/GN-app-api/handler/controller/handler/characterPlayer/GetCurrencyLeaderboardRequestHandler.d.ts +1 -1
  47. package/dist/GN-app-api/handler/controller/handler/characterPlayer/GetCurrencyLogRequestHandler.d.ts +2 -2
  48. package/dist/GN-app-api/handler/controller/handler/characterPlayer/GetCustomDataRequestHandler.d.ts +1 -1
  49. package/dist/GN-app-api/handler/controller/handler/characterPlayer/GetDisplayNameRequestHandler.d.ts +1 -1
  50. package/dist/GN-app-api/handler/controller/handler/characterPlayer/GetFriendStatisticsLeaderboardAroundPlayerRequestHandler.d.ts +1 -1
  51. package/dist/GN-app-api/handler/controller/handler/characterPlayer/GetFriendStatisticsLeaderboardRequestHandler.d.ts +1 -1
  52. package/dist/GN-app-api/handler/controller/handler/characterPlayer/GetIpAddressCreateRequestHandler.d.ts +1 -1
  53. package/dist/GN-app-api/handler/controller/handler/characterPlayer/GetLastLoginLeaderboardRequestHandler.d.ts +5 -5
  54. package/dist/GN-app-api/handler/controller/handler/characterPlayer/GetOwnerRequestHandler.d.ts +1 -1
  55. package/dist/GN-app-api/handler/controller/handler/characterPlayer/GetPlayerBanRequestHandler.d.ts +1 -1
  56. package/dist/GN-app-api/handler/controller/handler/characterPlayer/GetPlayerCurrencyRequestHandler.d.ts +1 -1
  57. package/dist/GN-app-api/handler/controller/handler/characterPlayer/GetPlayerDataRequestHandler.d.ts +1 -1
  58. package/dist/GN-app-api/handler/controller/handler/characterPlayer/GetPlayerFriendRequestHandler.d.ts +1 -1
  59. package/dist/GN-app-api/handler/controller/handler/characterPlayer/GetPlayerGroupRequestHandler.d.ts +1 -1
  60. package/dist/GN-app-api/handler/controller/handler/characterPlayer/GetPlayerInformationRequestHandler.d.ts +1 -1
  61. package/dist/GN-app-api/handler/controller/handler/characterPlayer/GetPlayerInventoryRequestHandler.d.ts +1 -1
  62. package/dist/GN-app-api/handler/controller/handler/characterPlayer/GetPlayerStatisticsRequestHandler.d.ts +1 -1
  63. package/dist/GN-app-api/handler/controller/handler/characterPlayer/GetPlayersWithDisplayNameRequestHandler.d.ts +1 -1
  64. package/dist/GN-app-api/handler/controller/handler/characterPlayer/GetPlayersWithSegmentRequestHandler.d.ts +1 -1
  65. package/dist/GN-app-api/handler/controller/handler/characterPlayer/GetPlayersWithTagRequestHandler.d.ts +1 -1
  66. package/dist/GN-app-api/handler/controller/handler/characterPlayer/GetRemoveStatusRequestHandler.d.ts +1 -1
  67. package/dist/GN-app-api/handler/controller/handler/characterPlayer/GetSegmentRequestHandler.d.ts +1 -1
  68. package/dist/GN-app-api/handler/controller/handler/characterPlayer/GetStatisticsLeaderboardAroundPlayerRequestHandler.d.ts +1 -1
  69. package/dist/GN-app-api/handler/controller/handler/characterPlayer/GetStatisticsLeaderboardRequestHandler.d.ts +1 -1
  70. package/dist/GN-app-api/handler/controller/handler/characterPlayer/GetStatisticsLogRequestHandler.d.ts +2 -2
  71. package/dist/GN-app-api/handler/controller/handler/characterPlayer/GetTagRequestHandler.d.ts +1 -1
  72. package/dist/GN-app-api/handler/controller/handler/characterPlayer/GetTsCreateRequestHandler.d.ts +1 -1
  73. package/dist/GN-app-api/handler/controller/handler/characterPlayer/GetTsLastLoginRequestHandler.d.ts +1 -1
  74. package/dist/GN-app-api/handler/controller/handler/characterPlayer/JoinGroupRequestHandler.d.ts +1 -1
  75. package/dist/GN-app-api/handler/controller/handler/characterPlayer/LeaveGroupRequestHandler.d.ts +1 -1
  76. package/dist/GN-app-api/handler/controller/handler/characterPlayer/RemovePlayerFriendRequestHandler.d.ts +1 -1
  77. package/dist/GN-app-api/handler/controller/handler/characterPlayer/RemovePlayerItemRequestHandler.d.ts +1 -1
  78. package/dist/GN-app-api/handler/controller/handler/characterPlayer/RemoveSegmentRequestHandler.d.ts +1 -1
  79. package/dist/GN-app-api/handler/controller/handler/characterPlayer/RemoveTagRequestHandler.d.ts +1 -1
  80. package/dist/GN-app-api/handler/controller/handler/characterPlayer/SetAvatarRequestHandler.d.ts +1 -1
  81. package/dist/GN-app-api/handler/controller/handler/characterPlayer/SetCountryCodeRequestHandler.d.ts +1 -1
  82. package/dist/GN-app-api/handler/controller/handler/characterPlayer/SetCustomDataRequestHandler.d.ts +2 -2
  83. package/dist/GN-app-api/handler/controller/handler/characterPlayer/SetDisplayNameRequestHandler.d.ts +1 -1
  84. package/dist/GN-app-api/handler/controller/handler/characterPlayer/SetOwnerRequestHandler.d.ts +1 -1
  85. package/dist/GN-app-api/handler/controller/handler/characterPlayer/SetPlayerBanRequestHandler.d.ts +1 -1
  86. package/dist/GN-app-api/handler/controller/handler/characterPlayer/SetPlayerDataRequestHandler.d.ts +2 -2
  87. package/dist/GN-app-api/handler/controller/handler/characterPlayer/SetRemoveStatusRequestHandler.d.ts +1 -1
  88. package/dist/GN-app-api/handler/controller/handler/characterPlayer/SetTagRequestHandler.d.ts +1 -1
  89. package/dist/GN-app-api/handler/controller/handler/cloudScript/AddFunctionRequestHandler.d.ts +1 -1
  90. package/dist/GN-app-api/handler/controller/handler/cloudScript/EditFunctionRequestHandler.d.ts +1 -1
  91. package/dist/GN-app-api/handler/controller/handler/cloudScript/ExecuteFunctionRequestHandler.d.ts +2 -2
  92. package/dist/GN-app-api/handler/controller/handler/cloudScript/GetFunctionRequestHandler.d.ts +1 -1
  93. package/dist/GN-app-api/handler/controller/handler/cloudScript/GetFunctionsRequestHandler.d.ts +1 -1
  94. package/dist/GN-app-api/handler/controller/handler/content/CreateNewFileUploadInfoRequestHandler.d.ts +1 -1
  95. package/dist/GN-app-api/handler/controller/handler/content/GetContentDataRequestHandler.d.ts +1 -1
  96. package/dist/GN-app-api/handler/controller/handler/content/GetFileUploadInfoListRequestHandler.d.ts +1 -1
  97. package/dist/GN-app-api/handler/controller/handler/content/GetFileUploadInfoRequestHandler.d.ts +1 -1
  98. package/dist/GN-app-api/handler/controller/handler/content/RemoveFileUploadInfoRequestHandler.d.ts +1 -1
  99. package/dist/GN-app-api/handler/controller/handler/content/RequestDownloadFileUploadInfoRequestHandler.d.ts +1 -1
  100. package/dist/GN-app-api/handler/controller/handler/content/SetContentDataRequestHandler.d.ts +1 -1
  101. package/dist/GN-app-api/handler/controller/handler/dashboard/ChangePasswordAdminAccountRequestHandler.d.ts +1 -1
  102. package/dist/GN-app-api/handler/controller/handler/dashboard/{GrantAdminAccountRequestHandler.d.ts → CreateAdminAccountRequestHandler.d.ts} +4 -4
  103. package/dist/GN-app-api/handler/controller/handler/dashboard/{GrantGameRequestHandler.d.ts → CreateGameRequestHandler.d.ts} +4 -4
  104. package/dist/GN-app-api/handler/controller/handler/dashboard/{GrantSecretInfoRequestHandler.d.ts → CreateSecretInfoRequestHandler.d.ts} +4 -4
  105. package/dist/GN-app-api/handler/controller/handler/dashboard/DeleteInDatabaseRequestHandler.d.ts +6 -6
  106. package/dist/GN-app-api/handler/controller/handler/dashboard/GetAdminAccountListRequestHandler.d.ts +1 -1
  107. package/dist/GN-app-api/handler/controller/handler/dashboard/GetAnalyticsRequestHandler.d.ts +3 -1
  108. package/dist/GN-app-api/handler/controller/handler/dashboard/GetBackupStatisticsLeaderboardVersionRequestHandler.d.ts +6 -6
  109. package/dist/GN-app-api/handler/controller/handler/dashboard/GetEventCallbackCloudScriptRequestHandler.d.ts +1 -1
  110. package/dist/GN-app-api/handler/controller/handler/dashboard/GetGameInformationRequestHandler.d.ts +1 -1
  111. package/dist/GN-app-api/handler/controller/handler/dashboard/GetGameListRequestHandler.d.ts +1 -1
  112. package/dist/GN-app-api/handler/controller/handler/dashboard/GetMasterGameSettingsRequestHandler.d.ts +1 -1
  113. package/dist/GN-app-api/handler/controller/handler/dashboard/GetSecretInfoInformationRequestHandler.d.ts +2 -2
  114. package/dist/GN-app-api/handler/controller/handler/dashboard/GetSecretInfoListRequestHandler.d.ts +1 -1
  115. package/dist/GN-app-api/handler/controller/handler/dashboard/GetServerGameDataRequestHandler.d.ts +1 -1
  116. package/dist/GN-app-api/handler/controller/handler/dashboard/GetServerLogRequestHandler.d.ts +1 -1
  117. package/dist/GN-app-api/handler/controller/handler/dashboard/GetUsernameAdminAccountRequestHandler.d.ts +1 -1
  118. package/dist/GN-app-api/handler/controller/handler/dashboard/LoginByAdminAccountRequestHandler.d.ts +1 -1
  119. package/dist/GN-app-api/handler/controller/handler/dashboard/RemoveAdminAccountRequestHandler.d.ts +1 -1
  120. package/dist/GN-app-api/handler/controller/handler/dashboard/ResetStatisticsLeaderboardRequestHandler.d.ts +1 -1
  121. package/dist/GN-app-api/handler/controller/handler/dashboard/SetEventCallbackCloudScriptRequestHandler.d.ts +1 -1
  122. package/dist/GN-app-api/handler/controller/handler/dashboard/SetGameInformationRequestHandler.d.ts +2 -2
  123. package/dist/GN-app-api/handler/controller/handler/dashboard/SetMasterGameSettingsRequestHandler.d.ts +1 -1
  124. package/dist/GN-app-api/handler/controller/handler/dashboard/SetPasswordAdminAccountRequestHandler.d.ts +1 -1
  125. package/dist/GN-app-api/handler/controller/handler/dashboard/SetSecretInfoInformationRequestHandler.d.ts +2 -2
  126. package/dist/GN-app-api/handler/controller/handler/dashboard/SetSecretKeyAdminAccountRequestHandler.d.ts +1 -1
  127. package/dist/GN-app-api/handler/controller/handler/dashboard/model/CharacterCatalogSettingsParam.d.ts +1 -1
  128. package/dist/GN-app-api/handler/controller/handler/dashboard/model/CharacterPlayerPermissionRulesParam.d.ts +4 -4
  129. package/dist/GN-app-api/handler/controller/handler/dashboard/model/CharacterPlayerSettingsParam.d.ts +1 -1
  130. package/dist/GN-app-api/handler/controller/handler/dashboard/model/CurrencySettingsParam.d.ts +1 -1
  131. package/dist/GN-app-api/handler/controller/handler/dashboard/model/DataSettingsParam.d.ts +1 -1
  132. package/dist/GN-app-api/handler/controller/handler/dashboard/model/FriendCatalogSettingsParam.d.ts +1 -0
  133. package/dist/GN-app-api/handler/controller/handler/dashboard/model/GamePlayerPermissionRulesParam.d.ts +5 -5
  134. package/dist/GN-app-api/handler/controller/handler/dashboard/model/GamePlayerSettingsParam.d.ts +1 -1
  135. package/dist/GN-app-api/handler/controller/handler/dashboard/model/GroupCatalogSettingsParam.d.ts +1 -1
  136. package/dist/GN-app-api/handler/controller/handler/dashboard/model/GroupPermissionRulesParam.d.ts +3 -3
  137. package/dist/GN-app-api/handler/controller/handler/dashboard/model/GroupSettingsParam.d.ts +1 -1
  138. package/dist/GN-app-api/handler/controller/handler/dashboard/model/InventoryPermissionRulesParam.d.ts +1 -1
  139. package/dist/GN-app-api/handler/controller/handler/dashboard/model/InventorySettingsParam.d.ts +2 -2
  140. package/dist/GN-app-api/handler/controller/handler/dashboard/model/ItemClassSettingsParam.d.ts +1 -1
  141. package/dist/GN-app-api/handler/controller/handler/dashboard/model/MasterAdminPermissionRulesParam.d.ts +3 -3
  142. package/dist/GN-app-api/handler/controller/handler/dashboard/model/MasterPlayerPermissionRulesParam.d.ts +2 -2
  143. package/dist/GN-app-api/handler/controller/handler/dashboard/model/MasterPlayerSettingsParam.d.ts +1 -1
  144. package/dist/GN-app-api/handler/controller/handler/dashboard/model/MatchmakingQueueSettingsParam.d.ts +5 -5
  145. package/dist/GN-app-api/handler/controller/handler/dashboard/model/StatisticsSettingsParam.d.ts +1 -1
  146. package/dist/GN-app-api/handler/controller/handler/dashboard/model/StoreInventoryPermissionRulesParam.d.ts +1 -1
  147. package/dist/GN-app-api/handler/controller/handler/dashboard/model/TagSettingsParam.d.ts +1 -1
  148. package/dist/GN-app-api/handler/controller/handler/gamePlayer/AddPlayerFriendRequestHandler.d.ts +1 -1
  149. package/dist/GN-app-api/handler/controller/handler/gamePlayer/AddSegmentRequestHandler.d.ts +1 -1
  150. package/dist/GN-app-api/handler/controller/handler/gamePlayer/{SetPlayerCurrencyRequestHandler.d.ts → ChangePlayerCurrencyRequestHandler.d.ts} +5 -5
  151. package/dist/GN-app-api/handler/controller/handler/gamePlayer/{SetPlayerStatisticsRequestHandler.d.ts → ChangePlayerStatisticsRequestHandler.d.ts} +5 -5
  152. package/dist/GN-app-api/handler/controller/handler/gamePlayer/{GrantGroupRequestHandler.d.ts → CreateGroupRequestHandler.d.ts} +4 -4
  153. package/dist/GN-app-api/handler/controller/handler/gamePlayer/{GrantPlayerCharacterRequestHandler.d.ts → CreatePlayerCharacterRequestHandler.d.ts} +4 -4
  154. package/dist/GN-app-api/handler/controller/handler/gamePlayer/{GrantPlayerItemRequestHandler.d.ts → CreatePlayerItemRequestHandler.d.ts} +4 -4
  155. package/dist/GN-app-api/handler/controller/handler/gamePlayer/GetAvatarRequestHandler.d.ts +1 -1
  156. package/dist/GN-app-api/handler/controller/handler/gamePlayer/GetCountryCodeRequestHandler.d.ts +1 -1
  157. package/dist/GN-app-api/handler/controller/handler/gamePlayer/GetCreateLeaderboardRequestHandler.d.ts +5 -5
  158. package/dist/GN-app-api/handler/controller/handler/gamePlayer/GetCurrencyLeaderboardRequestHandler.d.ts +1 -1
  159. package/dist/GN-app-api/handler/controller/handler/gamePlayer/GetCurrencyLogRequestHandler.d.ts +6 -6
  160. package/dist/GN-app-api/handler/controller/handler/gamePlayer/GetCustomDataRequestHandler.d.ts +1 -1
  161. package/dist/GN-app-api/handler/controller/handler/gamePlayer/GetDisplayNameRequestHandler.d.ts +1 -1
  162. package/dist/GN-app-api/handler/controller/handler/gamePlayer/GetFriendStatisticsLeaderboardAroundPlayerRequestHandler.d.ts +1 -1
  163. package/dist/GN-app-api/handler/controller/handler/gamePlayer/GetFriendStatisticsLeaderboardRequestHandler.d.ts +1 -1
  164. package/dist/GN-app-api/handler/controller/handler/gamePlayer/GetIpAddressCreateRequestHandler.d.ts +1 -1
  165. package/dist/GN-app-api/handler/controller/handler/gamePlayer/GetLastLoginLeaderboardRequestHandler.d.ts +5 -5
  166. package/dist/GN-app-api/handler/controller/handler/gamePlayer/GetOnlineStatusRequestHandler.d.ts +1 -1
  167. package/dist/GN-app-api/handler/controller/handler/gamePlayer/GetPlayerBanRequestHandler.d.ts +1 -1
  168. package/dist/GN-app-api/handler/controller/handler/gamePlayer/GetPlayerCharacterRequestHandler.d.ts +1 -1
  169. package/dist/GN-app-api/handler/controller/handler/gamePlayer/GetPlayerCurrencyRequestHandler.d.ts +1 -1
  170. package/dist/GN-app-api/handler/controller/handler/gamePlayer/GetPlayerDataRequestHandler.d.ts +1 -1
  171. package/dist/GN-app-api/handler/controller/handler/gamePlayer/GetPlayerFriendRequestHandler.d.ts +1 -1
  172. package/dist/GN-app-api/handler/controller/handler/gamePlayer/GetPlayerGroupRequestHandler.d.ts +1 -1
  173. package/dist/GN-app-api/handler/controller/handler/gamePlayer/GetPlayerInformationRequestHandler.d.ts +1 -1
  174. package/dist/GN-app-api/handler/controller/handler/gamePlayer/GetPlayerInventoryRequestHandler.d.ts +1 -1
  175. package/dist/GN-app-api/handler/controller/handler/gamePlayer/GetPlayerStatisticsRequestHandler.d.ts +1 -1
  176. package/dist/GN-app-api/handler/controller/handler/gamePlayer/GetPlayersWithDisplayNameRequestHandler.d.ts +1 -1
  177. package/dist/GN-app-api/handler/controller/handler/gamePlayer/GetPlayersWithSegmentRequestHandler.d.ts +1 -1
  178. package/dist/GN-app-api/handler/controller/handler/gamePlayer/GetPlayersWithTagRequestHandler.d.ts +1 -1
  179. package/dist/GN-app-api/handler/controller/handler/gamePlayer/GetSegmentRequestHandler.d.ts +1 -1
  180. package/dist/GN-app-api/handler/controller/handler/gamePlayer/GetStatisticsLeaderboardAroundPlayerRequestHandler.d.ts +1 -1
  181. package/dist/GN-app-api/handler/controller/handler/gamePlayer/GetStatisticsLeaderboardRequestHandler.d.ts +1 -1
  182. package/dist/GN-app-api/handler/controller/handler/gamePlayer/GetStatisticsLogRequestHandler.d.ts +6 -6
  183. package/dist/GN-app-api/handler/controller/handler/gamePlayer/GetTagRequestHandler.d.ts +1 -1
  184. package/dist/GN-app-api/handler/controller/handler/gamePlayer/GetTsCreateRequestHandler.d.ts +1 -1
  185. package/dist/GN-app-api/handler/controller/handler/gamePlayer/GetTsLastLoginRequestHandler.d.ts +1 -1
  186. package/dist/GN-app-api/handler/controller/handler/gamePlayer/JoinGroupRequestHandler.d.ts +1 -1
  187. package/dist/GN-app-api/handler/controller/handler/gamePlayer/LeaveGroupRequestHandler.d.ts +1 -1
  188. package/dist/GN-app-api/handler/controller/handler/gamePlayer/RemovePlayerCharacterRequestHandler.d.ts +1 -1
  189. package/dist/GN-app-api/handler/controller/handler/gamePlayer/RemovePlayerFriendRequestHandler.d.ts +1 -1
  190. package/dist/GN-app-api/handler/controller/handler/gamePlayer/RemovePlayerItemRequestHandler.d.ts +1 -1
  191. package/dist/GN-app-api/handler/controller/handler/gamePlayer/RemoveSegmentRequestHandler.d.ts +1 -1
  192. package/dist/GN-app-api/handler/controller/handler/gamePlayer/RemoveTagRequestHandler.d.ts +1 -1
  193. package/dist/GN-app-api/handler/controller/handler/gamePlayer/SetAvatarRequestHandler.d.ts +1 -1
  194. package/dist/GN-app-api/handler/controller/handler/gamePlayer/SetCountryCodeRequestHandler.d.ts +1 -1
  195. package/dist/GN-app-api/handler/controller/handler/gamePlayer/SetCustomDataRequestHandler.d.ts +2 -2
  196. package/dist/GN-app-api/handler/controller/handler/gamePlayer/SetDisplayNameRequestHandler.d.ts +1 -1
  197. package/dist/GN-app-api/handler/controller/handler/gamePlayer/SetPlayerBanRequestHandler.d.ts +1 -1
  198. package/dist/GN-app-api/handler/controller/handler/gamePlayer/SetPlayerDataRequestHandler.d.ts +2 -2
  199. package/dist/GN-app-api/handler/controller/handler/gamePlayer/SetTagRequestHandler.d.ts +1 -1
  200. package/dist/GN-app-api/handler/controller/handler/group/AddMemberRequestHandler.d.ts +1 -1
  201. package/dist/GN-app-api/handler/controller/handler/group/AddSegmentRequestHandler.d.ts +1 -1
  202. package/dist/GN-app-api/handler/controller/handler/group/{SetGroupCurrencyRequestHandler.d.ts → ChangeGroupCurrencyRequestHandler.d.ts} +5 -5
  203. package/dist/GN-app-api/handler/controller/handler/group/{SetGroupStatisticsRequestHandler.d.ts → ChangeGroupStatisticsRequestHandler.d.ts} +5 -5
  204. package/dist/GN-app-api/handler/controller/handler/group/{GrantGroupItemRequestHandler.d.ts → CreateGroupItemRequestHandler.d.ts} +4 -4
  205. package/dist/GN-app-api/handler/controller/handler/group/GetAvatarRequestHandler.d.ts +1 -1
  206. package/dist/GN-app-api/handler/controller/handler/group/GetCatalogIdRequestHandler.d.ts +1 -1
  207. package/dist/GN-app-api/handler/controller/handler/group/GetCreateLeaderboardRequestHandler.d.ts +5 -5
  208. package/dist/GN-app-api/handler/controller/handler/group/GetCurrencyLeaderboardRequestHandler.d.ts +1 -1
  209. package/dist/GN-app-api/handler/controller/handler/group/GetCurrencyLogRequestHandler.d.ts +6 -6
  210. package/dist/GN-app-api/handler/controller/handler/group/GetCustomDataRequestHandler.d.ts +1 -1
  211. package/dist/GN-app-api/handler/controller/handler/group/GetDisplayNameRequestHandler.d.ts +1 -1
  212. package/dist/GN-app-api/handler/controller/handler/group/GetGroupCurrencyRequestHandler.d.ts +1 -1
  213. package/dist/GN-app-api/handler/controller/handler/group/GetGroupDataRequestHandler.d.ts +1 -1
  214. package/dist/GN-app-api/handler/controller/handler/group/GetGroupInformationRequestHandler.d.ts +1 -1
  215. package/dist/GN-app-api/handler/controller/handler/group/GetGroupInventoryRequestHandler.d.ts +1 -1
  216. package/dist/GN-app-api/handler/controller/handler/group/GetGroupMessageRequestHandler.d.ts +1 -1
  217. package/dist/GN-app-api/handler/controller/handler/group/GetGroupStatisticsRequestHandler.d.ts +1 -1
  218. package/dist/GN-app-api/handler/controller/handler/group/GetGroupsWithDisplayNameRequestHandler.d.ts +1 -1
  219. package/dist/GN-app-api/handler/controller/handler/group/GetGroupsWithSegmentRequestHandler.d.ts +1 -1
  220. package/dist/GN-app-api/handler/controller/handler/group/GetGroupsWithTagRequestHandler.d.ts +1 -1
  221. package/dist/GN-app-api/handler/controller/handler/group/GetMembersRequestHandler.d.ts +1 -1
  222. package/dist/GN-app-api/handler/controller/handler/group/GetRemoveStatusRequestHandler.d.ts +1 -1
  223. package/dist/GN-app-api/handler/controller/handler/group/GetSegmentRequestHandler.d.ts +1 -1
  224. package/dist/GN-app-api/handler/controller/handler/group/GetStatisticsLeaderboardAroundGroupRequestHandler.d.ts +1 -1
  225. package/dist/GN-app-api/handler/controller/handler/group/GetStatisticsLeaderboardRequestHandler.d.ts +1 -1
  226. package/dist/GN-app-api/handler/controller/handler/group/GetStatisticsLogRequestHandler.d.ts +6 -6
  227. package/dist/GN-app-api/handler/controller/handler/group/GetTagRequestHandler.d.ts +1 -1
  228. package/dist/GN-app-api/handler/controller/handler/group/GetTsCreateRequestHandler.d.ts +1 -1
  229. package/dist/GN-app-api/handler/controller/handler/group/GroupBaseRequestHandler.d.ts +1 -1
  230. package/dist/GN-app-api/handler/controller/handler/group/RemoveGroupItemRequestHandler.d.ts +1 -1
  231. package/dist/GN-app-api/handler/controller/handler/group/RemoveMemberRequestHandler.d.ts +1 -1
  232. package/dist/GN-app-api/handler/controller/handler/group/RemoveSegmentRequestHandler.d.ts +1 -1
  233. package/dist/GN-app-api/handler/controller/handler/group/RemoveTagRequestHandler.d.ts +1 -1
  234. package/dist/GN-app-api/handler/controller/handler/group/SendGroupMessageRequestHandler.d.ts +1 -1
  235. package/dist/GN-app-api/handler/controller/handler/group/SetAvatarRequestHandler.d.ts +1 -1
  236. package/dist/GN-app-api/handler/controller/handler/group/SetCustomDataRequestHandler.d.ts +2 -2
  237. package/dist/GN-app-api/handler/controller/handler/group/SetDisplayNameRequestHandler.d.ts +1 -1
  238. package/dist/GN-app-api/handler/controller/handler/group/SetGroupDataRequestHandler.d.ts +2 -2
  239. package/dist/GN-app-api/handler/controller/handler/group/SetRemoveStatusRequestHandler.d.ts +1 -1
  240. package/dist/GN-app-api/handler/controller/handler/group/SetTagRequestHandler.d.ts +1 -1
  241. package/dist/GN-app-api/handler/controller/handler/inventory/AddSegmentRequestHandler.d.ts +1 -1
  242. package/dist/GN-app-api/handler/controller/handler/inventory/{SetItemStatisticsRequestHandler.d.ts → ChangeItemStatisticsRequestHandler.d.ts} +5 -5
  243. package/dist/GN-app-api/handler/controller/handler/inventory/GetAmountRequestHandler.d.ts +1 -1
  244. package/dist/GN-app-api/handler/controller/handler/inventory/GetAvatarRequestHandler.d.ts +1 -1
  245. package/dist/GN-app-api/handler/controller/handler/inventory/GetCatalogIdRequestHandler.d.ts +1 -1
  246. package/dist/GN-app-api/handler/controller/handler/inventory/GetClassIdRequestHandler.d.ts +1 -1
  247. package/dist/GN-app-api/handler/controller/handler/inventory/GetCreateLeaderboardRequestHandler.d.ts +5 -5
  248. package/dist/GN-app-api/handler/controller/handler/inventory/GetCustomDataRequestHandler.d.ts +1 -1
  249. package/dist/GN-app-api/handler/controller/handler/inventory/GetDisplayNameRequestHandler.d.ts +1 -1
  250. package/dist/GN-app-api/handler/controller/handler/inventory/GetItemDataRequestHandler.d.ts +2 -2
  251. package/dist/GN-app-api/handler/controller/handler/inventory/GetItemInformationRequestHandler.d.ts +1 -1
  252. package/dist/GN-app-api/handler/controller/handler/inventory/GetItemStatisticsRequestHandler.d.ts +1 -1
  253. package/dist/GN-app-api/handler/controller/handler/inventory/GetItemTypeRequestHandler.d.ts +1 -1
  254. package/dist/GN-app-api/handler/controller/handler/inventory/GetItemsWithDisplayNameRequestHandler.d.ts +1 -1
  255. package/dist/GN-app-api/handler/controller/handler/inventory/GetItemsWithSegmentRequestHandler.d.ts +1 -1
  256. package/dist/GN-app-api/handler/controller/handler/inventory/GetItemsWithTagRequestHandler.d.ts +1 -1
  257. package/dist/GN-app-api/handler/controller/handler/inventory/GetOwnerRequestHandler.d.ts +1 -1
  258. package/dist/GN-app-api/handler/controller/handler/inventory/GetRemoveStatusRequestHandler.d.ts +1 -1
  259. package/dist/GN-app-api/handler/controller/handler/inventory/GetSegmentRequestHandler.d.ts +1 -1
  260. package/dist/GN-app-api/handler/controller/handler/inventory/GetStatisticsLeaderboardAroundItemRequestHandler.d.ts +1 -1
  261. package/dist/GN-app-api/handler/controller/handler/inventory/GetStatisticsLeaderboardRequestHandler.d.ts +1 -1
  262. package/dist/GN-app-api/handler/controller/handler/inventory/GetStatisticsLogRequestHandler.d.ts +6 -6
  263. package/dist/GN-app-api/handler/controller/handler/inventory/GetTagRequestHandler.d.ts +1 -1
  264. package/dist/GN-app-api/handler/controller/handler/inventory/GetTsCreateRequestHandler.d.ts +1 -1
  265. package/dist/GN-app-api/handler/controller/handler/inventory/ItemBaseRequestHandler.d.ts +3 -3
  266. package/dist/GN-app-api/handler/controller/handler/inventory/RemoveSegmentRequestHandler.d.ts +1 -1
  267. package/dist/GN-app-api/handler/controller/handler/inventory/RemoveTagRequestHandler.d.ts +1 -1
  268. package/dist/GN-app-api/handler/controller/handler/inventory/SetAmountRequestHandler.d.ts +1 -1
  269. package/dist/GN-app-api/handler/controller/handler/inventory/SetAvatarRequestHandler.d.ts +1 -1
  270. package/dist/GN-app-api/handler/controller/handler/inventory/SetCustomDataRequestHandler.d.ts +2 -2
  271. package/dist/GN-app-api/handler/controller/handler/inventory/SetDisplayNameRequestHandler.d.ts +1 -1
  272. package/dist/GN-app-api/handler/controller/handler/inventory/SetItemDataRequestHandler.d.ts +2 -2
  273. package/dist/GN-app-api/handler/controller/handler/inventory/SetOwnerRequestHandler.d.ts +1 -1
  274. package/dist/GN-app-api/handler/controller/handler/inventory/SetRemoveStatusRequestHandler.d.ts +1 -1
  275. package/dist/GN-app-api/handler/controller/handler/inventory/SetTagRequestHandler.d.ts +1 -1
  276. package/dist/GN-app-api/handler/controller/handler/masterPlayer/AddPushNotificationRequestHandler.d.ts +1 -1
  277. package/dist/GN-app-api/handler/controller/handler/masterPlayer/AddSegmentRequestHandler.d.ts +1 -1
  278. package/dist/GN-app-api/handler/controller/handler/masterPlayer/ChangeAccountPasswordRequestHandler.d.ts +1 -1
  279. package/dist/GN-app-api/handler/controller/handler/masterPlayer/{SetPlayerCurrencyRequestHandler.d.ts → ChangePlayerCurrencyRequestHandler.d.ts} +5 -5
  280. package/dist/GN-app-api/handler/controller/handler/masterPlayer/{SetPlayerStatisticsRequestHandler.d.ts → ChangePlayerStatisticsRequestHandler.d.ts} +5 -5
  281. package/dist/GN-app-api/handler/controller/handler/masterPlayer/GetAvatarRequestHandler.d.ts +1 -1
  282. package/dist/GN-app-api/handler/controller/handler/masterPlayer/GetCountryCodeRequestHandler.d.ts +1 -1
  283. package/dist/GN-app-api/handler/controller/handler/masterPlayer/GetCreateLeaderboardRequestHandler.d.ts +5 -5
  284. package/dist/GN-app-api/handler/controller/handler/masterPlayer/GetCurrencyLeaderboardRequestHandler.d.ts +1 -1
  285. package/dist/GN-app-api/handler/controller/handler/masterPlayer/GetCurrencyLogRequestHandler.d.ts +6 -6
  286. package/dist/GN-app-api/handler/controller/handler/masterPlayer/GetCustomDataRequestHandler.d.ts +1 -1
  287. package/dist/GN-app-api/handler/controller/handler/masterPlayer/GetDisplayNameRequestHandler.d.ts +1 -1
  288. package/dist/GN-app-api/handler/controller/handler/masterPlayer/GetEmailRequestHandler.d.ts +1 -1
  289. package/dist/GN-app-api/handler/controller/handler/masterPlayer/GetExternalRequestHandler.d.ts +1 -1
  290. package/dist/GN-app-api/handler/controller/handler/masterPlayer/GetIpAddressCreateRequestHandler.d.ts +1 -1
  291. package/dist/GN-app-api/handler/controller/handler/masterPlayer/GetLastLoginLeaderboardRequestHandler.d.ts +5 -5
  292. package/dist/GN-app-api/handler/controller/handler/masterPlayer/GetPlayerBanRequestHandler.d.ts +1 -1
  293. package/dist/GN-app-api/handler/controller/handler/masterPlayer/GetPlayerCurrencyRequestHandler.d.ts +1 -1
  294. package/dist/GN-app-api/handler/controller/handler/masterPlayer/GetPlayerDataRequestHandler.d.ts +1 -1
  295. package/dist/GN-app-api/handler/controller/handler/masterPlayer/GetPlayerInformationRequestHandler.d.ts +1 -1
  296. package/dist/GN-app-api/handler/controller/handler/masterPlayer/GetPlayerStatisticsRequestHandler.d.ts +1 -1
  297. package/dist/GN-app-api/handler/controller/handler/masterPlayer/GetPlayersWithAppleRequestHandler.d.ts +1 -1
  298. package/dist/GN-app-api/handler/controller/handler/masterPlayer/GetPlayersWithDisplayNameRequestHandler.d.ts +1 -1
  299. package/dist/GN-app-api/handler/controller/handler/masterPlayer/GetPlayersWithFacebookRequestHandler.d.ts +1 -1
  300. package/dist/GN-app-api/handler/controller/handler/masterPlayer/GetPlayersWithGameCenterRequestHandler.d.ts +5 -5
  301. package/dist/GN-app-api/handler/controller/handler/masterPlayer/GetPlayersWithGenericServiceRequestHandler.d.ts +1 -1
  302. package/dist/GN-app-api/handler/controller/handler/masterPlayer/GetPlayersWithGooglePlayGameServiceRequestHandler.d.ts +5 -5
  303. package/dist/GN-app-api/handler/controller/handler/masterPlayer/GetPlayersWithGoogleRequestHandler.d.ts +1 -1
  304. package/dist/GN-app-api/handler/controller/handler/masterPlayer/GetPlayersWithSegmentRequestHandler.d.ts +1 -1
  305. package/dist/GN-app-api/handler/controller/handler/masterPlayer/GetPlayersWithTagRequestHandler.d.ts +1 -1
  306. package/dist/GN-app-api/handler/controller/handler/masterPlayer/GetPushNotificationRequestHandler.d.ts +1 -1
  307. package/dist/GN-app-api/handler/controller/handler/masterPlayer/GetSegmentRequestHandler.d.ts +1 -1
  308. package/dist/GN-app-api/handler/controller/handler/masterPlayer/GetStatisticsLeaderboardAroundPlayerRequestHandler.d.ts +1 -1
  309. package/dist/GN-app-api/handler/controller/handler/masterPlayer/GetStatisticsLeaderboardRequestHandler.d.ts +1 -1
  310. package/dist/GN-app-api/handler/controller/handler/masterPlayer/GetStatisticsLogRequestHandler.d.ts +6 -6
  311. package/dist/GN-app-api/handler/controller/handler/masterPlayer/GetTagRequestHandler.d.ts +1 -1
  312. package/dist/GN-app-api/handler/controller/handler/masterPlayer/GetTsCreateRequestHandler.d.ts +1 -1
  313. package/dist/GN-app-api/handler/controller/handler/masterPlayer/GetTsLastLoginRequestHandler.d.ts +1 -1
  314. package/dist/GN-app-api/handler/controller/handler/masterPlayer/LinkAccountRequestHandler.d.ts +1 -1
  315. package/dist/GN-app-api/handler/controller/handler/masterPlayer/LinkAndroidDeviceIdRequestHandler.d.ts +1 -1
  316. package/dist/GN-app-api/handler/controller/handler/masterPlayer/LinkAppleRequestHandler.d.ts +1 -1
  317. package/dist/GN-app-api/handler/controller/handler/masterPlayer/LinkCustomDeviceIdRequestHandler.d.ts +1 -1
  318. package/dist/GN-app-api/handler/controller/handler/masterPlayer/LinkCustomIdRequestHandler.d.ts +1 -1
  319. package/dist/GN-app-api/handler/controller/handler/masterPlayer/LinkEditorDeviceIdRequestHandler.d.ts +1 -1
  320. package/dist/GN-app-api/handler/controller/handler/masterPlayer/LinkFacebookRequestHandler.d.ts +1 -1
  321. package/dist/GN-app-api/handler/controller/handler/masterPlayer/LinkGameCenterRequestHandler.d.ts +5 -5
  322. package/dist/GN-app-api/handler/controller/handler/masterPlayer/LinkGenericServiceRequestHandler.d.ts +1 -1
  323. package/dist/GN-app-api/handler/controller/handler/masterPlayer/LinkGooglePlayGameServiceRequestHandler.d.ts +5 -5
  324. package/dist/GN-app-api/handler/controller/handler/masterPlayer/LinkGoogleRequestHandler.d.ts +1 -1
  325. package/dist/GN-app-api/handler/controller/handler/masterPlayer/LinkLinuxDeviceIdRequestHandler.d.ts +1 -1
  326. package/dist/GN-app-api/handler/controller/handler/masterPlayer/LinkMacOSDeviceIdRequestHandler.d.ts +1 -1
  327. package/dist/GN-app-api/handler/controller/handler/masterPlayer/LinkWindowsDeviceIdRequestHandler.d.ts +1 -1
  328. package/dist/GN-app-api/handler/controller/handler/masterPlayer/LinkWindowsPhoneDeviceIdRequestHandler.d.ts +1 -1
  329. package/dist/GN-app-api/handler/controller/handler/masterPlayer/LinkiOSDeviceIdRequestHandler.d.ts +1 -1
  330. package/dist/GN-app-api/handler/controller/handler/masterPlayer/RemovePushNotificationRequestHandler.d.ts +1 -1
  331. package/dist/GN-app-api/handler/controller/handler/masterPlayer/RemoveSegmentRequestHandler.d.ts +1 -1
  332. package/dist/GN-app-api/handler/controller/handler/masterPlayer/RemoveTagRequestHandler.d.ts +1 -1
  333. package/dist/GN-app-api/handler/controller/handler/masterPlayer/ResetAccountPasswordRequestHandler.d.ts +1 -1
  334. package/dist/GN-app-api/handler/controller/handler/masterPlayer/SendEmailRequestHandler.d.ts +1 -1
  335. package/dist/GN-app-api/handler/controller/handler/masterPlayer/SendPushNotificationRequestHandler.d.ts +1 -1
  336. package/dist/GN-app-api/handler/controller/handler/masterPlayer/SendSocketOperationEventRequestHandler.d.ts +2 -3
  337. package/dist/GN-app-api/handler/controller/handler/masterPlayer/SetAvatarRequestHandler.d.ts +1 -1
  338. package/dist/GN-app-api/handler/controller/handler/masterPlayer/SetCountryCodeRequestHandler.d.ts +1 -1
  339. package/dist/GN-app-api/handler/controller/handler/masterPlayer/SetCustomDataRequestHandler.d.ts +2 -2
  340. package/dist/GN-app-api/handler/controller/handler/masterPlayer/SetDisplayNameRequestHandler.d.ts +1 -1
  341. package/dist/GN-app-api/handler/controller/handler/masterPlayer/SetEmailRequestHandler.d.ts +1 -1
  342. package/dist/GN-app-api/handler/controller/handler/masterPlayer/SetPlayerBanRequestHandler.d.ts +1 -1
  343. package/dist/GN-app-api/handler/controller/handler/masterPlayer/SetPlayerDataRequestHandler.d.ts +2 -2
  344. package/dist/GN-app-api/handler/controller/handler/masterPlayer/SetTagRequestHandler.d.ts +1 -1
  345. package/dist/GN-app-api/handler/controller/handler/masterPlayer/SetTsLastLoginRequestHandler.d.ts +1 -1
  346. package/dist/GN-app-api/handler/controller/handler/masterPlayer/UnlinkAccountRequestHandler.d.ts +1 -1
  347. package/dist/GN-app-api/handler/controller/handler/masterPlayer/UnlinkAndroidDeviceIdRequestHandler.d.ts +1 -1
  348. package/dist/GN-app-api/handler/controller/handler/masterPlayer/UnlinkAppleRequestHandler.d.ts +1 -1
  349. package/dist/GN-app-api/handler/controller/handler/masterPlayer/UnlinkCustomDeviceIdRequestHandler.d.ts +1 -1
  350. package/dist/GN-app-api/handler/controller/handler/masterPlayer/UnlinkCustomIdRequestHandler.d.ts +1 -1
  351. package/dist/GN-app-api/handler/controller/handler/masterPlayer/UnlinkEditorDeviceIdRequestHandler.d.ts +1 -1
  352. package/dist/GN-app-api/handler/controller/handler/masterPlayer/UnlinkFacebookRequestHandler.d.ts +1 -1
  353. package/dist/GN-app-api/handler/controller/handler/masterPlayer/UnlinkGameCenterRequestHandler.d.ts +5 -5
  354. package/dist/GN-app-api/handler/controller/handler/masterPlayer/UnlinkGenericServiceRequestHandler.d.ts +1 -1
  355. package/dist/GN-app-api/handler/controller/handler/masterPlayer/UnlinkGooglePlayGameServiceRequestHandler.d.ts +5 -5
  356. package/dist/GN-app-api/handler/controller/handler/masterPlayer/UnlinkGoogleRequestHandler.d.ts +1 -1
  357. package/dist/GN-app-api/handler/controller/handler/masterPlayer/UnlinkLinuxDeviceIdRequestHandler.d.ts +1 -1
  358. package/dist/GN-app-api/handler/controller/handler/masterPlayer/UnlinkMacOSDeviceIdRequestHandler.d.ts +1 -1
  359. package/dist/GN-app-api/handler/controller/handler/masterPlayer/UnlinkWindowsDeviceIdRequestHandler.d.ts +1 -1
  360. package/dist/GN-app-api/handler/controller/handler/masterPlayer/UnlinkWindowsPhoneDeviceIdRequestHandler.d.ts +1 -1
  361. package/dist/GN-app-api/handler/controller/handler/masterPlayer/UnlinkiOSDeviceIdRequestHandler.d.ts +1 -1
  362. package/dist/GN-app-api/handler/controller/handler/multiplayer/CancelAllMatchmakingTicketRequestHandler.d.ts +1 -1
  363. package/dist/GN-app-api/handler/controller/handler/multiplayer/CancelMatchmakingTicketRequestHandler.d.ts +1 -1
  364. package/dist/GN-app-api/handler/controller/handler/multiplayer/CreateMatchmakingTicketRequestHandler.d.ts +2 -2
  365. package/dist/GN-app-api/handler/controller/handler/multiplayer/GetAllMatchRequestHandler.d.ts +5 -5
  366. package/dist/GN-app-api/handler/controller/handler/multiplayer/GetAllMatchmakingTicketRequestHandler.d.ts +5 -5
  367. package/dist/GN-app-api/handler/controller/handler/multiplayer/GetMatchRequestHandler.d.ts +1 -1
  368. package/dist/GN-app-api/handler/controller/handler/multiplayer/GetMatchmakingTicketRequestHandler.d.ts +1 -1
  369. package/dist/GN-app-api/handler/controller/handler/multiplayer/GetQueueStatisticsRequestHandler.d.ts +1 -1
  370. package/dist/GN-app-api/handler/controller/handler/multiplayer/JoinMatchmakingTicketRequestHandler.d.ts +1 -1
  371. package/dist/GN-app-api/handler/controller/handler/multiplayer/ListMatchmakingTicketsForPlayerRequestHandler.d.ts +1 -1
  372. package/dist/GN-app-api/handler/controller/handler/storeInventory/BuyStoreItemRequestHandler.d.ts +1 -1
  373. package/dist/GN-app-api/handler/controller/handler/storeInventory/{GrantStoreItemRequestHandler.d.ts → CreateStoreItemRequestHandler.d.ts} +4 -4
  374. package/dist/GN-app-api/handler/controller/handler/storeInventory/GetCreateLeaderboardRequestHandler.d.ts +7 -7
  375. package/dist/GN-app-api/handler/controller/handler/storeInventory/GetStoreItemInformationRequestHandler.d.ts +1 -1
  376. package/dist/GN-app-api/handler/controller/handler/storeInventory/GetStoreItemsWithTagRequestHandler.d.ts +1 -1
  377. package/dist/GN-app-api/handler/controller/handler/storeInventory/GetStoreLogRequestHandler.d.ts +5 -5
  378. package/dist/GN-app-api/handler/controller/handler/storeInventory/GetStoreUsedRequestHandler.d.ts +6 -5
  379. package/dist/GN-app-api/handler/controller/handler/storeInventory/PresentStoreItemRequestHandler.d.ts +5 -5
  380. package/dist/GN-app-api/handler/controller/handler/storeInventory/RemoveStoreUsedRequestHandler.d.ts +5 -5
  381. package/dist/GN-app-api/handler/controller/handler/storeInventory/SetRemoveStatusRequestHandler.d.ts +1 -1
  382. package/dist/GN-app-api/handler/controller/handler/storeInventory/SetStoreItemInformationRequestHandler.d.ts +8 -8
  383. package/dist/GN-app-api/handler/controller/handler/storeInventory/StoreItemBaseRequestHandler.d.ts +1 -1
  384. package/dist/GN-app-api/handler/controller/handler/storeInventory/ValidateAppleAppStoreReceiptRequestHandler.d.ts +1 -1
  385. package/dist/GN-app-api/handler/controller/handler/storeInventory/ValidateFacebookStoreReceiptRequestHandler.d.ts +1 -1
  386. package/dist/GN-app-api/handler/controller/handler/storeInventory/ValidateGooglePlayStoreReceiptRequestHandler.d.ts +1 -1
  387. package/dist/GN-app-api/service/AnalyticsService.d.ts +1 -0
  388. package/dist/GN-app-api/service/CloudScriptService.d.ts +5 -3
  389. package/dist/GN-app-api/service/EventCallbackService.d.ts +51 -7
  390. package/dist/GN-app-api/service/IAnalyticsService.d.ts +8 -0
  391. package/dist/GN-app-api/service/IEventCallbackService.d.ts +14 -0
  392. package/dist/GN-common/constant/EventCode.d.ts +6 -6
  393. package/dist/GN-common/constant/OperationCode.d.ts +219 -219
  394. package/dist/GN-common/constant/errorCode/{GNErrorCode.d.ts → ErrorCode.d.ts} +2 -2
  395. package/dist/GN-common/constant/parameterCode/ParameterCode.d.ts +606 -0
  396. package/dist/GN-common/entity/SecretInfo.d.ts +26 -26
  397. package/dist/GN-common/entity/operationEvent/OperationEvent.d.ts +2 -5
  398. package/dist/GN-common/entity/operationHelper/OperationHelper.d.ts +26 -14
  399. package/dist/GN-common/entity/operationRequest/CommonOperationRequest.d.ts +1 -1
  400. package/dist/GN-common/entity/operationRequest/OperationRequest.d.ts +2 -9
  401. package/dist/GN-common/entity/operationRequest/base/Request.d.ts +5 -8
  402. package/dist/GN-common/entity/operationResponse/OperationResponse.d.ts +2 -5
  403. package/dist/GN-common/helper/CodeHelper.d.ts +13 -16
  404. package/dist/GN-common/helper/EnumUtility.d.ts +6 -0
  405. package/dist/GN-library/xdatabase/lib/entity/pro/Group.d.ts +2 -2
  406. package/dist/GN-library/xdatabase/lib/entity/pro/Inventory.d.ts +1 -1
  407. package/dist/GN-library/xdatabase/lib/entity/pro/PlayerBase.d.ts +2 -2
  408. package/dist/GN-library/xdatabase/lib/entity/pro/TradeInventory.d.ts +1 -1
  409. package/dist/GN-library/xdatabase/lib/entity/pro/masterAdmin/SecretInfoItem.d.ts +4 -4
  410. package/dist/GN-library/xdatabase/lib/xDatabase.d.ts +26 -10
  411. package/dist/GN-library/xsettings/lib/entity/xCharacterCatalogSettings.d.ts +1 -1
  412. package/dist/GN-library/xsettings/lib/entity/xCharacterPlayerSettings.d.ts +1 -1
  413. package/dist/GN-library/xsettings/lib/entity/xCurrencySettings.d.ts +1 -1
  414. package/dist/GN-library/xsettings/lib/entity/xDataSettings.d.ts +1 -1
  415. package/dist/GN-library/xsettings/lib/entity/xFriendCatalogSettings.d.ts +1 -0
  416. package/dist/GN-library/xsettings/lib/entity/xGamePlayerSettings.d.ts +1 -1
  417. package/dist/GN-library/xsettings/lib/entity/xGroupCatalogSettings.d.ts +1 -1
  418. package/dist/GN-library/xsettings/lib/entity/xGroupSettings.d.ts +1 -1
  419. package/dist/GN-library/xsettings/lib/entity/xInventorySettings.d.ts +2 -2
  420. package/dist/GN-library/xsettings/lib/entity/xItemCatalogSettings.d.ts +1 -1
  421. package/dist/GN-library/xsettings/lib/entity/xMasterPlayerSettings.d.ts +1 -1
  422. package/dist/GN-library/xsettings/lib/entity/xStatisticsSettings.d.ts +1 -1
  423. package/dist/GN-library/xsettings/lib/entity/xTagSettings.d.ts +1 -1
  424. package/dist/GN-startup/cloudScript/banner.txt +6 -0
  425. package/dist/GN-startup/cloudScript/eventCallbackCloudScriptData.json +121 -111
  426. package/dist/GN-startup/cloudScript/templateCloudScript.ts +277 -247
  427. package/dist/GN-startup/cloudScript/templateEventCallback.ts +578 -415
  428. package/dist/GN-startup/routes/ClusterHandler.d.ts +12 -0
  429. package/dist/GN-startup/routes/SocketAppHandler.d.ts +1 -1
  430. package/dist/GN-startup/routes/utils/wrap.d.ts +1 -1
  431. package/dist/GN-startup/settings/ApplicationSettings.d.ts +9 -0
  432. package/dist/GN-startup/settings/DatabaseSettings.d.ts +6 -0
  433. package/dist/GN-startup/settings/OtherSettings.d.ts +3 -0
  434. package/dist/GNServer.d.ts +8 -5
  435. package/dist/index.d.ts +2 -8
  436. package/gn.sh +30 -32
  437. package/index.js +26 -0
  438. package/package.json +12 -7
  439. package/dist/GN-app-api/service/GenericService.d.ts +0 -11
  440. package/dist/GN-app-api/service/IGenericService.d.ts +0 -26
  441. package/dist/GN-common/constant/parameterCode/GNParameterCode.d.ts +0 -599
  442. package/dist/index.js +0 -87844
@@ -1,78 +1,78 @@
1
- import { SecretInfo, SecretPermissionItem } from "../../index";
2
- import { AuthInfo } from "../../index";
3
- import { authenticate_InfoRequestParam as authenticate_InfoRequestParam } from "../../index";
4
- import { characterPlayer_InfoRequestParam as characterPlayer_InfoRequestParam } from "../../index";
5
- import { gamePlayer_InfoRequestParam as gamePlayer_InfoRequestParam } from "../../index";
6
- import { group_InfoRequestParam as group_InfoRequestParam } from "../../index";
7
- import { inventory_InfoRequestParam as inventory_InfoRequestParam } from "../../index";
8
- import { masterPlayer_InfoRequestParam as masterPlayer_InfoRequestParam } from "../../index";
9
- import { storeInventory_InfoRequestParam as storeInventory_InfoRequestParam } from "../../index";
10
- import { PermissionParam } from "../../index";
11
-
12
- import { ContentDataParam } from "../../index";
13
-
14
- import { CustomDataParam } from "../../index";
15
- // import { GroupMemberParam } from "../../index";
16
- import { PlayerCurrencyParam } from "../../index";
17
- import { PlayerDataParam } from "../../index";
18
- import { PlayerStatisticsParam } from "../../index";
19
-
20
- import { GroupCurrencyParam } from "../../index";
21
- import { GroupDataParam } from "../../index";
22
- import { GroupMemberParam } from "../../index";
23
- import { GroupMessageItem } from "../../index";
24
- import { GroupStatisticsParam } from "../../index";
25
-
26
- import { ItemDataParam } from "../../index";
27
- import { ItemStatisticsParam } from "../../index";
28
-
29
- import { AvatarParam } from "../../index";
30
- import { CurrencyParam } from "../../index";
31
- import { InAppPurchaseParam } from "../../index";
32
- import { StoreDataParam } from "../../index";
33
- import { StoreItemParam } from "../../index";
34
- import { TagParam } from "../../index";
35
-
36
- import { AuthenticatePermissionRulesParam } from "../../index";
37
- import { CharacterCatalogSettingsParam } from "../../index";
38
- import { CharacterPlayerPermissionRulesParam } from "../../index";
39
- import { CharacterPlayerSettingsParam } from "../../index";
40
- import { CloudScriptPermissionRulesParam } from "../../index";
41
- import { ContentPermissionRulesParam } from "../../index";
42
- import { CurrencySettingsParam } from "../../index";
43
- import { DataSettingsParam } from "../../index";
44
- import { FriendCatalogSettingsParam } from "../../index";
45
- import { GamePlayerPermissionRulesParam } from "../../index";
46
- import { GamePlayerSettingsParam } from "../../index";
47
- import { GameSettingsParam } from "../../index";
48
- import { GenericServiceSettingsParam } from "../../index";
49
- import { GroupCatalogSettingsParam } from "../../index";
50
- import { GroupPermissionRulesParam } from "../../index";
51
- import { GroupSettingsParam } from "../../index";
52
- import { InventoryPermissionRulesParam } from "../../index";
53
- import { InventorySettingsParam } from "../../index";
54
- import { ItemCatalogSettingsParam } from "../../index";
55
- import { ItemClassSettingsParam } from "../../index";
56
- import { MasterAdminPermissionRulesParam } from "../../index";
57
- import { MasterPlayerPermissionRulesParam } from "../../index";
58
- import { MasterPlayerSettingsParam } from "../../index";
59
- import { MatchmakingQueueSettingsParam } from "../../index";
60
- import { MultiplayerPermissionRulesParam } from "../../index";
61
- import { PermissionRulesParam } from "../../index";
62
- import { StatisticsSettingsParam } from "../../index";
63
- import { StoreInventoryPermissionRulesParam } from "../../index";
64
- import { TagSettingsParam } from "../../index";
65
- import { ThirtPartyAppleSettingsParam } from "../../index";
66
- import { ThirtPartyFacebookSettingsParam } from "../../index";
67
- import { ThirtPartyGameCenterSettingsParam } from "../../index";
68
- import { ThirtPartyGooglePlayGameSettingsParam } from "../../index";
69
- import { ThirtPartyParam } from "../../index";
70
- import { EmailSettingsParam } from "../../index";
71
- import { PushNotificationSettingsParam } from "../../index";
72
- import { AnalyticsRequestParams } from "../../index";
73
- import { ServerGameDataRequestParams } from "../../index";
74
- import { MatchmakingTicketCanMatch } from "../../index";
75
- import { ServerDetail } from "../../index";
1
+ import { SecretInfo, SecretPermissionItem } from "./../../index";
2
+ import { AuthInfo } from "./../../index";
3
+ import { authenticate_InfoRequestParam as authenticate_InfoRequestParam } from "./../../index";
4
+ import { characterPlayer_InfoRequestParam as characterPlayer_InfoRequestParam } from "./../../index";
5
+ import { gamePlayer_InfoRequestParam as gamePlayer_InfoRequestParam } from "./../../index";
6
+ import { group_InfoRequestParam as group_InfoRequestParam } from "./../../index";
7
+ import { inventory_InfoRequestParam as inventory_InfoRequestParam } from "./../../index";
8
+ import { masterPlayer_InfoRequestParam as masterPlayer_InfoRequestParam } from "./../../index";
9
+ import { storeInventory_InfoRequestParam as storeInventory_InfoRequestParam } from "./../../index";
10
+ import { PermissionParam } from "./../../index";
11
+
12
+ import { ContentDataParam } from "./../../index";
13
+
14
+ import { CustomDataParam } from "./../../index";
15
+ // import { GroupMemberParam } from "./../../index";
16
+ import { PlayerCurrencyParam } from "./../../index";
17
+ import { PlayerDataParam } from "./../../index";
18
+ import { PlayerStatisticsParam } from "./../../index";
19
+
20
+ import { GroupCurrencyParam } from "./../../index";
21
+ import { GroupDataParam } from "./../../index";
22
+ import { GroupMemberParam } from "./../../index";
23
+ import { GroupMessageItem } from "./../../index";
24
+ import { GroupStatisticsParam } from "./../../index";
25
+
26
+ import { ItemDataParam } from "./../../index";
27
+ import { ItemStatisticsParam } from "./../../index";
28
+
29
+ import { AvatarParam } from "./../../index";
30
+ import { CurrencyParam } from "./../../index";
31
+ import { InAppPurchaseParam } from "./../../index";
32
+ import { StoreDataParam } from "./../../index";
33
+ import { StoreItemParam } from "./../../index";
34
+ import { TagParam } from "./../../index";
35
+
36
+ import { AuthenticatePermissionRulesParam } from "./../../index";
37
+ import { CharacterCatalogSettingsParam } from "./../../index";
38
+ import { CharacterPlayerPermissionRulesParam } from "./../../index";
39
+ import { CharacterPlayerSettingsParam } from "./../../index";
40
+ import { CloudScriptPermissionRulesParam } from "./../../index";
41
+ import { ContentPermissionRulesParam } from "./../../index";
42
+ import { CurrencySettingsParam } from "./../../index";
43
+ import { DataSettingsParam } from "./../../index";
44
+ import { FriendCatalogSettingsParam } from "./../../index";
45
+ import { GamePlayerPermissionRulesParam } from "./../../index";
46
+ import { GamePlayerSettingsParam } from "./../../index";
47
+ import { GameSettingsParam } from "./../../index";
48
+ import { GenericServiceSettingsParam } from "./../../index";
49
+ import { GroupCatalogSettingsParam } from "./../../index";
50
+ import { GroupPermissionRulesParam } from "./../../index";
51
+ import { GroupSettingsParam } from "./../../index";
52
+ import { InventoryPermissionRulesParam } from "./../../index";
53
+ import { InventorySettingsParam } from "./../../index";
54
+ import { ItemCatalogSettingsParam } from "./../../index";
55
+ import { ItemClassSettingsParam } from "./../../index";
56
+ import { MasterAdminPermissionRulesParam } from "./../../index";
57
+ import { MasterPlayerPermissionRulesParam } from "./../../index";
58
+ import { MasterPlayerSettingsParam } from "./../../index";
59
+ import { MatchmakingQueueSettingsParam } from "./../../index";
60
+ import { MultiplayerPermissionRulesParam } from "./../../index";
61
+ import { PermissionRulesParam } from "./../../index";
62
+ import { StatisticsSettingsParam } from "./../../index";
63
+ import { StoreInventoryPermissionRulesParam } from "./../../index";
64
+ import { TagSettingsParam } from "./../../index";
65
+ import { ThirtPartyAppleSettingsParam } from "./../../index";
66
+ import { ThirtPartyFacebookSettingsParam } from "./../../index";
67
+ import { ThirtPartyGameCenterSettingsParam } from "./../../index";
68
+ import { ThirtPartyGooglePlayGameSettingsParam } from "./../../index";
69
+ import { ThirtPartyParam } from "./../../index";
70
+ import { EmailSettingsParam } from "./../../index";
71
+ import { PushNotificationSettingsParam } from "./../../index";
72
+ import { AnalyticsRequestParams } from "./../../index";
73
+ import { ServerGameDataRequestParams } from "./../../index";
74
+ import { MatchmakingTicketCanMatch } from "./../../index";
75
+ import { ServerDetail } from "./../../index";
76
76
 
77
77
  import {
78
78
  GNNetwork,
@@ -83,8 +83,7 @@ import {
83
83
  Action4,
84
84
  ConverterService,
85
85
  OwnerType,
86
- GNErrorCode,
87
- GNParameterCode,
86
+ ErrorCode,
88
87
  ParameterCode,
89
88
  Commands,
90
89
  EventCode,
@@ -136,14 +135,14 @@ import {
136
135
  GroupStatus,
137
136
  GNDebug,
138
137
  ItemType,
139
- StoreItemType,
138
+ StoreItemType,
140
139
  LogType,
141
140
  GNSupport,
142
141
  PostType,
143
142
  GetAuthInfoResponse,
144
143
  PushPlatformType,
145
144
  StoreReceiveType,
146
- GNUtils,
145
+ GNUtils,
147
146
  } from "@xmobitea/gn-typescript-client";
148
147
 
149
148
  import * as mongodb from "mongodb";
@@ -158,9 +157,8 @@ enum CloudScriptEventType {
158
157
  interface CloudScriptEvent {
159
158
  eventType: CloudScriptEventType;
160
159
  operationEvent: {
161
- eventCode: number;
160
+ eventCode: string;
162
161
  parameters: {} | null;
163
- encrypted: boolean;
164
162
  };
165
163
  receiver: string[] | string | null;
166
164
  }
@@ -176,56 +174,56 @@ class CloudScriptAdmin {
176
174
  public readonly multiplayer = GNNetwork.multiplayer.admin;
177
175
  public readonly cloudScript = GNNetwork.cloudScript.admin;
178
176
  public readonly dashboard = {
179
- getAdminAccountList: GNNetwork.dashboard.getAdminAccountList,
180
- getAdminAccountListAsync: GNNetwork.dashboard.getAdminAccountListAsync,
181
- getGameInformation: GNNetwork.dashboard.getGameInformation,
182
- getGameInformationAsync: GNNetwork.dashboard.getGameInformationAsync,
183
- getGameList: GNNetwork.dashboard.getGameList,
184
- getGameListAsync: GNNetwork.dashboard.getGameListAsync,
185
- getMasterGameSettings: GNNetwork.dashboard.getMasterGameSettings,
186
- getMasterGameSettingsAsync: GNNetwork.dashboard.getMasterGameSettingsAsync,
187
- getSecretInfoInformation: GNNetwork.dashboard.getSecretInfoInformation,
188
- getSecretInfoInformationAsync: GNNetwork.dashboard.getSecretInfoInformationAsync,
189
- getSecretInfoList: GNNetwork.dashboard.getSecretInfoList,
190
- getSecretInfoListAsync: GNNetwork.dashboard.getSecretInfoListAsync,
191
- getServerLog: GNNetwork.dashboard.getServerLog,
192
- getServerLogAsync: GNNetwork.dashboard.getServerLogAsync,
193
- setGameInformation: GNNetwork.dashboard.setGameInformation,
194
- setGameInformationAsync: GNNetwork.dashboard.setGameInformationAsync,
195
- getUsernameAdminAccount: GNNetwork.dashboard.getUsernameAdminAccount,
196
- getUsernameAdminAccountAsync: GNNetwork.dashboard.getUsernameAdminAccountAsync,
197
- getAnalytics: GNNetwork.dashboard.getAnalytics,
198
- getAnalyticsAsync: GNNetwork.dashboard.getAnalyticsAsync,
199
- resetStatisticsLeaderboard: GNNetwork.dashboard.resetStatisticsLeaderboard,
200
- resetStatisticsLeaderboardAsync: GNNetwork.dashboard.resetStatisticsLeaderboardAsync,
201
- getBackupStatisticsLeaderboardVersion: GNNetwork.dashboard.getBackupStatisticsLeaderboardVersion,
202
- getBackupStatisticsLeaderboardVersionAsync: GNNetwork.dashboard.getBackupStatisticsLeaderboardVersionAsync,
203
- getServerGameData: GNNetwork.dashboard.getServerGameData,
204
- getServerGameDataAsync: GNNetwork.dashboard.getServerGameDataAsync,
205
- deleteInDatabase: GNNetwork.dashboard.deleteInDatabase,
206
- deleteInDatabaseAsync: GNNetwork.dashboard.deleteInDatabaseAsync,
207
- };
177
+ getAdminAccountList: GNNetwork.dashboard.getAdminAccountList,
178
+ getAdminAccountListAsync: GNNetwork.dashboard.getAdminAccountListAsync,
179
+ getGameInformation: GNNetwork.dashboard.getGameInformation,
180
+ getGameInformationAsync: GNNetwork.dashboard.getGameInformationAsync,
181
+ getGameList: GNNetwork.dashboard.getGameList,
182
+ getGameListAsync: GNNetwork.dashboard.getGameListAsync,
183
+ getMasterGameSettings: GNNetwork.dashboard.getMasterGameSettings,
184
+ getMasterGameSettingsAsync: GNNetwork.dashboard.getMasterGameSettingsAsync,
185
+ getSecretInfoInformation: GNNetwork.dashboard.getSecretInfoInformation,
186
+ getSecretInfoInformationAsync: GNNetwork.dashboard.getSecretInfoInformationAsync,
187
+ getSecretInfoList: GNNetwork.dashboard.getSecretInfoList,
188
+ getSecretInfoListAsync: GNNetwork.dashboard.getSecretInfoListAsync,
189
+ getServerLog: GNNetwork.dashboard.getServerLog,
190
+ getServerLogAsync: GNNetwork.dashboard.getServerLogAsync,
191
+ setGameInformation: GNNetwork.dashboard.setGameInformation,
192
+ setGameInformationAsync: GNNetwork.dashboard.setGameInformationAsync,
193
+ getUsernameAdminAccount: GNNetwork.dashboard.getUsernameAdminAccount,
194
+ getUsernameAdminAccountAsync: GNNetwork.dashboard.getUsernameAdminAccountAsync,
195
+ getAnalytics: GNNetwork.dashboard.getAnalytics,
196
+ getAnalyticsAsync: GNNetwork.dashboard.getAnalyticsAsync,
197
+ resetStatisticsLeaderboard: GNNetwork.dashboard.resetStatisticsLeaderboard,
198
+ resetStatisticsLeaderboardAsync: GNNetwork.dashboard.resetStatisticsLeaderboardAsync,
199
+ getBackupStatisticsLeaderboardVersion: GNNetwork.dashboard.getBackupStatisticsLeaderboardVersion,
200
+ getBackupStatisticsLeaderboardVersionAsync: GNNetwork.dashboard.getBackupStatisticsLeaderboardVersionAsync,
201
+ getServerGameData: GNNetwork.dashboard.getServerGameData,
202
+ getServerGameDataAsync: GNNetwork.dashboard.getServerGameDataAsync,
203
+ deleteInDatabase: GNNetwork.dashboard.deleteInDatabase,
204
+ deleteInDatabaseAsync: GNNetwork.dashboard.deleteInDatabaseAsync,
205
+ };
208
206
  public send(
209
207
  requestType: RequestType,
210
- requestRole: RequestRole,
208
+ role: RequestRole,
211
209
  request: OperationRequest,
212
210
  onResponse: Action1<OperationResponse>,
213
211
  overrideAuthToken: string,
214
212
  overrideSecretKey: string,
215
213
  customTags: GNHashtable
216
214
  ): void {
217
- GNNetwork.sendViaHttp(requestType, requestRole, request, onResponse, overrideAuthToken, overrideSecretKey, customTags);
215
+ GNNetwork.sendViaHttp(requestType, role, request, onResponse, overrideAuthToken, overrideSecretKey, customTags);
218
216
  }
219
217
 
220
218
  public sendAsync(
221
219
  requestType: RequestType,
222
- requestRole: RequestRole,
220
+ role: RequestRole,
223
221
  request: OperationRequest,
224
222
  overrideAuthToken: string,
225
223
  overrideSecretKey: string,
226
224
  customTags: GNHashtable
227
225
  ): Promise<OperationResponse> {
228
- return GNNetwork.sendViaHttpAsync(requestType, requestRole, request, overrideAuthToken, overrideSecretKey, customTags);
226
+ return GNNetwork.sendViaHttpAsync(requestType, role, request, overrideAuthToken, overrideSecretKey, customTags);
229
227
  }
230
228
  }
231
229
 
@@ -238,45 +236,87 @@ class CloudScriptDatabase {
238
236
  private client: mongodb.MongoClient;
239
237
  private db: mongodb.Db;
240
238
 
241
- init(url: string, dbName: string, options?: mongodb.MongoClientOptions): void {
239
+ private logClient: mongodb.MongoClient;
240
+ private logDb: mongodb.Db;
241
+
242
+ init(url: string, dbName: string, logUrl: string, logDbName: string, options?: mongodb.MongoClientOptions): void {
242
243
  this.client = new mongodb.MongoClient(url, options);
243
244
 
244
245
  this.db = this.client.db(dbName);
245
246
 
246
- this.client.connect();
247
+ if (!logUrl || logUrl == "" || logUrl == url) {
248
+ this.logClient = this.client;
249
+ this.logDb = this.db;
250
+ }
251
+ else {
252
+ this.logClient = new mongodb.MongoClient(logUrl, options);
253
+ this.logDb = this.logClient.db(logDbName);
254
+ }
247
255
  }
248
256
 
249
- public runtimeCollection(collectionName: string): mongodb.Collection<mongodb.Document> {
250
- return this.collection(CloudScriptDatabase.RUNTIME + collectionName);
257
+ public runtimeCollection<TSchema extends mongodb.Document = mongodb.Document>(collectionName: string): mongodb.Collection<TSchema> {
258
+ return this.collection<TSchema>(CloudScriptDatabase.RUNTIME + collectionName);
251
259
  }
252
260
 
253
- public metaCollection(collectionName: string): mongodb.Collection<mongodb.Document> {
254
- return this.collection(CloudScriptDatabase.META + collectionName);
261
+ public metaCollection<TSchema extends mongodb.Document = mongodb.Document>(collectionName: string): mongodb.Collection<TSchema> {
262
+ return this.collection<TSchema>(CloudScriptDatabase.META + collectionName);
255
263
  }
256
264
 
257
- public systemCollection(collectionName: string): mongodb.Collection<mongodb.Document> {
258
- return this.collection(CloudScriptDatabase.SYSTEM + collectionName);
265
+ public systemCollection<TSchema extends mongodb.Document = mongodb.Document>(collectionName: string): mongodb.Collection<TSchema> {
266
+ return this.collection<TSchema>(CloudScriptDatabase.SYSTEM + collectionName);
259
267
  }
260
268
 
261
- public runtimeGameCollection(collectionName: string, gameId: string): mongodb.Collection<mongodb.Document> {
262
- return this.collection(CloudScriptDatabase.RUNTIME + gameId + CloudScriptDatabase.DOT + collectionName);
269
+ public runtimeGameCollection<TSchema extends mongodb.Document = mongodb.Document>(collectionName: string, gameId: string): mongodb.Collection<TSchema> {
270
+ return this.collection<TSchema>(CloudScriptDatabase.RUNTIME + gameId + CloudScriptDatabase.DOT + collectionName);
263
271
  }
264
272
 
265
- public metaGameCollection(collectionName: string, gameId: string): mongodb.Collection<mongodb.Document> {
266
- return this.collection(CloudScriptDatabase.META + gameId + CloudScriptDatabase.DOT + collectionName);
273
+ public metaGameCollection<TSchema extends mongodb.Document = mongodb.Document>(collectionName: string, gameId: string): mongodb.Collection<TSchema> {
274
+ return this.collection<TSchema>(CloudScriptDatabase.META + gameId + CloudScriptDatabase.DOT + collectionName);
267
275
  }
268
276
 
269
- public systemGameCollection(collectionName: string, gameId: string): mongodb.Collection<mongodb.Document> {
270
- return this.collection(CloudScriptDatabase.SYSTEM + gameId + CloudScriptDatabase.DOT + collectionName);
277
+ public systemGameCollection<TSchema extends mongodb.Document = mongodb.Document>(collectionName: string, gameId: string): mongodb.Collection<TSchema> {
278
+ return this.collection<TSchema>(CloudScriptDatabase.SYSTEM + gameId + CloudScriptDatabase.DOT + collectionName);
271
279
  }
272
280
 
273
- public collection(fullCollectionName: string): mongodb.Collection<mongodb.Document> {
274
- return this.db.collection(fullCollectionName);
281
+ public collection<TSchema extends mongodb.Document = mongodb.Document>(fullCollectionName: string): mongodb.Collection<TSchema> {
282
+ return this.db.collection<TSchema>(fullCollectionName);
275
283
  }
276
284
 
277
285
  public createCollection(name: string, options?: mongodb.CreateCollectionOptions): Promise<mongodb.Collection<mongodb.BSON.Document>> {
278
286
  return this.db.createCollection(name, options);
279
287
  }
288
+
289
+ public logRuntimeCollection<TSchema extends mongodb.Document = mongodb.Document>(collectionName: string): mongodb.Collection<TSchema> {
290
+ return this.logCollection<TSchema>(CloudScriptDatabase.RUNTIME + collectionName);
291
+ }
292
+
293
+ public logMetaCollection<TSchema extends mongodb.Document = mongodb.Document>(collectionName: string): mongodb.Collection<TSchema> {
294
+ return this.logCollection<TSchema>(CloudScriptDatabase.META + collectionName);
295
+ }
296
+
297
+ public logSystemCollection<TSchema extends mongodb.Document = mongodb.Document>(collectionName: string): mongodb.Collection<TSchema> {
298
+ return this.logCollection<TSchema>(CloudScriptDatabase.SYSTEM + collectionName);
299
+ }
300
+
301
+ public logRuntimeGameCollection<TSchema extends mongodb.Document = mongodb.Document>(collectionName: string, gameId: string): mongodb.Collection<TSchema> {
302
+ return this.logCollection<TSchema>(CloudScriptDatabase.RUNTIME + gameId + CloudScriptDatabase.DOT + collectionName);
303
+ }
304
+
305
+ public logMetaGameCollection<TSchema extends mongodb.Document = mongodb.Document>(collectionName: string, gameId: string): mongodb.Collection<TSchema> {
306
+ return this.logCollection<TSchema>(CloudScriptDatabase.META + gameId + CloudScriptDatabase.DOT + collectionName);
307
+ }
308
+
309
+ public logSystemGameCollection<TSchema extends mongodb.Document = mongodb.Document>(collectionName: string, gameId: string): mongodb.Collection<TSchema> {
310
+ return this.logCollection<TSchema>(CloudScriptDatabase.SYSTEM + gameId + CloudScriptDatabase.DOT + collectionName);
311
+ }
312
+
313
+ public logCollection<TSchema extends mongodb.Document = mongodb.Document>(fullCollectionName: string): mongodb.Collection<TSchema> {
314
+ return this.logDb.collection<TSchema>(fullCollectionName);
315
+ }
316
+
317
+ public logCreateCollection<TSchema extends mongodb.Document = mongodb.Document>(collectionName: string, options?: mongodb.CreateCollectionOptions) {
318
+ return this.logDb.createCollection<TSchema>(collectionName, options)
319
+ }
280
320
  }
281
321
 
282
322
  class CloudScriptHttp {
@@ -316,7 +356,6 @@ class CloudScriptSocket {
316
356
  receiver: userId,
317
357
  operationEvent: {
318
358
  eventCode: operationEvent.getEventCode(),
319
- encrypted: operationEvent.isEncrypted(),
320
359
  parameters: operationEvent.getParameters()?.toData() ?? null,
321
360
  },
322
361
  });
@@ -328,7 +367,6 @@ class CloudScriptSocket {
328
367
  receiver: userIds,
329
368
  operationEvent: {
330
369
  eventCode: operationEvent.getEventCode(),
331
- encrypted: operationEvent.isEncrypted(),
332
370
  parameters: operationEvent.getParameters()?.toData() ?? null,
333
371
  },
334
372
  });
@@ -340,167 +378,158 @@ class CloudScriptSocket {
340
378
  receiver: null,
341
379
  operationEvent: {
342
380
  eventCode: operationEvent.getEventCode(),
343
- encrypted: operationEvent.isEncrypted(),
344
381
  parameters: operationEvent.getParameters()?.toData() ?? null,
345
382
  },
346
383
  });
347
384
  }
348
385
 
349
386
  private async sendEvent(event: CloudScriptEvent) {
350
- if (process?.send)
351
- process.send(event);
387
+ if (process?.send)
388
+ process.send(event);
352
389
  }
353
390
  }
354
391
 
355
392
  class CloudScriptMatchmaking {
356
393
  public async confirmServerDetail(gameId: string, matchmakingTicketCanMatch: MatchmakingTicketCanMatch, serverDetail: ServerDetail) {
357
394
  if (process?.send)
358
- process.send({
359
- eventType: 10,
360
- receiver: null,
361
- operationEvent: {
362
- eventCode: 0,
363
- encrypted: false,
364
- parameters: {
365
- gameId: gameId,
366
- matchmakingTicketCanMatch: matchmakingTicketCanMatch,
367
- serverDetail: serverDetail,
368
- },
369
- },
370
- });
395
+ process.send({
396
+ eventType: 10,
397
+ receiver: null,
398
+ operationEvent: {
399
+ eventCode: 0,
400
+ parameters: {
401
+ gameId: gameId,
402
+ matchmakingTicketCanMatch: matchmakingTicketCanMatch,
403
+ serverDetail: serverDetail,
404
+ },
405
+ },
406
+ });
371
407
  }
372
408
  }
373
409
 
374
410
  class CloudScriptMail {
375
411
  public async send(email: string, subject: string, contentHtml: string) {
376
412
  if (process?.send)
377
- process.send({
378
- eventType: 20,
379
- receiver: null,
380
- operationEvent: {
381
- eventCode: 0,
382
- encrypted: false,
383
- parameters: {
384
- email: email,
385
- subject: subject,
386
- contentHtml: contentHtml,
387
- },
388
- },
389
- });
413
+ process.send({
414
+ eventType: 20,
415
+ receiver: null,
416
+ operationEvent: {
417
+ eventCode: 0,
418
+ parameters: {
419
+ email: email,
420
+ subject: subject,
421
+ contentHtml: contentHtml,
422
+ },
423
+ },
424
+ });
390
425
  }
391
426
 
392
427
  public async sendToMore(emails: string[], subject: string, contentHtml: string) {
393
428
  if (process?.send)
394
- process.send({
395
- eventType: 21,
396
- receiver: null,
397
- operationEvent: {
398
- eventCode: 0,
399
- encrypted: false,
400
- parameters: {
401
- emails: emails,
402
- subject: subject,
403
- contentHtml: contentHtml,
404
- },
405
- },
406
- });
429
+ process.send({
430
+ eventType: 21,
431
+ receiver: null,
432
+ operationEvent: {
433
+ eventCode: 0,
434
+ parameters: {
435
+ emails: emails,
436
+ subject: subject,
437
+ contentHtml: contentHtml,
438
+ },
439
+ },
440
+ });
407
441
  }
408
442
  }
409
443
 
410
444
  class CloudScriptPushNotification {
411
445
  public async send(token: string, title: string, body: string, badge?: number, sound?: string, icon?: string, data?: { [k: string]: any }) {
412
446
  if (process?.send)
413
- process.send({
414
- eventType: 30,
415
- receiver: null,
416
- operationEvent: {
417
- eventCode: 0,
418
- encrypted: false,
419
- parameters: {
420
- token: token,
421
- title: title,
422
- body: body,
423
- badge: badge,
424
- sound: sound,
425
- icon: icon,
426
- data: data,
427
- },
428
- },
429
- });
447
+ process.send({
448
+ eventType: 30,
449
+ receiver: null,
450
+ operationEvent: {
451
+ eventCode: 0,
452
+ parameters: {
453
+ token: token,
454
+ title: title,
455
+ body: body,
456
+ badge: badge,
457
+ sound: sound,
458
+ icon: icon,
459
+ data: data,
460
+ },
461
+ },
462
+ });
430
463
  }
431
464
 
432
465
  public async sendToMore(tokens: string[], title: string, body: string, badge?: number, sound?: string, icon?: string, data?: { [k: string]: any }) {
433
466
  if (process?.send)
434
- process.send({
435
- eventType: 31,
436
- receiver: null,
437
- operationEvent: {
438
- eventCode: 0,
439
- encrypted: false,
440
- parameters: {
441
- tokens: tokens,
442
- title: title,
443
- body: body,
444
- badge: badge,
445
- sound: sound,
446
- icon: icon,
447
- data: data,
448
- },
449
- },
450
- });
467
+ process.send({
468
+ eventType: 31,
469
+ receiver: null,
470
+ operationEvent: {
471
+ eventCode: 0,
472
+ parameters: {
473
+ tokens: tokens,
474
+ title: title,
475
+ body: body,
476
+ badge: badge,
477
+ sound: sound,
478
+ icon: icon,
479
+ data: data,
480
+ },
481
+ },
482
+ });
451
483
  }
452
484
 
453
485
  public async sendToTopic(topic: string, title: string, body: string, badge?: number, sound?: string, icon?: string, data?: { [k: string]: any }) {
454
486
  if (process?.send)
455
- process.send({
456
- eventType: 32,
457
- receiver: null,
458
- operationEvent: {
459
- eventCode: 0,
460
- encrypted: false,
461
- parameters: {
462
- topic: topic,
463
- title: title,
464
- body: body,
465
- badge: badge,
466
- sound: sound,
467
- icon: icon,
468
- data: data,
469
- },
470
- },
471
- });
472
- }
473
-
474
- public async subscribeToTopic(tokens: string[], topic: string) {
487
+ process.send({
488
+ eventType: 32,
489
+ receiver: null,
490
+ operationEvent: {
491
+ eventCode: 0,
492
+ parameters: {
493
+ topic: topic,
494
+ title: title,
495
+ body: body,
496
+ badge: badge,
497
+ sound: sound,
498
+ icon: icon,
499
+ data: data,
500
+ },
501
+ },
502
+ });
503
+ }
504
+
505
+ public async subscribeToTopic(tokens: string[], topic: string) {
475
506
  if (process?.send)
476
- process.send({
477
- eventType: 33,
478
- receiver: null,
479
- operationEvent: {
480
- eventCode: 0,
481
- encrypted: false,
482
- parameters: {
483
- tokens: tokens,
484
- topic: topic,
485
- },
486
- },
487
- });
488
- }
489
-
490
- public async unsubscribeFromTopic(tokens: string[], topic: string) {
507
+ process.send({
508
+ eventType: 33,
509
+ receiver: null,
510
+ operationEvent: {
511
+ eventCode: 0,
512
+ parameters: {
513
+ tokens: tokens,
514
+ topic: topic,
515
+ },
516
+ },
517
+ });
518
+ }
519
+
520
+ public async unsubscribeFromTopic(tokens: string[], topic: string) {
491
521
  if (process?.send)
492
- process.send({
493
- eventType: 34,
494
- receiver: null,
495
- operationEvent: {
496
- eventCode: 0,
497
- encrypted: false,
498
- parameters: {
499
- tokens: tokens,
500
- topic: topic,
501
- },
502
- },
503
- });
522
+ process.send({
523
+ eventType: 34,
524
+ receiver: null,
525
+ operationEvent: {
526
+ eventCode: 0,
527
+ parameters: {
528
+ tokens: tokens,
529
+ topic: topic,
530
+ },
531
+ },
532
+ });
504
533
  }
505
534
  }
506
535
 
@@ -508,7 +537,7 @@ enum EventCallbackType {
508
537
  Pre = 0,
509
538
  Post = 1,
510
539
  System = 2,
511
- Event = 3,
540
+ Event = 3,
512
541
  }
513
542
 
514
543
  interface CloudScriptRequest {
@@ -524,19 +553,18 @@ interface CloudScriptRequest {
524
553
  permission: SecretPermissionItem;
525
554
  gameId: string;
526
555
  isDefault: boolean;
556
+ description: string;
527
557
  onlyMasterAdmin: boolean;
528
558
  };
529
559
  operationRequest: {
530
- operationCode: number;
560
+ operationCode: string;
531
561
  requestId: number;
532
562
  parameters: {};
533
- encrypted: boolean;
534
563
  };
535
564
  operationResponse?: {
536
565
  returnCode: number;
537
566
  debugMessage: string;
538
567
  parameters: {};
539
- encrypted: boolean;
540
568
  };
541
569
  log: (log: any) => void;
542
570
  }
@@ -572,7 +600,6 @@ interface FunctionResponse {
572
600
  returnCode: number;
573
601
  debugMessage: string;
574
602
  parameters?: {};
575
- encrypted: boolean;
576
603
  } | null;
577
604
  request: {
578
605
  [k: string]: any;
@@ -581,143 +608,206 @@ interface FunctionResponse {
581
608
  }
582
609
 
583
610
  process?.on("message", async (request: CloudScriptRequest) => {
584
- let startTime = performance.now();
585
- let startMemoryUsage = process.memoryUsage();
586
-
587
- let logs: string[] = [];
588
-
589
- let handleResponse: FunctionResponse = null as any;
590
-
591
- if (request.eventType == EventCallbackType.System) {
592
- if (request.eventName == "system_RequestServerDetail") {
593
- let functionRequest: FunctionRequest = {
594
- eventName: request.eventName,
595
- operationRequest: null as any,
596
- secretInfo: null as any,
597
- request: request.request,
598
- log(log: any) {
599
- logs.push(JSON.stringify(log));
600
- },
601
- };
602
-
603
- handleResponse = await ___handleMatchmakingFunction(functionRequest);
604
- }
605
- else {
606
- let functionRequest: FunctionRequest = {
607
- eventName: request.eventName,
608
- operationRequest: null as any,
609
- secretInfo: null as any,
610
- request: null as any,
611
- log(log: any) {
612
- logs.push(JSON.stringify(log));
613
- },
614
- };
615
-
616
- handleResponse = await ___handleSystemFunction(functionRequest);
617
- }
618
- } else if (request.eventType == EventCallbackType.Event) {
619
- let originOperationEvent = request.operationRequest;
620
-
621
- let operationEvent = new OperationEvent(originOperationEvent.operationCode, (originOperationEvent.parameters ? GNHashtable.builder().addAll(originOperationEvent.parameters).build() : null as any), originOperationEvent.encrypted);
622
-
623
- let functionRequest: FunctionRequest = {
624
- eventName: request.eventName,
625
- operationRequest: null as any,
626
- secretInfo: null as any,
627
- request: {
628
- operationEvent: operationEvent,
629
- request: request.request,
630
- },
631
- log(log: any) {
632
- logs.push(JSON.stringify(log));
633
- },
634
- };
635
-
636
- handleResponse = await ___handleEventFunction(functionRequest);
637
- } else {
638
- let originOperationRequest = request.operationRequest;
639
- let operationRequest = new OperationRequest(originOperationRequest.operationCode, originOperationRequest.encrypted);
640
- if (originOperationRequest.parameters) {
641
- operationRequest.setParameters(GNHashtable.builder().addAll(originOperationRequest.parameters).build());
642
- }
643
-
644
- let originSecretInfo = request.secretInfo;
645
- let secretInfo: SecretInfo = null as any;
646
- if (originSecretInfo) {
647
- secretInfo = SecretInfo.Builder()
648
- .setSecretKey(originSecretInfo.secretKey)
649
- .setRole(originSecretInfo.role)
650
- .setIsRemove(originSecretInfo.remove)
651
- .setTsExpire(originSecretInfo.tsExpire)
652
- .setPermission(originSecretInfo.permission)
653
- .setGameId(originSecretInfo.gameId)
654
- .setIsDefault(originSecretInfo.isDefault)
655
- .setIsOnlyMasterAdmin(originSecretInfo.onlyMasterAdmin)
656
- .build();
657
- }
658
-
659
- if (request.eventType == EventCallbackType.Pre) {
660
- let functionRequest: FunctionRequest = {
661
- eventName: request.eventName,
662
- operationRequest: operationRequest,
663
- secretInfo: secretInfo,
664
- request: request.request,
665
- log(log: any) {
666
- logs.push(JSON.stringify(log));
667
- },
668
- };
669
-
670
- handleResponse = await ___handlePreFunction(functionRequest);
671
- } else if (request.eventType == EventCallbackType.Post) {
672
- let originOperationResponse = request.operationResponse;
673
- let operationResponse: OperationResponse = null as any;
674
-
675
- if (originOperationResponse) {
676
- operationResponse = new OperationResponse(originOperationRequest.operationCode, originOperationRequest.requestId, originOperationRequest.encrypted);
677
- operationResponse.setReturnCode(originOperationResponse.returnCode);
678
- operationResponse.setDebugMessage(originOperationResponse.debugMessage);
679
-
680
- if (originOperationResponse.parameters) {
681
- operationResponse.setParameters(GNHashtable.builder().addAll(originOperationResponse.parameters).build());
682
- }
683
- }
684
-
685
- let functionRequest: FunctionRequest = {
686
- eventName: request.eventName,
687
- operationRequest: operationRequest,
688
- operationResponse: operationResponse,
689
- secretInfo: secretInfo,
690
- request: request.request,
691
- log(log: any) {
692
- logs.push(JSON.stringify(log));
693
- },
694
- };
695
-
696
- handleResponse = await ___handlePostFunction(functionRequest);
697
- }
698
- }
699
-
700
- let endTime = performance.now();
701
- let endMemoryUsage = process.memoryUsage();
702
-
703
- let memoryUsedInBytes = endMemoryUsage.heapUsed - startMemoryUsage.heapUsed;
704
- if (memoryUsedInBytes <= 0) memoryUsedInBytes = 8192;
705
- let executeTimeInMs = endTime - startTime;
706
-
707
- //let cost = (memoryUsedInGb * executeTime) / 1000 * 0.022;
708
-
709
- let response: CloudScriptResponse = {
710
- responseId: request.requestId,
711
- response: handleResponse as any,
712
- stats: {
713
- executeTimeInMs: executeTimeInMs,
714
- memoryUsedInBytes: memoryUsedInBytes,
715
- },
716
- logs: logs,
717
- };
718
-
719
- if (process?.send)
720
- process.send(response);
611
+ let startTime = performance.now();
612
+ let startMemoryUsage = process.memoryUsage();
613
+
614
+ let logs: string[] = [];
615
+
616
+ let handleResponse: FunctionResponse = null as any;
617
+
618
+ if (request.eventType == EventCallbackType.System) {
619
+ if (request.eventName == "system_RequestServerDetail") {
620
+ let functionRequest: FunctionRequest = {
621
+ eventName: request.eventName,
622
+ operationRequest: null as any,
623
+ secretInfo: null as any,
624
+ request: request.request,
625
+ log(log: any) {
626
+ logs.push(JSON.stringify(log));
627
+ },
628
+ };
629
+
630
+ handleResponse = await ___handleMatchmakingFunction(functionRequest);
631
+ }
632
+ else if (request.eventName == "system_VerifyGenericService") {
633
+ let functionRequest: FunctionRequest = {
634
+ eventName: request.eventName,
635
+ operationRequest: null as any,
636
+ secretInfo: null as any,
637
+ request: request.request,
638
+ log(log: any) {
639
+ logs.push(JSON.stringify(log));
640
+ },
641
+ };
642
+
643
+ handleResponse = await ___handleGenericServiceFunction(functionRequest);
644
+ }
645
+ else if (request.eventName == "system_OnAuthenticateSuccess") {
646
+ let originOperationRequest = request.operationRequest;
647
+ let operationRequest = new OperationRequest(originOperationRequest.operationCode);
648
+ if (originOperationRequest.parameters) {
649
+ operationRequest.setParameters(GNHashtable.builder().addAll(originOperationRequest.parameters).build());
650
+ }
651
+
652
+ let originSecretInfo = request.secretInfo;
653
+ let secretInfo: SecretInfo = null as any;
654
+ if (originSecretInfo) {
655
+ secretInfo = SecretInfo.Builder()
656
+ .setSecretKey(originSecretInfo.secretKey)
657
+ .setDescription(originSecretInfo.description)
658
+ .setRole(originSecretInfo.role)
659
+ .setIsRemove(originSecretInfo.remove)
660
+ .setTsExpire(originSecretInfo.tsExpire)
661
+ .setPermission(originSecretInfo.permission)
662
+ .setGameId(originSecretInfo.gameId)
663
+ .setIsDefault(originSecretInfo.isDefault)
664
+ .setIsOnlyMasterAdmin(originSecretInfo.onlyMasterAdmin)
665
+ .build();
666
+ }
667
+
668
+ let originOperationResponse = request.operationResponse;
669
+ let operationResponse: OperationResponse = null as any;
670
+
671
+ if (originOperationResponse) {
672
+ operationResponse = new OperationResponse(originOperationRequest.operationCode, originOperationRequest.requestId);
673
+ operationResponse.setReturnCode(originOperationResponse.returnCode);
674
+ operationResponse.setDebugMessage(originOperationResponse.debugMessage);
675
+
676
+ if (originOperationResponse.parameters) {
677
+ operationResponse.setParameters(GNHashtable.builder().addAll(originOperationResponse.parameters).build());
678
+ }
679
+ }
680
+
681
+ let functionRequest: FunctionRequest = {
682
+ eventName: request.eventName,
683
+ operationRequest: operationRequest,
684
+ operationResponse: operationResponse,
685
+ secretInfo: secretInfo,
686
+ request: request.request,
687
+ log(log: any) {
688
+ logs.push(JSON.stringify(log));
689
+ },
690
+ };
691
+
692
+ handleResponse = await ___handleSystemAuthenticateFunction(functionRequest);
693
+ }
694
+ else {
695
+ let functionRequest: FunctionRequest = {
696
+ eventName: request.eventName,
697
+ operationRequest: null as any,
698
+ secretInfo: null as any,
699
+ request: null as any,
700
+ log(log: any) {
701
+ logs.push(JSON.stringify(log));
702
+ },
703
+ };
704
+
705
+ handleResponse = await ___handleSystemFunction(functionRequest);
706
+ }
707
+ } else if (request.eventType == EventCallbackType.Event) {
708
+ let originOperationEvent = request.operationRequest;
709
+
710
+ let operationEvent = new OperationEvent(originOperationEvent.operationCode, (originOperationEvent.parameters ? GNHashtable.builder().addAll(originOperationEvent.parameters).build() : null as any));
711
+
712
+ let functionRequest: FunctionRequest = {
713
+ eventName: request.eventName,
714
+ operationRequest: null as any,
715
+ secretInfo: null as any,
716
+ request: {
717
+ operationEvent: operationEvent,
718
+ request: request.request,
719
+ },
720
+ log(log: any) {
721
+ logs.push(JSON.stringify(log));
722
+ },
723
+ };
724
+
725
+ handleResponse = await ___handleEventFunction(functionRequest);
726
+ } else {
727
+ let originOperationRequest = request.operationRequest;
728
+ let operationRequest = new OperationRequest(originOperationRequest.operationCode);
729
+ if (originOperationRequest.parameters) {
730
+ operationRequest.setParameters(GNHashtable.builder().addAll(originOperationRequest.parameters).build());
731
+ }
732
+
733
+ let originSecretInfo = request.secretInfo;
734
+ let secretInfo: SecretInfo = null as any;
735
+ if (originSecretInfo) {
736
+ secretInfo = SecretInfo.Builder()
737
+ .setSecretKey(originSecretInfo.secretKey)
738
+ .setDescription(originSecretInfo.description)
739
+ .setRole(originSecretInfo.role)
740
+ .setIsRemove(originSecretInfo.remove)
741
+ .setTsExpire(originSecretInfo.tsExpire)
742
+ .setPermission(originSecretInfo.permission)
743
+ .setGameId(originSecretInfo.gameId)
744
+ .setIsDefault(originSecretInfo.isDefault)
745
+ .setIsOnlyMasterAdmin(originSecretInfo.onlyMasterAdmin)
746
+ .build();
747
+ }
748
+
749
+ if (request.eventType == EventCallbackType.Pre) {
750
+ let functionRequest: FunctionRequest = {
751
+ eventName: request.eventName,
752
+ operationRequest: operationRequest,
753
+ secretInfo: secretInfo,
754
+ request: request.request,
755
+ log(log: any) {
756
+ logs.push(JSON.stringify(log));
757
+ },
758
+ };
759
+
760
+ handleResponse = await ___handlePreFunction(functionRequest);
761
+ } else if (request.eventType == EventCallbackType.Post) {
762
+ let originOperationResponse = request.operationResponse;
763
+ let operationResponse: OperationResponse = null as any;
764
+
765
+ if (originOperationResponse) {
766
+ operationResponse = new OperationResponse(originOperationRequest.operationCode, originOperationRequest.requestId);
767
+ operationResponse.setReturnCode(originOperationResponse.returnCode);
768
+ operationResponse.setDebugMessage(originOperationResponse.debugMessage);
769
+
770
+ if (originOperationResponse.parameters) {
771
+ operationResponse.setParameters(GNHashtable.builder().addAll(originOperationResponse.parameters).build());
772
+ }
773
+ }
774
+
775
+ let functionRequest: FunctionRequest = {
776
+ eventName: request.eventName,
777
+ operationRequest: operationRequest,
778
+ operationResponse: operationResponse,
779
+ secretInfo: secretInfo,
780
+ request: request.request,
781
+ log(log: any) {
782
+ logs.push(JSON.stringify(log));
783
+ },
784
+ };
785
+
786
+ handleResponse = await ___handlePostFunction(functionRequest);
787
+ }
788
+ }
789
+
790
+ let endTime = performance.now();
791
+ let endMemoryUsage = process.memoryUsage();
792
+
793
+ let memoryUsedInBytes = endMemoryUsage.heapUsed - startMemoryUsage.heapUsed;
794
+ if (memoryUsedInBytes <= 0) memoryUsedInBytes = 8192;
795
+ let executeTimeInMs = endTime - startTime;
796
+
797
+ //let cost = (memoryUsedInGb * executeTime) / 1000 * 0.022;
798
+
799
+ let response: CloudScriptResponse = {
800
+ responseId: request.requestId,
801
+ response: handleResponse as any,
802
+ stats: {
803
+ executeTimeInMs: executeTimeInMs,
804
+ memoryUsedInBytes: memoryUsedInBytes,
805
+ },
806
+ logs: logs,
807
+ };
808
+
809
+ if (process?.send)
810
+ process.send(response);
721
811
  });
722
812
 
723
813
  async function ___handleMatchmakingFunction(request: FunctionRequest): Promise<FunctionResponse> {
@@ -752,6 +842,76 @@ async function ___handleMatchmakingFunction(request: FunctionRequest): Promise<F
752
842
  return answer;
753
843
  }
754
844
 
845
+ async function ___handleGenericServiceFunction(request: FunctionRequest): Promise<FunctionResponse> {
846
+ let handler = systemGenericServiceHandlers[request.eventName];
847
+
848
+ if (handler == null) {
849
+ return {
850
+ status: ExecuteResponseStatus.FunctionNameNotFound,
851
+ result: null,
852
+ request: null,
853
+ errorMessage: null,
854
+ };
855
+ }
856
+
857
+ let answer: FunctionResponse = {
858
+ status: ExecuteResponseStatus.Ok,
859
+ errorMessage: null,
860
+ result: null,
861
+ request: null,
862
+ };
863
+
864
+ try {
865
+ let result = await handler(request.request.serviceName, request.request.serviceData, request.log);
866
+
867
+ if (result != null)
868
+ answer.request = result;
869
+ } catch (err: any) {
870
+ answer.status = ExecuteResponseStatus.Exception;
871
+ answer.errorMessage = err.message;
872
+ }
873
+
874
+ return answer;
875
+ }
876
+
877
+ async function ___handleSystemAuthenticateFunction(request: FunctionRequest): Promise<FunctionResponse> {
878
+ let handler = systemAuthenticateHandlers[request.eventName];
879
+
880
+ if (handler == null) {
881
+ return {
882
+ status: ExecuteResponseStatus.FunctionNameNotFound,
883
+ result: null,
884
+ errorMessage: null,
885
+ request: null,
886
+ };
887
+ }
888
+
889
+ let answer: FunctionResponse = {
890
+ status: ExecuteResponseStatus.Ok,
891
+ errorMessage: null,
892
+ result: null,
893
+ request: null,
894
+ };
895
+
896
+ try {
897
+ let result = await handler(request.request as any, request.secretInfo, request.operationRequest, request.operationResponse as any, request.log);
898
+
899
+ if (result) {
900
+ answer.result = {
901
+ returnCode: result.getReturnCode(),
902
+ debugMessage: result.getDebugMessage(),
903
+ parameters: result.getParameters()?.toData(),
904
+ };
905
+ }
906
+
907
+ } catch (err: any) {
908
+ answer.status = ExecuteResponseStatus.Exception;
909
+ answer.errorMessage = err.message;
910
+ }
911
+
912
+ return answer;
913
+ }
914
+
755
915
  async function ___handleSystemFunction(request: FunctionRequest): Promise<FunctionResponse> {
756
916
  let handler = systemHandlers[request.eventName];
757
917
 
@@ -782,7 +942,7 @@ async function ___handleSystemFunction(request: FunctionRequest): Promise<Functi
782
942
  }
783
943
 
784
944
  async function ___handleEventFunction(request: FunctionRequest): Promise<FunctionResponse> {
785
- let handler = eventHandlers[request.eventName];
945
+ let handler = eventHandlers[request.eventName];
786
946
 
787
947
  if (handler == null) {
788
948
  return {
@@ -803,16 +963,15 @@ async function ___handleEventFunction(request: FunctionRequest): Promise<Functio
803
963
  try {
804
964
  await handler(request.request.request, request.request.operationEvent, request.log);
805
965
 
806
- let operationEvent = request.request.operationEvent;
966
+ let operationEvent = request.request.operationEvent;
807
967
 
808
- answer.result = {
809
- returnCode: operationEvent.getEventCode(),
810
- debugMessage: null as any,
811
- encrypted: operationEvent.isEncrypted(),
812
- parameters: operationEvent.getParameters()?.toData(),
813
- };
968
+ answer.result = {
969
+ returnCode: operationEvent.getEventCode(),
970
+ debugMessage: null as any,
971
+ parameters: operationEvent.getParameters()?.toData(),
972
+ };
814
973
 
815
- answer.request = request.request.request;
974
+ answer.request = request.request.request;
816
975
  } catch (err: any) {
817
976
  answer.status = ExecuteResponseStatus.Exception;
818
977
  answer.errorMessage = err.message;
@@ -847,7 +1006,6 @@ async function ___handlePreFunction(request: FunctionRequest): Promise<FunctionR
847
1006
  answer.result = {
848
1007
  returnCode: result.getReturnCode(),
849
1008
  debugMessage: result.getDebugMessage(),
850
- encrypted: result.isEncrypted(),
851
1009
  parameters: result.getParameters()?.toData(),
852
1010
  };
853
1011
 
@@ -882,12 +1040,13 @@ async function ___handlePostFunction(request: FunctionRequest): Promise<Function
882
1040
  try {
883
1041
  let result = await handler(request.request, request.secretInfo, request.operationRequest, request.operationResponse as any, request.log);
884
1042
 
885
- answer.result = {
886
- returnCode: result.getReturnCode(),
887
- debugMessage: result.getDebugMessage(),
888
- encrypted: result.isEncrypted(),
889
- parameters: result.getParameters()?.toData(),
890
- };
1043
+ if (result) {
1044
+ answer.result = {
1045
+ returnCode: result.getReturnCode(),
1046
+ debugMessage: result.getDebugMessage(),
1047
+ parameters: result.getParameters()?.toData(),
1048
+ };
1049
+ }
891
1050
  } catch (err: any) {
892
1051
  answer.status = ExecuteResponseStatus.Exception;
893
1052
  answer.errorMessage = err.message;
@@ -915,7 +1074,7 @@ const pushNotification = new CloudScriptPushNotification();
915
1074
 
916
1075
  {
917
1076
  let dbConnection = JSON.parse(process.env.dbConnection ?? "");
918
- database.init(dbConnection.url, dbConnection.dbName, dbConnection.options);
1077
+ database.init(dbConnection.url, dbConnection.dbName, dbConnection.logUrl, dbConnection.logDbName, dbConnection.options);
919
1078
  }
920
1079
 
921
1080
  process.env.dbConnection = "";
@@ -931,4 +1090,8 @@ const eventHandlers: Record<string, (request: any, operationEvent: OperationEven
931
1090
 
932
1091
  const systemMatchmakingHandlers: Record<string, (gameId: string, matchmakingTicketCanMatch: MatchmakingTicketCanMatch, log: (log: any) => void) => Promise<{ success: boolean }>> = {};
933
1092
 
934
- //$replaceScript
1093
+ const systemAuthenticateHandlers: Record<string, (request: { userId: string, ipAddress: string, isNewUser: boolean, authenticationType: string }, secretInfo: SecretInfo, operationRequest: OperationRequest, operationResponse: OperationResponse, log: (log: any) => void) => Promise<OperationResponse>> = {};
1094
+
1095
+ const systemGenericServiceHandlers: Record<string, (serviceName: string, serviceData: { [k: string]: any; }, log: (log: any) => void) => Promise<{ success: boolean, serviceId: string, someDatas?: any, errorMessage?: string }>> = {};
1096
+
1097
+ //$replaceScript