@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.
- package/LICENSE +5 -198
- package/apiReferences/Authenticate.json +1 -0
- package/apiReferences/CharacterPlayer.json +1 -0
- package/apiReferences/CloudScript.json +1 -0
- package/apiReferences/Content.json +1 -0
- package/apiReferences/GamePlayer.json +1 -0
- package/apiReferences/Group.json +1 -0
- package/apiReferences/Inventory.json +1 -0
- package/apiReferences/MasterAdmin.json +1 -0
- package/apiReferences/MasterPlayer.json +1 -0
- package/apiReferences/Multiplayer.json +1 -0
- package/apiReferences/StoreInventory.json +1 -0
- package/dist/GN-app-api/handler/controller/RequestController.d.ts +5 -5
- package/dist/GN-app-api/handler/controller/handler/authenticate/LoginBaseRequestHandler.d.ts +1 -2
- package/dist/GN-app-api/handler/controller/handler/authenticate/LoginByAccountRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/authenticate/LoginByAndroidDeviceIdRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/authenticate/LoginByAppleRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/authenticate/LoginByCustomDeviceIdRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/authenticate/LoginByCustomIdRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/authenticate/LoginByEditorDeviceIdRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/authenticate/LoginByFacebookRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/authenticate/LoginByGameCenterRequestHandler.d.ts +5 -5
- package/dist/GN-app-api/handler/controller/handler/authenticate/LoginByGenericServiceRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/authenticate/LoginByGooglePlayGameServiceRequestHandler.d.ts +5 -5
- package/dist/GN-app-api/handler/controller/handler/authenticate/LoginByGoogleRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/authenticate/LoginByLinuxDeviceIdRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/authenticate/LoginByMacOSDeviceIdRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/authenticate/LoginByWindowsDeviceIdRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/authenticate/LoginByWindowsPhoneDeviceIdRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/authenticate/LoginByiOSDeviceIdRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/authenticate/RefreshAuthTokenRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/authenticate/RegisterAccountRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/base/IRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/base/RequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/characterPlayer/AddPlayerFriendRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/characterPlayer/AddSegmentRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/characterPlayer/{SetPlayerCurrencyRequestHandler.d.ts → ChangePlayerCurrencyRequestHandler.d.ts} +5 -5
- package/dist/GN-app-api/handler/controller/handler/characterPlayer/{SetPlayerStatisticsRequestHandler.d.ts → ChangePlayerStatisticsRequestHandler.d.ts} +5 -5
- package/dist/GN-app-api/handler/controller/handler/characterPlayer/CharacterPlayerBaseRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/characterPlayer/{GrantGroupRequestHandler.d.ts → CreateGroupRequestHandler.d.ts} +4 -4
- package/dist/GN-app-api/handler/controller/handler/characterPlayer/{GrantPlayerItemRequestHandler.d.ts → CreatePlayerItemRequestHandler.d.ts} +4 -4
- package/dist/GN-app-api/handler/controller/handler/characterPlayer/GetAvatarRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/characterPlayer/GetCatalogIdRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/characterPlayer/GetCountryCodeRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/characterPlayer/GetCreateLeaderboardRequestHandler.d.ts +5 -5
- package/dist/GN-app-api/handler/controller/handler/characterPlayer/GetCurrencyLeaderboardRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/characterPlayer/GetCurrencyLogRequestHandler.d.ts +2 -2
- package/dist/GN-app-api/handler/controller/handler/characterPlayer/GetCustomDataRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/characterPlayer/GetDisplayNameRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/characterPlayer/GetFriendStatisticsLeaderboardAroundPlayerRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/characterPlayer/GetFriendStatisticsLeaderboardRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/characterPlayer/GetIpAddressCreateRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/characterPlayer/GetLastLoginLeaderboardRequestHandler.d.ts +5 -5
- package/dist/GN-app-api/handler/controller/handler/characterPlayer/GetOwnerRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/characterPlayer/GetPlayerBanRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/characterPlayer/GetPlayerCurrencyRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/characterPlayer/GetPlayerDataRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/characterPlayer/GetPlayerFriendRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/characterPlayer/GetPlayerGroupRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/characterPlayer/GetPlayerInformationRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/characterPlayer/GetPlayerInventoryRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/characterPlayer/GetPlayerStatisticsRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/characterPlayer/GetPlayersWithDisplayNameRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/characterPlayer/GetPlayersWithSegmentRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/characterPlayer/GetPlayersWithTagRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/characterPlayer/GetRemoveStatusRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/characterPlayer/GetSegmentRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/characterPlayer/GetStatisticsLeaderboardAroundPlayerRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/characterPlayer/GetStatisticsLeaderboardRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/characterPlayer/GetStatisticsLogRequestHandler.d.ts +2 -2
- package/dist/GN-app-api/handler/controller/handler/characterPlayer/GetTagRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/characterPlayer/GetTsCreateRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/characterPlayer/GetTsLastLoginRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/characterPlayer/JoinGroupRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/characterPlayer/LeaveGroupRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/characterPlayer/RemovePlayerFriendRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/characterPlayer/RemovePlayerItemRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/characterPlayer/RemoveSegmentRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/characterPlayer/RemoveTagRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/characterPlayer/SetAvatarRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/characterPlayer/SetCountryCodeRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/characterPlayer/SetCustomDataRequestHandler.d.ts +2 -2
- package/dist/GN-app-api/handler/controller/handler/characterPlayer/SetDisplayNameRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/characterPlayer/SetOwnerRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/characterPlayer/SetPlayerBanRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/characterPlayer/SetPlayerDataRequestHandler.d.ts +2 -2
- package/dist/GN-app-api/handler/controller/handler/characterPlayer/SetRemoveStatusRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/characterPlayer/SetTagRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/cloudScript/AddFunctionRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/cloudScript/EditFunctionRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/cloudScript/ExecuteFunctionRequestHandler.d.ts +2 -2
- package/dist/GN-app-api/handler/controller/handler/cloudScript/GetFunctionRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/cloudScript/GetFunctionsRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/content/CreateNewFileUploadInfoRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/content/GetContentDataRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/content/GetFileUploadInfoListRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/content/GetFileUploadInfoRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/content/RemoveFileUploadInfoRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/content/RequestDownloadFileUploadInfoRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/content/SetContentDataRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/dashboard/ChangePasswordAdminAccountRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/dashboard/{GrantAdminAccountRequestHandler.d.ts → CreateAdminAccountRequestHandler.d.ts} +4 -4
- package/dist/GN-app-api/handler/controller/handler/dashboard/{GrantGameRequestHandler.d.ts → CreateGameRequestHandler.d.ts} +4 -4
- package/dist/GN-app-api/handler/controller/handler/dashboard/{GrantSecretInfoRequestHandler.d.ts → CreateSecretInfoRequestHandler.d.ts} +4 -4
- package/dist/GN-app-api/handler/controller/handler/dashboard/DeleteInDatabaseRequestHandler.d.ts +6 -6
- package/dist/GN-app-api/handler/controller/handler/dashboard/GetAdminAccountListRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/dashboard/GetAnalyticsRequestHandler.d.ts +3 -1
- package/dist/GN-app-api/handler/controller/handler/dashboard/GetBackupStatisticsLeaderboardVersionRequestHandler.d.ts +6 -6
- package/dist/GN-app-api/handler/controller/handler/dashboard/GetEventCallbackCloudScriptRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/dashboard/GetGameInformationRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/dashboard/GetGameListRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/dashboard/GetMasterGameSettingsRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/dashboard/GetSecretInfoInformationRequestHandler.d.ts +2 -2
- package/dist/GN-app-api/handler/controller/handler/dashboard/GetSecretInfoListRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/dashboard/GetServerGameDataRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/dashboard/GetServerLogRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/dashboard/GetUsernameAdminAccountRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/dashboard/LoginByAdminAccountRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/dashboard/RemoveAdminAccountRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/dashboard/ResetStatisticsLeaderboardRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/dashboard/SetEventCallbackCloudScriptRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/dashboard/SetGameInformationRequestHandler.d.ts +2 -2
- package/dist/GN-app-api/handler/controller/handler/dashboard/SetMasterGameSettingsRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/dashboard/SetPasswordAdminAccountRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/dashboard/SetSecretInfoInformationRequestHandler.d.ts +2 -2
- package/dist/GN-app-api/handler/controller/handler/dashboard/SetSecretKeyAdminAccountRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/dashboard/model/CharacterCatalogSettingsParam.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/dashboard/model/CharacterPlayerPermissionRulesParam.d.ts +4 -4
- package/dist/GN-app-api/handler/controller/handler/dashboard/model/CharacterPlayerSettingsParam.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/dashboard/model/CurrencySettingsParam.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/dashboard/model/DataSettingsParam.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/dashboard/model/FriendCatalogSettingsParam.d.ts +1 -0
- package/dist/GN-app-api/handler/controller/handler/dashboard/model/GamePlayerPermissionRulesParam.d.ts +5 -5
- package/dist/GN-app-api/handler/controller/handler/dashboard/model/GamePlayerSettingsParam.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/dashboard/model/GroupCatalogSettingsParam.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/dashboard/model/GroupPermissionRulesParam.d.ts +3 -3
- package/dist/GN-app-api/handler/controller/handler/dashboard/model/GroupSettingsParam.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/dashboard/model/InventoryPermissionRulesParam.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/dashboard/model/InventorySettingsParam.d.ts +2 -2
- package/dist/GN-app-api/handler/controller/handler/dashboard/model/ItemClassSettingsParam.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/dashboard/model/MasterAdminPermissionRulesParam.d.ts +3 -3
- package/dist/GN-app-api/handler/controller/handler/dashboard/model/MasterPlayerPermissionRulesParam.d.ts +2 -2
- package/dist/GN-app-api/handler/controller/handler/dashboard/model/MasterPlayerSettingsParam.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/dashboard/model/MatchmakingQueueSettingsParam.d.ts +5 -5
- package/dist/GN-app-api/handler/controller/handler/dashboard/model/StatisticsSettingsParam.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/dashboard/model/StoreInventoryPermissionRulesParam.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/dashboard/model/TagSettingsParam.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/gamePlayer/AddPlayerFriendRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/gamePlayer/AddSegmentRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/gamePlayer/{SetPlayerCurrencyRequestHandler.d.ts → ChangePlayerCurrencyRequestHandler.d.ts} +5 -5
- package/dist/GN-app-api/handler/controller/handler/gamePlayer/{SetPlayerStatisticsRequestHandler.d.ts → ChangePlayerStatisticsRequestHandler.d.ts} +5 -5
- package/dist/GN-app-api/handler/controller/handler/gamePlayer/{GrantGroupRequestHandler.d.ts → CreateGroupRequestHandler.d.ts} +4 -4
- package/dist/GN-app-api/handler/controller/handler/gamePlayer/{GrantPlayerCharacterRequestHandler.d.ts → CreatePlayerCharacterRequestHandler.d.ts} +4 -4
- package/dist/GN-app-api/handler/controller/handler/gamePlayer/{GrantPlayerItemRequestHandler.d.ts → CreatePlayerItemRequestHandler.d.ts} +4 -4
- package/dist/GN-app-api/handler/controller/handler/gamePlayer/GetAvatarRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/gamePlayer/GetCountryCodeRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/gamePlayer/GetCreateLeaderboardRequestHandler.d.ts +5 -5
- package/dist/GN-app-api/handler/controller/handler/gamePlayer/GetCurrencyLeaderboardRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/gamePlayer/GetCurrencyLogRequestHandler.d.ts +6 -6
- package/dist/GN-app-api/handler/controller/handler/gamePlayer/GetCustomDataRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/gamePlayer/GetDisplayNameRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/gamePlayer/GetFriendStatisticsLeaderboardAroundPlayerRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/gamePlayer/GetFriendStatisticsLeaderboardRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/gamePlayer/GetIpAddressCreateRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/gamePlayer/GetLastLoginLeaderboardRequestHandler.d.ts +5 -5
- package/dist/GN-app-api/handler/controller/handler/gamePlayer/GetOnlineStatusRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/gamePlayer/GetPlayerBanRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/gamePlayer/GetPlayerCharacterRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/gamePlayer/GetPlayerCurrencyRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/gamePlayer/GetPlayerDataRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/gamePlayer/GetPlayerFriendRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/gamePlayer/GetPlayerGroupRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/gamePlayer/GetPlayerInformationRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/gamePlayer/GetPlayerInventoryRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/gamePlayer/GetPlayerStatisticsRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/gamePlayer/GetPlayersWithDisplayNameRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/gamePlayer/GetPlayersWithSegmentRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/gamePlayer/GetPlayersWithTagRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/gamePlayer/GetSegmentRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/gamePlayer/GetStatisticsLeaderboardAroundPlayerRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/gamePlayer/GetStatisticsLeaderboardRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/gamePlayer/GetStatisticsLogRequestHandler.d.ts +6 -6
- package/dist/GN-app-api/handler/controller/handler/gamePlayer/GetTagRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/gamePlayer/GetTsCreateRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/gamePlayer/GetTsLastLoginRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/gamePlayer/JoinGroupRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/gamePlayer/LeaveGroupRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/gamePlayer/RemovePlayerCharacterRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/gamePlayer/RemovePlayerFriendRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/gamePlayer/RemovePlayerItemRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/gamePlayer/RemoveSegmentRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/gamePlayer/RemoveTagRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/gamePlayer/SetAvatarRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/gamePlayer/SetCountryCodeRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/gamePlayer/SetCustomDataRequestHandler.d.ts +2 -2
- package/dist/GN-app-api/handler/controller/handler/gamePlayer/SetDisplayNameRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/gamePlayer/SetPlayerBanRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/gamePlayer/SetPlayerDataRequestHandler.d.ts +2 -2
- package/dist/GN-app-api/handler/controller/handler/gamePlayer/SetTagRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/group/AddMemberRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/group/AddSegmentRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/group/{SetGroupCurrencyRequestHandler.d.ts → ChangeGroupCurrencyRequestHandler.d.ts} +5 -5
- package/dist/GN-app-api/handler/controller/handler/group/{SetGroupStatisticsRequestHandler.d.ts → ChangeGroupStatisticsRequestHandler.d.ts} +5 -5
- package/dist/GN-app-api/handler/controller/handler/group/{GrantGroupItemRequestHandler.d.ts → CreateGroupItemRequestHandler.d.ts} +4 -4
- package/dist/GN-app-api/handler/controller/handler/group/GetAvatarRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/group/GetCatalogIdRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/group/GetCreateLeaderboardRequestHandler.d.ts +5 -5
- package/dist/GN-app-api/handler/controller/handler/group/GetCurrencyLeaderboardRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/group/GetCurrencyLogRequestHandler.d.ts +6 -6
- package/dist/GN-app-api/handler/controller/handler/group/GetCustomDataRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/group/GetDisplayNameRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/group/GetGroupCurrencyRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/group/GetGroupDataRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/group/GetGroupInformationRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/group/GetGroupInventoryRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/group/GetGroupMessageRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/group/GetGroupStatisticsRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/group/GetGroupsWithDisplayNameRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/group/GetGroupsWithSegmentRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/group/GetGroupsWithTagRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/group/GetMembersRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/group/GetRemoveStatusRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/group/GetSegmentRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/group/GetStatisticsLeaderboardAroundGroupRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/group/GetStatisticsLeaderboardRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/group/GetStatisticsLogRequestHandler.d.ts +6 -6
- package/dist/GN-app-api/handler/controller/handler/group/GetTagRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/group/GetTsCreateRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/group/GroupBaseRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/group/RemoveGroupItemRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/group/RemoveMemberRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/group/RemoveSegmentRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/group/RemoveTagRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/group/SendGroupMessageRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/group/SetAvatarRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/group/SetCustomDataRequestHandler.d.ts +2 -2
- package/dist/GN-app-api/handler/controller/handler/group/SetDisplayNameRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/group/SetGroupDataRequestHandler.d.ts +2 -2
- package/dist/GN-app-api/handler/controller/handler/group/SetRemoveStatusRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/group/SetTagRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/inventory/AddSegmentRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/inventory/{SetItemStatisticsRequestHandler.d.ts → ChangeItemStatisticsRequestHandler.d.ts} +5 -5
- package/dist/GN-app-api/handler/controller/handler/inventory/GetAmountRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/inventory/GetAvatarRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/inventory/GetCatalogIdRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/inventory/GetClassIdRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/inventory/GetCreateLeaderboardRequestHandler.d.ts +5 -5
- package/dist/GN-app-api/handler/controller/handler/inventory/GetCustomDataRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/inventory/GetDisplayNameRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/inventory/GetItemDataRequestHandler.d.ts +2 -2
- package/dist/GN-app-api/handler/controller/handler/inventory/GetItemInformationRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/inventory/GetItemStatisticsRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/inventory/GetItemTypeRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/inventory/GetItemsWithDisplayNameRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/inventory/GetItemsWithSegmentRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/inventory/GetItemsWithTagRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/inventory/GetOwnerRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/inventory/GetRemoveStatusRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/inventory/GetSegmentRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/inventory/GetStatisticsLeaderboardAroundItemRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/inventory/GetStatisticsLeaderboardRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/inventory/GetStatisticsLogRequestHandler.d.ts +6 -6
- package/dist/GN-app-api/handler/controller/handler/inventory/GetTagRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/inventory/GetTsCreateRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/inventory/ItemBaseRequestHandler.d.ts +3 -3
- package/dist/GN-app-api/handler/controller/handler/inventory/RemoveSegmentRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/inventory/RemoveTagRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/inventory/SetAmountRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/inventory/SetAvatarRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/inventory/SetCustomDataRequestHandler.d.ts +2 -2
- package/dist/GN-app-api/handler/controller/handler/inventory/SetDisplayNameRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/inventory/SetItemDataRequestHandler.d.ts +2 -2
- package/dist/GN-app-api/handler/controller/handler/inventory/SetOwnerRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/inventory/SetRemoveStatusRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/inventory/SetTagRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/masterPlayer/AddPushNotificationRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/masterPlayer/AddSegmentRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/masterPlayer/ChangeAccountPasswordRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/masterPlayer/{SetPlayerCurrencyRequestHandler.d.ts → ChangePlayerCurrencyRequestHandler.d.ts} +5 -5
- package/dist/GN-app-api/handler/controller/handler/masterPlayer/{SetPlayerStatisticsRequestHandler.d.ts → ChangePlayerStatisticsRequestHandler.d.ts} +5 -5
- package/dist/GN-app-api/handler/controller/handler/masterPlayer/GetAvatarRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/masterPlayer/GetCountryCodeRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/masterPlayer/GetCreateLeaderboardRequestHandler.d.ts +5 -5
- package/dist/GN-app-api/handler/controller/handler/masterPlayer/GetCurrencyLeaderboardRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/masterPlayer/GetCurrencyLogRequestHandler.d.ts +6 -6
- package/dist/GN-app-api/handler/controller/handler/masterPlayer/GetCustomDataRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/masterPlayer/GetDisplayNameRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/masterPlayer/GetEmailRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/masterPlayer/GetExternalRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/masterPlayer/GetIpAddressCreateRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/masterPlayer/GetLastLoginLeaderboardRequestHandler.d.ts +5 -5
- package/dist/GN-app-api/handler/controller/handler/masterPlayer/GetPlayerBanRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/masterPlayer/GetPlayerCurrencyRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/masterPlayer/GetPlayerDataRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/masterPlayer/GetPlayerInformationRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/masterPlayer/GetPlayerStatisticsRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/masterPlayer/GetPlayersWithAppleRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/masterPlayer/GetPlayersWithDisplayNameRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/masterPlayer/GetPlayersWithFacebookRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/masterPlayer/GetPlayersWithGameCenterRequestHandler.d.ts +5 -5
- package/dist/GN-app-api/handler/controller/handler/masterPlayer/GetPlayersWithGenericServiceRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/masterPlayer/GetPlayersWithGooglePlayGameServiceRequestHandler.d.ts +5 -5
- package/dist/GN-app-api/handler/controller/handler/masterPlayer/GetPlayersWithGoogleRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/masterPlayer/GetPlayersWithSegmentRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/masterPlayer/GetPlayersWithTagRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/masterPlayer/GetPushNotificationRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/masterPlayer/GetSegmentRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/masterPlayer/GetStatisticsLeaderboardAroundPlayerRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/masterPlayer/GetStatisticsLeaderboardRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/masterPlayer/GetStatisticsLogRequestHandler.d.ts +6 -6
- package/dist/GN-app-api/handler/controller/handler/masterPlayer/GetTagRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/masterPlayer/GetTsCreateRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/masterPlayer/GetTsLastLoginRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/masterPlayer/LinkAccountRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/masterPlayer/LinkAndroidDeviceIdRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/masterPlayer/LinkAppleRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/masterPlayer/LinkCustomDeviceIdRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/masterPlayer/LinkCustomIdRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/masterPlayer/LinkEditorDeviceIdRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/masterPlayer/LinkFacebookRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/masterPlayer/LinkGameCenterRequestHandler.d.ts +5 -5
- package/dist/GN-app-api/handler/controller/handler/masterPlayer/LinkGenericServiceRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/masterPlayer/LinkGooglePlayGameServiceRequestHandler.d.ts +5 -5
- package/dist/GN-app-api/handler/controller/handler/masterPlayer/LinkGoogleRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/masterPlayer/LinkLinuxDeviceIdRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/masterPlayer/LinkMacOSDeviceIdRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/masterPlayer/LinkWindowsDeviceIdRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/masterPlayer/LinkWindowsPhoneDeviceIdRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/masterPlayer/LinkiOSDeviceIdRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/masterPlayer/RemovePushNotificationRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/masterPlayer/RemoveSegmentRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/masterPlayer/RemoveTagRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/masterPlayer/ResetAccountPasswordRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/masterPlayer/SendEmailRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/masterPlayer/SendPushNotificationRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/masterPlayer/SendSocketOperationEventRequestHandler.d.ts +2 -3
- package/dist/GN-app-api/handler/controller/handler/masterPlayer/SetAvatarRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/masterPlayer/SetCountryCodeRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/masterPlayer/SetCustomDataRequestHandler.d.ts +2 -2
- package/dist/GN-app-api/handler/controller/handler/masterPlayer/SetDisplayNameRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/masterPlayer/SetEmailRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/masterPlayer/SetPlayerBanRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/masterPlayer/SetPlayerDataRequestHandler.d.ts +2 -2
- package/dist/GN-app-api/handler/controller/handler/masterPlayer/SetTagRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/masterPlayer/SetTsLastLoginRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/masterPlayer/UnlinkAccountRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/masterPlayer/UnlinkAndroidDeviceIdRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/masterPlayer/UnlinkAppleRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/masterPlayer/UnlinkCustomDeviceIdRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/masterPlayer/UnlinkCustomIdRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/masterPlayer/UnlinkEditorDeviceIdRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/masterPlayer/UnlinkFacebookRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/masterPlayer/UnlinkGameCenterRequestHandler.d.ts +5 -5
- package/dist/GN-app-api/handler/controller/handler/masterPlayer/UnlinkGenericServiceRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/masterPlayer/UnlinkGooglePlayGameServiceRequestHandler.d.ts +5 -5
- package/dist/GN-app-api/handler/controller/handler/masterPlayer/UnlinkGoogleRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/masterPlayer/UnlinkLinuxDeviceIdRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/masterPlayer/UnlinkMacOSDeviceIdRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/masterPlayer/UnlinkWindowsDeviceIdRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/masterPlayer/UnlinkWindowsPhoneDeviceIdRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/masterPlayer/UnlinkiOSDeviceIdRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/multiplayer/CancelAllMatchmakingTicketRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/multiplayer/CancelMatchmakingTicketRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/multiplayer/CreateMatchmakingTicketRequestHandler.d.ts +2 -2
- package/dist/GN-app-api/handler/controller/handler/multiplayer/GetAllMatchRequestHandler.d.ts +5 -5
- package/dist/GN-app-api/handler/controller/handler/multiplayer/GetAllMatchmakingTicketRequestHandler.d.ts +5 -5
- package/dist/GN-app-api/handler/controller/handler/multiplayer/GetMatchRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/multiplayer/GetMatchmakingTicketRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/multiplayer/GetQueueStatisticsRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/multiplayer/JoinMatchmakingTicketRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/multiplayer/ListMatchmakingTicketsForPlayerRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/storeInventory/BuyStoreItemRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/storeInventory/{GrantStoreItemRequestHandler.d.ts → CreateStoreItemRequestHandler.d.ts} +4 -4
- package/dist/GN-app-api/handler/controller/handler/storeInventory/GetCreateLeaderboardRequestHandler.d.ts +7 -7
- package/dist/GN-app-api/handler/controller/handler/storeInventory/GetStoreItemInformationRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/storeInventory/GetStoreItemsWithTagRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/storeInventory/GetStoreLogRequestHandler.d.ts +5 -5
- package/dist/GN-app-api/handler/controller/handler/storeInventory/GetStoreUsedRequestHandler.d.ts +6 -5
- package/dist/GN-app-api/handler/controller/handler/storeInventory/PresentStoreItemRequestHandler.d.ts +5 -5
- package/dist/GN-app-api/handler/controller/handler/storeInventory/RemoveStoreUsedRequestHandler.d.ts +5 -5
- package/dist/GN-app-api/handler/controller/handler/storeInventory/SetRemoveStatusRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/storeInventory/SetStoreItemInformationRequestHandler.d.ts +8 -8
- package/dist/GN-app-api/handler/controller/handler/storeInventory/StoreItemBaseRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/storeInventory/ValidateAppleAppStoreReceiptRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/storeInventory/ValidateFacebookStoreReceiptRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/handler/controller/handler/storeInventory/ValidateGooglePlayStoreReceiptRequestHandler.d.ts +1 -1
- package/dist/GN-app-api/service/AnalyticsService.d.ts +1 -0
- package/dist/GN-app-api/service/CloudScriptService.d.ts +5 -3
- package/dist/GN-app-api/service/EventCallbackService.d.ts +51 -7
- package/dist/GN-app-api/service/IAnalyticsService.d.ts +8 -0
- package/dist/GN-app-api/service/IEventCallbackService.d.ts +14 -0
- package/dist/GN-common/constant/EventCode.d.ts +6 -6
- package/dist/GN-common/constant/OperationCode.d.ts +219 -219
- package/dist/GN-common/constant/errorCode/{GNErrorCode.d.ts → ErrorCode.d.ts} +2 -2
- package/dist/GN-common/constant/parameterCode/ParameterCode.d.ts +606 -0
- package/dist/GN-common/entity/SecretInfo.d.ts +26 -26
- package/dist/GN-common/entity/operationEvent/OperationEvent.d.ts +2 -5
- package/dist/GN-common/entity/operationHelper/OperationHelper.d.ts +26 -14
- package/dist/GN-common/entity/operationRequest/CommonOperationRequest.d.ts +1 -1
- package/dist/GN-common/entity/operationRequest/OperationRequest.d.ts +2 -9
- package/dist/GN-common/entity/operationRequest/base/Request.d.ts +5 -8
- package/dist/GN-common/entity/operationResponse/OperationResponse.d.ts +2 -5
- package/dist/GN-common/helper/CodeHelper.d.ts +13 -16
- package/dist/GN-common/helper/EnumUtility.d.ts +6 -0
- package/dist/GN-library/xdatabase/lib/entity/pro/Group.d.ts +2 -2
- package/dist/GN-library/xdatabase/lib/entity/pro/Inventory.d.ts +1 -1
- package/dist/GN-library/xdatabase/lib/entity/pro/PlayerBase.d.ts +2 -2
- package/dist/GN-library/xdatabase/lib/entity/pro/TradeInventory.d.ts +1 -1
- package/dist/GN-library/xdatabase/lib/entity/pro/masterAdmin/SecretInfoItem.d.ts +4 -4
- package/dist/GN-library/xdatabase/lib/xDatabase.d.ts +26 -10
- package/dist/GN-library/xsettings/lib/entity/xCharacterCatalogSettings.d.ts +1 -1
- package/dist/GN-library/xsettings/lib/entity/xCharacterPlayerSettings.d.ts +1 -1
- package/dist/GN-library/xsettings/lib/entity/xCurrencySettings.d.ts +1 -1
- package/dist/GN-library/xsettings/lib/entity/xDataSettings.d.ts +1 -1
- package/dist/GN-library/xsettings/lib/entity/xFriendCatalogSettings.d.ts +1 -0
- package/dist/GN-library/xsettings/lib/entity/xGamePlayerSettings.d.ts +1 -1
- package/dist/GN-library/xsettings/lib/entity/xGroupCatalogSettings.d.ts +1 -1
- package/dist/GN-library/xsettings/lib/entity/xGroupSettings.d.ts +1 -1
- package/dist/GN-library/xsettings/lib/entity/xInventorySettings.d.ts +2 -2
- package/dist/GN-library/xsettings/lib/entity/xItemCatalogSettings.d.ts +1 -1
- package/dist/GN-library/xsettings/lib/entity/xMasterPlayerSettings.d.ts +1 -1
- package/dist/GN-library/xsettings/lib/entity/xStatisticsSettings.d.ts +1 -1
- package/dist/GN-library/xsettings/lib/entity/xTagSettings.d.ts +1 -1
- package/dist/GN-startup/cloudScript/banner.txt +6 -0
- package/dist/GN-startup/cloudScript/eventCallbackCloudScriptData.json +121 -111
- package/dist/GN-startup/cloudScript/templateCloudScript.ts +277 -247
- package/dist/GN-startup/cloudScript/templateEventCallback.ts +578 -415
- package/dist/GN-startup/routes/ClusterHandler.d.ts +12 -0
- package/dist/GN-startup/routes/SocketAppHandler.d.ts +1 -1
- package/dist/GN-startup/routes/utils/wrap.d.ts +1 -1
- package/dist/GN-startup/settings/ApplicationSettings.d.ts +9 -0
- package/dist/GN-startup/settings/DatabaseSettings.d.ts +6 -0
- package/dist/GN-startup/settings/OtherSettings.d.ts +3 -0
- package/dist/GNServer.d.ts +8 -5
- package/dist/index.d.ts +2 -8
- package/gn.sh +30 -32
- package/index.js +26 -0
- package/package.json +12 -7
- package/dist/GN-app-api/service/GenericService.d.ts +0 -11
- package/dist/GN-app-api/service/IGenericService.d.ts +0 -26
- package/dist/GN-common/constant/parameterCode/GNParameterCode.d.ts +0 -599
- package/dist/index.js +0 -87844
|
@@ -1,78 +1,78 @@
|
|
|
1
|
-
import { SecretInfo, SecretPermissionItem } from "
|
|
2
|
-
import { AuthInfo } from "
|
|
3
|
-
import { authenticate_InfoRequestParam as authenticate_InfoRequestParam } from "
|
|
4
|
-
import { characterPlayer_InfoRequestParam as characterPlayer_InfoRequestParam } from "
|
|
5
|
-
import { gamePlayer_InfoRequestParam as gamePlayer_InfoRequestParam } from "
|
|
6
|
-
import { group_InfoRequestParam as group_InfoRequestParam } from "
|
|
7
|
-
import { inventory_InfoRequestParam as inventory_InfoRequestParam } from "
|
|
8
|
-
import { masterPlayer_InfoRequestParam as masterPlayer_InfoRequestParam } from "
|
|
9
|
-
import { storeInventory_InfoRequestParam as storeInventory_InfoRequestParam } from "
|
|
10
|
-
import { PermissionParam } from "
|
|
11
|
-
|
|
12
|
-
import { ContentDataParam } from "
|
|
13
|
-
|
|
14
|
-
import { CustomDataParam } from "
|
|
15
|
-
// import { GroupMemberParam } from "
|
|
16
|
-
import { PlayerCurrencyParam } from "
|
|
17
|
-
import { PlayerDataParam } from "
|
|
18
|
-
import { PlayerStatisticsParam } from "
|
|
19
|
-
|
|
20
|
-
import { GroupCurrencyParam } from "
|
|
21
|
-
import { GroupDataParam } from "
|
|
22
|
-
import { GroupMemberParam } from "
|
|
23
|
-
import { GroupMessageItem } from "
|
|
24
|
-
import { GroupStatisticsParam } from "
|
|
25
|
-
|
|
26
|
-
import { ItemDataParam } from "
|
|
27
|
-
import { ItemStatisticsParam } from "
|
|
28
|
-
|
|
29
|
-
import { AvatarParam } from "
|
|
30
|
-
import { CurrencyParam } from "
|
|
31
|
-
import { InAppPurchaseParam } from "
|
|
32
|
-
import { StoreDataParam } from "
|
|
33
|
-
import { StoreItemParam } from "
|
|
34
|
-
import { TagParam } from "
|
|
35
|
-
|
|
36
|
-
import { AuthenticatePermissionRulesParam } from "
|
|
37
|
-
import { CharacterCatalogSettingsParam } from "
|
|
38
|
-
import { CharacterPlayerPermissionRulesParam } from "
|
|
39
|
-
import { CharacterPlayerSettingsParam } from "
|
|
40
|
-
import { CloudScriptPermissionRulesParam } from "
|
|
41
|
-
import { ContentPermissionRulesParam } from "
|
|
42
|
-
import { CurrencySettingsParam } from "
|
|
43
|
-
import { DataSettingsParam } from "
|
|
44
|
-
import { FriendCatalogSettingsParam } from "
|
|
45
|
-
import { GamePlayerPermissionRulesParam } from "
|
|
46
|
-
import { GamePlayerSettingsParam } from "
|
|
47
|
-
import { GameSettingsParam } from "
|
|
48
|
-
import { GenericServiceSettingsParam } from "
|
|
49
|
-
import { GroupCatalogSettingsParam } from "
|
|
50
|
-
import { GroupPermissionRulesParam } from "
|
|
51
|
-
import { GroupSettingsParam } from "
|
|
52
|
-
import { InventoryPermissionRulesParam } from "
|
|
53
|
-
import { InventorySettingsParam } from "
|
|
54
|
-
import { ItemCatalogSettingsParam } from "
|
|
55
|
-
import { ItemClassSettingsParam } from "
|
|
56
|
-
import { MasterAdminPermissionRulesParam } from "
|
|
57
|
-
import { MasterPlayerPermissionRulesParam } from "
|
|
58
|
-
import { MasterPlayerSettingsParam } from "
|
|
59
|
-
import { MatchmakingQueueSettingsParam } from "
|
|
60
|
-
import { MultiplayerPermissionRulesParam } from "
|
|
61
|
-
import { PermissionRulesParam } from "
|
|
62
|
-
import { StatisticsSettingsParam } from "
|
|
63
|
-
import { StoreInventoryPermissionRulesParam } from "
|
|
64
|
-
import { TagSettingsParam } from "
|
|
65
|
-
import { ThirtPartyAppleSettingsParam } from "
|
|
66
|
-
import { ThirtPartyFacebookSettingsParam } from "
|
|
67
|
-
import { ThirtPartyGameCenterSettingsParam } from "
|
|
68
|
-
import { ThirtPartyGooglePlayGameSettingsParam } from "
|
|
69
|
-
import { ThirtPartyParam } from "
|
|
70
|
-
import { EmailSettingsParam } from "
|
|
71
|
-
import { PushNotificationSettingsParam } from "
|
|
72
|
-
import { AnalyticsRequestParams } from "
|
|
73
|
-
import { ServerGameDataRequestParams } from "
|
|
74
|
-
import { MatchmakingTicketCanMatch } from "
|
|
75
|
-
import { ServerDetail } from "
|
|
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
|
-
|
|
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
|
-
|
|
138
|
+
StoreItemType,
|
|
140
139
|
LogType,
|
|
141
140
|
GNSupport,
|
|
142
141
|
PostType,
|
|
143
142
|
GetAuthInfoResponse,
|
|
144
143
|
PushPlatformType,
|
|
145
144
|
StoreReceiveType,
|
|
146
|
-
|
|
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:
|
|
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
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
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
|
-
|
|
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,
|
|
215
|
+
GNNetwork.sendViaHttp(requestType, role, request, onResponse, overrideAuthToken, overrideSecretKey, customTags);
|
|
218
216
|
}
|
|
219
217
|
|
|
220
218
|
public sendAsync(
|
|
221
219
|
requestType: RequestType,
|
|
222
|
-
|
|
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,
|
|
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
|
-
|
|
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
|
-
|
|
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<
|
|
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<
|
|
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<
|
|
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<
|
|
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<
|
|
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<
|
|
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<
|
|
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
|
-
|
|
351
|
-
|
|
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
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
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
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
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
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
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
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
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
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
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
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
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
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
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
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
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
|
-
|
|
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:
|
|
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
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
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
|
-
|
|
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
|
-
|
|
966
|
+
let operationEvent = request.request.operationEvent;
|
|
807
967
|
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
};
|
|
968
|
+
answer.result = {
|
|
969
|
+
returnCode: operationEvent.getEventCode(),
|
|
970
|
+
debugMessage: null as any,
|
|
971
|
+
parameters: operationEvent.getParameters()?.toData(),
|
|
972
|
+
};
|
|
814
973
|
|
|
815
|
-
|
|
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
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
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
|
-
|
|
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
|