@xmobitea/gn-server-cloudscript-editor
Version:
GearN Server Cloudscript Editor by XmobiTea (Pro)
1,168 lines (1,148 loc) • 732 kB
TypeScript
declare type Action0 = () => void;
declare type Action1<T> = (t: T) => void;
declare type Action2<T1, T2> = (t1: T1, t2: T2) => void;
declare type Action3<T1, T2, T3> = (t1: T1, t2: T2, t3: T3) => void;
declare type Action4<T1, T2, T3, T4> = (t1: T1, t2: T2, t3: T3, t4: T4) => void;
type GNDataType = string | number | boolean | null | GNArray | GNHashtable;
declare class ConverterService {
private static serializeConverter;
private static deserializeConverter;
static deserializeObject<T>(gnHashtable: GNHashtable, cls: Constructor<T>): any;
static deserializeArray<T>(gnArray: GNArray, cls: Constructor<T>): any[];
static serializeObject<T>(obj: any, cls: Constructor<T>): GNHashtable;
static serializeArray<T>(objLst: [], cls: Constructor<T>): GNArray;
static init(): void;
}
declare enum OwnerType {
MasterPlayer = 1,
GamePlayer = 2,
CharacterPlayer = 3,
Group = 4,
Inventory = 5,
StoreInventory = 6,
}
declare class GNErrorCode {
static readonly Ok: number;
static readonly AccountNotFound: number;
static readonly AccountPasswordWrong: number;
static readonly AccountUsernameExists: number;
static readonly VerifyTokenError: number;
static readonly ServiceNameNotFound: number;
static readonly CharacterPlayerNotFound: number;
static readonly NotEnoughCurrency: number;
static readonly KeyNotFound: number;
static readonly ItemNotFound: number;
static readonly CatalogIdNotFound: number;
static readonly GroupNotFound: number;
static readonly OwnerNotFound: number;
static readonly ClassIdNotFound: number;
static readonly MemberNotFound: number;
static readonly PlayerNotMember: number;
static readonly GamePlayerNotFound: number;
static readonly FileNotFound: number;
static readonly FileNotUpload: number;
static readonly OwnerTypeNotSupport: number;
static readonly ItemNotStackable: number;
static readonly GameNotFound: number;
static readonly GameIsExists: number;
static readonly SecretInfoNotFound: number;
static readonly SecretInfoIsExists: number;
static readonly ExternalNotLinked: number;
static readonly ExternalLinkedOtherAccount: number;
static readonly ExternalLinkedOtherValue: number;
static readonly MasterPlayerNotFound: number;
static readonly StoreItemNotFound: number;
static readonly BuyerNotFound: number;
static readonly CanNotBuyThisStoreItem: number;
static readonly ExceptionWhenValidateReceipt: number;
static readonly StoreInvalid: number;
static readonly ReceiptInvalid: number;
static readonly StoreItemHadBeenRemove: number;
static readonly DisplayNameHasUse: number;
static readonly PlayerBan: number;
static readonly MatchmakingTicketNotFound: number;
static readonly MatchmakingTicketAlreadyCompleted: number;
static readonly MatchmakingPlayerHasNotJoinedTicket: number;
static readonly MatchNotFound: number;
static readonly MatchmakingPlayerHasJoinedOtherTicket: number;
static readonly MatchmakingQueueNotFound: number;
static readonly TicketSizeError: number;
static readonly ExecuteError: number;
static readonly VersionInvalid: number;
static readonly EmailInvalid: number;
static readonly StoreItemHadPurchaseAndNonConsumable: number;
static readonly StoreItemHadExists: number;
}
declare class GNParameterCode {
static readonly Username: string;
static readonly Password: string;
static readonly AndroidDeviceId: string;
static readonly AppleId: string;
static readonly AppleIds: string;
static readonly GoogleId: string;
static readonly GoogleIds: string;
static readonly CustomDeviceId: string;
static readonly CustomId: string;
static readonly EditorDeviceId: string;
static readonly FacebookId: string;
static readonly ServiceName: string;
static readonly UserId: string;
static readonly CurrentPassword: string;
static readonly iOSDeviceId: string;
static readonly LinuxDeviceId: string;
static readonly MacOSDeviceId: string;
static readonly WindowsDeviceId: string;
static readonly WindowsPhoneDeviceId: string;
static readonly InfoResponseParameters: string;
static readonly CreatePlayerIfNotExists: string;
static readonly External: string;
static readonly Segments: string;
static readonly CustomDatas: string;
static readonly DisplayName: string;
static readonly UniqueDisplayName: string;
static readonly Avatar: string;
static readonly TsCreate: string;
static readonly Tags: string;
static readonly Role: string;
static readonly PlayerBan: string;
static readonly PlayerDatas: string;
static readonly PlayerCurrencies: string;
static readonly PlayerStatistics: string;
static readonly TsLastLogin: string;
static readonly IpAddressCreate: string;
static readonly CountryCode: string;
static readonly TagKeys: string;
static readonly CustomDataKeys: string;
static readonly Type: string;
static readonly Value: string;
static readonly Name: string;
static readonly TsExpire: string;
static readonly Reason: string;
static readonly Key: string;
static readonly Permission: string;
static readonly NewlyCreated: string;
static readonly Token: string;
static readonly Device: string;
static readonly Account: string;
static readonly Custom: string;
static readonly Apple: string;
static readonly Google: string;
static readonly Facebook: string;
static readonly GenericService: string;
static readonly ServiceId: string;
static readonly ServiceData: string;
static readonly StatisticsAggregationMethod: string;
static readonly MaximumValue: string;
static readonly MinimumValue: string;
static readonly Skip: string;
static readonly Limit: string;
static readonly Results: string;
static readonly FacebookIds: string;
static readonly GenericIds: string;
static readonly ForceLink: string;
static readonly Email: string;
static readonly InfoRequestParam: string;
static readonly PlayerDataKeys: string;
static readonly PlayerCurrencyKeys: string;
static readonly PlayerStatisticsKeys: string;
static readonly Amount: string;
static readonly Keyword: string;
static readonly Position: string;
static readonly LoadFromCache: string;
static readonly DataKeys: string;
static readonly CurrencyKeys: string;
static readonly StatisticsKeys: string;
static readonly Id: string;
static readonly TsRemove: string;
static readonly CharacterId: string;
static readonly CatalogId: string;
static readonly ItemId: string;
static readonly GroupId: string;
static readonly Status: string;
static readonly TsLastStatusUpdate: string;
static readonly PlayerInventories: string;
static readonly PlayerGroups: string;
static readonly PlayerFriends: string;
static readonly CharacterCatalogIds: string;
static readonly ItemCatalogIds: string;
static readonly GroupCatalogIds: string;
static readonly FriendCatalogIds: string;
static readonly Owner: string;
static readonly RemoveStatus: string;
static readonly FriendId: string;
static readonly GroupMembers: string;
static readonly GroupStatistics: string;
static readonly Members: string;
static readonly OwnerId: string;
static readonly OwnerType: string;
static readonly Keys: string;
static readonly Label: string;
static readonly Configs: string;
static readonly Data: string;
static readonly FileName: string;
static readonly FileId: string;
static readonly MimeType: string;
static readonly Size: string;
static readonly FolderFileName: string;
static readonly FileUpload: string;
static readonly TsUploadExpire: string;
static readonly DownloadToken: string;
static readonly GameId: string;
static readonly PlayerCharacters: string;
static readonly ForceAcceptFriend: string;
static readonly SocketId: string;
static readonly OnlineStatus: string;
static readonly GroupDatas: string;
static readonly GroupCurrencies: string;
static readonly GroupInventories: string;
static readonly GroupDataKeys: string;
static readonly GroupCurrencyKeys: string;
static readonly GroupStatisticsKeys: string;
static readonly MemberId: string;
static readonly Message: string;
static readonly SenderId: string;
static readonly SenderType: string;
static readonly GroupMessages: string;
static readonly ItemCurrencies: string;
static readonly ItemStatistics: string;
static readonly ItemDatas: string;
static readonly ItemInventories: string;
static readonly ItemDataKeys: string;
static readonly ItemCurrencyKeys: string;
static readonly ItemStatisticsKeys: string;
static readonly ItemType: string;
static readonly ClassId: string;
static readonly Hash: string;
static readonly GoogleSettings: string;
static readonly FacebookSettings: string;
static readonly AppleSettings: string;
static readonly GoogleClientId: string;
static readonly PackageId: string;
static readonly PublicRSAKey: string;
static readonly FacebookInappSecret: string;
static readonly FacebookAppToken: string;
static readonly FacebookAppId: string;
static readonly AppleClientId: string;
static readonly SandboxEnable: string;
static readonly SecretKey: string;
static readonly CreatorId: string;
static readonly GameDescription: string;
static readonly GameIconUrl: string;
static readonly GameSettings: string;
static readonly ThirtPartySettings: string;
static readonly ForceAcceptMember: string;
static readonly InitialValue: string;
static readonly GameName: string;
static readonly CurrencySettings: string;
static readonly StatisticsSettings: string;
static readonly DatasSettings: string;
static readonly CustomDatasSettings: string;
static readonly TagsSettings: string;
static readonly MasterPlayerSettings: string;
static readonly GamePlayerSettings: string;
static readonly CharacterPlayerSettings: string;
static readonly GroupSettings: string;
static readonly InventorySettings: string;
static readonly CharacterCatalogSettings: string;
static readonly GroupCatalogSettings: string;
static readonly ItemCatalogSettings: string;
static readonly FriendCatalogSettings: string;
static readonly ItemClassSettings: string;
static readonly Remove: string;
static readonly SelfEnable: string;
static readonly OtherSelfEnable: string;
static readonly AdminSelfEnable: string;
static readonly ServerSelfEnable: string;
static readonly Authenticate: string;
static readonly MasterPlayer: string;
static readonly GamePlayer: string;
static readonly CharacterPlayer: string;
static readonly Content: string;
static readonly Group: string;
static readonly Inventory: string;
static readonly StoreInventory: string;
static readonly MasterAdmin: string;
static readonly LoginByAccount: string;
static readonly LoginByAndroidDeviceId: string;
static readonly LoginByApple: string;
static readonly LoginByCustomDeviceId: string;
static readonly LoginByCustomId: string;
static readonly LoginByFacebook: string;
static readonly LoginByGenericService: string;
static readonly LoginByGoogle: string;
static readonly LoginByiOSDeviceId: string;
static readonly LoginByWindowsPhoneDeviceId: string;
static readonly RegisterAccount: string;
static readonly LoginByEditorDeviceId: string;
static readonly LoginByLinuxDeviceId: string;
static readonly LoginByMacOSDeviceId: string;
static readonly LoginByWindowsDeviceId: string;
static readonly RefreshAuthToken: string;
static readonly LinkAccount: string;
static readonly LinkAndroidDeviceId: string;
static readonly LinkApple: string;
static readonly LinkCustomDeviceId: string;
static readonly LinkCustomId: string;
static readonly LinkEditorDeviceId: string;
static readonly LinkFacebook: string;
static readonly LinkGenericService: string;
static readonly LinkGoogle: string;
static readonly LinkiOSDeviceId: string;
static readonly LinkLinuxDeviceId: string;
static readonly LinkMacOSDeviceId: string;
static readonly LinkWindowsDeviceId: string;
static readonly LinkWindowsPhoneDeviceId: string;
static readonly UnlinkAccount: string;
static readonly UnlinkAndroidDeviceId: string;
static readonly UnlinkApple: string;
static readonly UnlinkCustomDeviceId: string;
static readonly UnlinkCustomId: string;
static readonly UnlinkEditorDeviceId: string;
static readonly UnlinkFacebook: string;
static readonly UnlinkGenericService: string;
static readonly UnlinkGoogle: string;
static readonly UnlinkiOSDeviceId: string;
static readonly UnlinkLinuxDeviceId: string;
static readonly UnlinkMacOSDeviceId: string;
static readonly UnlinkWindowsDeviceId: string;
static readonly UnlinkWindowsPhoneDeviceId: string;
static readonly AddSegment: string;
static readonly RemoveSegment: string;
static readonly GetSegment: string;
static readonly SetTag: string;
static readonly RemoveTag: string;
static readonly GetTag: string;
static readonly GetDisplayName: string;
static readonly SetDisplayName: string;
static readonly GetTsCreate: string;
static readonly GetIpAddressCreate: string;
static readonly SetTsLastLogin: string;
static readonly GetTsLastLogin: string;
static readonly SetPlayerBan: string;
static readonly GetPlayerBan: string;
static readonly SetCountryCode: string;
static readonly GetCountryCode: string;
static readonly ChangeAccountPassword: string;
static readonly ResetAccountPassword: string;
static readonly SetAvatar: string;
static readonly GetAvatar: string;
static readonly SetPlayerCurrency: string;
static readonly GetPlayerCurrency: string;
static readonly SetPlayerStatistics: string;
static readonly GetPlayerStatistics: string;
static readonly GetStatisticsLeaderboard: string;
static readonly GetStatisticsLeaderboardAroundPlayer: string;
static readonly GetCustomData: string;
static readonly SetCustomData: string;
static readonly SetPlayerData: string;
static readonly GetPlayerData: string;
static readonly GetPlayerInformation: string;
static readonly GetPlayersWithApple: string;
static readonly GetPlayersWithFacebook: string;
static readonly GetPlayersWithGoogle: string;
static readonly GetPlayersWithGenericService: string;
static readonly GetPlayersWithSegment: string;
static readonly GetPlayersWithTag: string;
static readonly GetExternal: string;
static readonly GetPlayersWithDisplayName: string;
static readonly GetPlayerCharacter: string;
static readonly GetPlayerInventory: string;
static readonly GetPlayerGroup: string;
static readonly GetPlayerFriend: string;
static readonly RemovePlayerItem: string;
static readonly GetOnlineStatus: string;
static readonly GrantGroup: string;
static readonly GrantPlayerItem: string;
static readonly GrantPlayerCharacter: string;
static readonly AddPlayerFriend: string;
static readonly RemovePlayerFriend: string;
static readonly RemovePlayerCharacter: string;
static readonly JoinGroup: string;
static readonly LeaveGroup: string;
static readonly GetFriendStatisticsLeaderboardAroundPlayer: string;
static readonly GetFriendStatisticsLeaderboard: string;
static readonly GetCatalogId: string;
static readonly GetOwner: string;
static readonly GetRemoveStatus: string;
static readonly SetOwner: string;
static readonly SetRemoveStatus: string;
static readonly GetContentData: string;
static readonly SetContentData: string;
static readonly SetGroupCurrency: string;
static readonly GetGroupCurrency: string;
static readonly SetGroupStatistics: string;
static readonly GetGroupStatistics: string;
static readonly GetStatisticsLeaderboardAroundGroup: string;
static readonly SetGroupData: string;
static readonly GetGroupData: string;
static readonly GetGroupInformation: string;
static readonly GetGroupsWithSegment: string;
static readonly GetGroupsWithTag: string;
static readonly GetGroupInventory: string;
static readonly RemoveGroupItem: string;
static readonly GrantGroupItem: string;
static readonly GetMembers: string;
static readonly AddMember: string;
static readonly RemoveMember: string;
static readonly SendGroupMessage: string;
static readonly GetGroupMessage: string;
static readonly GetGroupsWithDisplayName: string;
static readonly SetItemStatistics: string;
static readonly GetItemStatistics: string;
static readonly GetStatisticsLeaderboardAroundItem: string;
static readonly SetItemData: string;
static readonly GetItemData: string;
static readonly GetItemInformation: string;
static readonly GetItemsWithSegment: string;
static readonly GetItemsWithTag: string;
static readonly GetClassId: string;
static readonly GetItemType: string;
static readonly GetAmount: string;
static readonly SetAmount: string;
static readonly GetItemsWithDisplayName: string;
static readonly BuyStoreItem: string;
static readonly GetStoreItemInformation: string;
static readonly GetStoreItemsWithTag: string;
static readonly GrantStoreItem: string;
static readonly SetStoreItemInformation: string;
static readonly ValidateAppleAppStoreReceipt: string;
static readonly ValidateGooglePlayStoreReceipt: string;
static readonly ValidateFacebookStoreReceipt: string;
static readonly SetMasterGameSettings: string;
static readonly GrantAdminAccount: string;
static readonly RemoveAdminAccount: string;
static readonly SetPasswordAdminAccount: string;
static readonly SetSecretKeyAdminAccount: string;
static readonly SetGameInformation: string;
static readonly GrantGame: string;
static readonly ChangePasswordAdminAccount: string;
static readonly GetAdminAccountList: string;
static readonly GetGameInformation: string;
static readonly GetGameList: string;
static readonly GetMasterGameSettings: string;
static readonly GetServerLog: string;
static readonly GetSecretInfoInformation: string;
static readonly GetSecretInfoList: string;
static readonly GrantSecretInfo: string;
static readonly GenericServiceSettings: string;
static readonly GetEmail: string;
static readonly SetEmail: string;
static readonly CreateNewFileUploadInfo: string;
static readonly GetFileUploadInfoList: string;
static readonly GetFileUploadInfo: string;
static readonly RemoveFileUploadInfo: string;
static readonly RequestDownloadFileUploadInfo: string;
static readonly StoreId: string;
static readonly StoreItems: string;
static readonly StoreCurrencies: string;
static readonly PriceCurrencies: string;
static readonly InAppPurchase: string;
static readonly StoreStatistics: string;
static readonly StoreDatas: string;
static readonly StoreDataKeys: string;
static readonly StoreStatisticsKeys: string;
static readonly Currencies: string;
static readonly Inventories: string;
static readonly Receipt: string;
static readonly FacebookStoreId: string;
static readonly AppleAppStoreId: string;
static readonly GooglePlayStoreId: string;
static readonly CustomTags: string;
static readonly SetSecretInfoInformation: string;
static readonly GetCurrencyLeaderboard: string;
static readonly GetCreateLeaderboard: string;
static readonly GetLastLoginLeaderboard: string;
static readonly Multiplayer: string;
static readonly TimeInSeconds: string;
static readonly QueueName: string;
static readonly TimeToMatchInSeconds: string;
static readonly TicketId: string;
static readonly TicketIds: string;
static readonly MatchmakingTicket: string;
static readonly GiveUpAfterSeconds: string;
static readonly MatchId: string;
static readonly Attribute: string;
static readonly ReturnMember: string;
static readonly Match: string;
static readonly TeamId: string;
static readonly IpV4Address: string;
static readonly Ports: string;
static readonly PublicPort: string;
static readonly PrivatePort: string;
static readonly Protocol: string;
static readonly ServerDetail: string;
static readonly MatchmakingQueueSettings: string;
static readonly Min: string;
static readonly Max: string;
static readonly MatchSize: string;
static readonly TicketSize: string;
static readonly TeamSize: string;
static readonly Teams: string;
static readonly Rules: string;
static readonly AttributeSource: string;
static readonly AttributePath: string;
static readonly DefaultValue: string;
static readonly CompairType: string;
static readonly AllowedDifference: string;
static readonly AdvancedSettings: string;
static readonly SecondsUntilOptional: string;
static readonly ExpansionType: string;
static readonly SecondsBetweenExpansions: string;
static readonly Delta: string;
static readonly LinearExpansions: string;
static readonly CustomExpansions: string;
static readonly OverrideValue: string;
static readonly OverrideMin: string;
static readonly OverrideMax: string;
static readonly PendingMemberCount: string;
static readonly PendingTicketCount: string;
static readonly AverageMatchmakingTimeInSeconds: string;
static readonly CancelAllMatchmakingTicket: string;
static readonly CancelMatchmakingTicket: string;
static readonly CreateMatchmakingTicket: string;
static readonly GetMatchmakingTicket: string;
static readonly GetMatch: string;
static readonly GetQueueStatistics: string;
static readonly JoinMatchmakingTicket: string;
static readonly ListMatchmakingTicketsForPlayer: string;
static readonly GetAllMatchmakingTicket: string;
static readonly GetAllMatch: string;
static readonly FunctionName: string;
static readonly FunctionParameters: string;
static readonly Version: string;
static readonly FunctionResult: string;
static readonly ExecutionTimeInMs: string;
static readonly MemoryUsedInBytes: string;
static readonly FunctionLogs: string;
static readonly CanExecute: string;
static readonly Script: string;
static readonly IsLive: string;
static readonly AddFunction: string;
static readonly GetFunctions: string;
static readonly EditFunction: string;
static readonly ExecuteFunction: string;
static readonly GetFunction: string;
static readonly CloudScript: string;
static readonly LoginByGooglePlayGameService: string;
static readonly LoginByGameCenter: string;
static readonly UnlinkGooglePlayGameService: string;
static readonly UnlinkGameCenter: string;
static readonly LinkGooglePlayGameService: string;
static readonly LinkGameCenter: string;
static readonly GooglePlayGameSettings: string;
static readonly GameCenterSettings: string;
static readonly ApplicationId: string;
static readonly ClientId: string;
static readonly ClientSecret: string;
static readonly RedirectUri: string;
static readonly PlayerId: string;
static readonly PublicKeyUrl: string;
static readonly Signature: string;
static readonly Salt: string;
static readonly Timestamp: string;
static readonly GooglePlayGameService: string;
static readonly GameCenter: string;
static readonly PlayerIds: string;
static readonly GetPlayersWithGooglePlayGameService: string;
static readonly GetPlayersWithGameCenter: string;
static readonly LatestVersion: string;
static readonly LiveLatestVersion: string;
static readonly SendSocketOperationEvent: string;
static readonly EventCode: string;
static readonly EventParameters: string;
static readonly EventEncrypted: string;
static readonly Log: string;
static readonly StartValue: string;
static readonly FinalValue: string;
static readonly GetStatisticsLog: string;
static readonly GetCurrencyLog: string;
static readonly GetUsernameAdminAccount: string;
static readonly GetAnalytics: string;
static readonly AnalyticsItem: string;
static readonly CCU: string;
static readonly DAU: string;
static readonly DAUSince0h: string;
static readonly DNU: string;
static readonly DNUSince0h: string;
static readonly DRT: string;
static readonly DRTSince0h: string;
static readonly MAU: string;
static readonly MAUSince0h1: string;
static readonly MNU: string;
static readonly MNUSince0h1: string;
static readonly MRT: string;
static readonly MRTSince0h1: string;
static readonly GetEventCallbackCloudScript: string;
static readonly SetEventCallbackCloudScript: string;
static readonly HasEdit: string;
static readonly FullScript: string;
static readonly ChildScripts: string;
static readonly EventName: string;
static readonly PresentStoreItem: string;
static readonly GetStoreLog: string;
static readonly TsLastUpdate: string;
static readonly StoreReceiveType: string;
static readonly StoreReceiveTypes: string;
static readonly TransactionId: string;
static readonly PriceCurrencyStartValues: string;
static readonly PriceCurrencyAmountValues: string;
static readonly PriceCurrencyFinalValues: string;
static readonly StoreCurrencyStartValues: string;
static readonly StoreCurrencyAmountValues: string;
static readonly StoreCurrencyFinalValues: string;
static readonly StoreItemFinalValues: string;
static readonly Index: string;
static readonly ResetStatisticsLeaderboard: string;
static readonly GetBackupStatisticsLeaderboardVersion: string;
static readonly GetServerGameData: string;
static readonly DeleteInDatabase: string;
static readonly MasterPlayerCount: string;
static readonly GamePlayerCount: string;
static readonly CharacterPlayerCount: string;
static readonly InventoryCount: string;
static readonly StoreInventoryCount: string;
static readonly GroupCount: string;
static readonly Country: string;
static readonly RegionCode: string;
static readonly RegionName: string;
static readonly Regions: string;
static readonly Latitude: string;
static readonly Longitude: string;
static readonly BackupValue: string;
static readonly AnalyticsPrice: string;
static readonly IssuerId: string;
static readonly KeyId: string;
static readonly P8Content: string;
static readonly ServerAllocation: string;
static readonly Enable: string;
static readonly SendEmail: string;
static readonly SendPushNotification: string;
static readonly AddPushNotification: string;
static readonly RemovePushNotification: string;
static readonly GetPushNotification: string;
static readonly EmailSettings: string;
static readonly PushNotificationSettings: string;
static readonly SendFrom: string;
static readonly SendGridApiKey: string;
static readonly Subject: string;
static readonly ContentHtml: string;
static readonly PushNotifications: string;
static readonly PushId: string;
static readonly PlatformType: string;
static readonly ProjectId: string;
static readonly ClientEmail: string;
static readonly PrivateKey: string;
static readonly Badge: string;
static readonly Icon: string;
static readonly Sound: string;
static readonly Title: string;
static readonly Body: string;
static readonly TargetPlatforms: string;
static readonly OperationSystem: string;
static readonly RequestComplete: string;
static readonly CpuUsage: string;
static readonly MemoryUsage: string;
static readonly StorageUsage: string;
static readonly FreeMemoryInBytes: string;
static readonly TotalMemoryInBytes: string;
static readonly ErrorCode: string;
static readonly Count: string;
static readonly FsTotalSizeInBytes: string;
static readonly FsUsedSizeInBytes: string;
static readonly TotalSizeInBytes: string;
static readonly Collections: string;
static readonly Objects: string;
static readonly Indexes: string;
static readonly DatabaseSystem: string;
static readonly Cost: string;
static readonly MonthlyCost: string;
static readonly RequestCount: string;
static readonly MatchmakingRequestCount: string;
static readonly CloudScriptGBs: string;
static readonly StorageSizeInBytes: string;
static readonly DataTransferSizeInBytes: string;
static readonly StoreItemType: string;
static readonly OwnerIds: string;
static readonly GetStoreUsed: string;
static readonly RemoveStoreUsed: string;
}
declare class ParameterCode {
static readonly AuthToken: string;
static readonly Ts: string;
static readonly ErrorCode: string;
static readonly UserId: string;
}
declare class Commands {
static readonly USER_AGENT: string;
static readonly CONTENT_TYPE: string;
static readonly ACCEPT: string;
static readonly CONTENT_LENGTH: string;
static readonly APPLICATION_JSON: string;
static readonly APPLICATION_MSGPACK: string;
static readonly RequestAuthTokenCmd: string;
static readonly RequestSecretCmd: string;
static readonly RequestGameIdCmd: string;
static readonly RequestCmd_MsgPack: string;
static readonly ResponseCmd_MsgPack: string;
static readonly EventCmd_MsgPack: string;
static readonly RequestCmd_Json: string;
static readonly ResponseCmd_Json: string;
static readonly EventCmd_Json: string;
static readonly Data: string;
static readonly File: string;
}
declare class EventCode {
static readonly OnGamePlayerFriendUpdate: number;
static readonly OnCharacterPlayerFriendUpdate: number;
static readonly OnGamePlayerGroupUpdate: number;
static readonly OnGroupMemberUpdate: number;
static readonly OnGroupMessageUpdate: number;
static readonly OnCharacterPlayerGroupUpdate: number;
}
declare class OperationCode {
static readonly LoginByAdminAccount: number;
static readonly ChangePasswordAdminAccount: number;
static readonly GetGameList: number;
static readonly GetMasterGameSettings: number;
static readonly SetMasterGameSettings: number;
static readonly GrantAdminAccount: number;
static readonly RemoveAdminAccount: number;
static readonly SetPasswordAdminAccount: number;
static readonly SetSecretKeyAdminAccount: number;
static readonly GetGameInformation: number;
static readonly SetGameInformation: number;
static readonly GetAdminAccountList: number;
static readonly GrantGame: number;
static readonly GetServerLog: number;
static readonly GetSecretInfoInformation: number;
static readonly GetSecretInfoList: number;
static readonly GrantSecretInfo: number;
static readonly SetSecretInfoInformation: number;
static readonly GetUsernameAdminAccount: number;
static readonly GetAnalytics: number;
static readonly GetEventCallbackCloudScript: number;
static readonly SetEventCallbackCloudScript: number;
static readonly ResetStatisticsLeaderboard: number;
static readonly GetBackupStatisticsLeaderboardVersion: number;
static readonly GetServerGameData: number;
static readonly DeleteInDatabase: number;
static readonly LoginByAccount: number;
static readonly LoginByAndroidDeviceId: number;
static readonly LoginByApple: number;
static readonly LoginByCustomDeviceId: number;
static readonly LoginByCustomId: number;
static readonly LoginByEditorDeviceId: number;
static readonly LoginByFacebook: number;
static readonly LoginByGenericService: number;
static readonly LoginByGoogle: number;
static readonly LoginByiOSDeviceId: number;
static readonly LoginByLinuxDeviceId: number;
static readonly LoginByMacOSDeviceId: number;
static readonly LoginByWindowsDeviceId: number;
static readonly LoginByWindowsPhoneDeviceId: number;
static readonly RegisterAccount: number;
static readonly LinkAccount: number;
static readonly LinkAndroidDeviceId: number;
static readonly LinkApple: number;
static readonly LinkCustomDeviceId: number;
static readonly LinkCustomId: number;
static readonly LinkEditorDeviceId: number;
static readonly LinkFacebook: number;
static readonly LinkGenericService: number;
static readonly LinkGoogle: number;
static readonly LinkiOSDeviceId: number;
static readonly LinkLinuxDeviceId: number;
static readonly LinkMacOSDeviceId: number;
static readonly LinkWindowsDeviceId: number;
static readonly LinkWindowsPhoneDeviceId: number;
static readonly UnlinkAccount: number;
static readonly UnlinkAndroidDeviceId: number;
static readonly UnlinkApple: number;
static readonly UnlinkCustomDeviceId: number;
static readonly UnlinkCustomId: number;
static readonly UnlinkEditorDeviceId: number;
static readonly UnlinkFacebook: number;
static readonly UnlinkGenericService: number;
static readonly UnlinkGoogle: number;
static readonly UnlinkiOSDeviceId: number;
static readonly UnlinkLinuxDeviceId: number;
static readonly UnlinkMacOSDeviceId: number;
static readonly UnlinkWindowsDeviceId: number;
static readonly UnlinkWindowsPhoneDeviceId: number;
static readonly AddSegment: number;
static readonly RemoveSegment: number;
static readonly GetSegment: number;
static readonly SetTag: number;
static readonly GetTag: number;
static readonly SetDisplayName: number;
static readonly GetDisplayName: number;
static readonly GetTsCreate: number;
static readonly GetIpAddressCreate: number;
static readonly GetTsLastLogin: number;
static readonly SetPlayerBan: number;
static readonly GetPlayerBan: number;
static readonly SetCountryCode: number;
static readonly GetCountryCode: number;
static readonly ChangeAccountPassword: number;
static readonly ResetAccountPassword: number;
static readonly SetAvatar: number;
static readonly GetAvatar: number;
static readonly SetPlayerCurrency: number;
static readonly GetPlayerCurrency: number;
static readonly SetPlayerStatistics: number;
static readonly GetPlayerStatistics: number;
static readonly GetStatisticsLeaderboard: number;
static readonly GetStatisticsLeaderboardAroundPlayer: number;
static readonly SetCustomData: number;
static readonly GetCustomData: number;
static readonly SetPlayerData: number;
static readonly GetPlayerData: number;
static readonly GetPlayerInformation: number;
static readonly GetPlayersWithApple: number;
static readonly GetPlayersWithFacebook: number;
static readonly GetPlayersWithGoogle: number;
static readonly GetPlayersWithGenericService: number;
static readonly GetPlayersWithSegment: number;
static readonly GetPlayersWithTag: number;
static readonly GetExternal: number;
static readonly GetCatalogId: number;
static readonly GetOwnerInfo: number;
static readonly GetOnlineStatus: number;
static readonly RemovePlayerItem: number;
static readonly RemovePlayerCharacter: number;
static readonly AddPlayerFriend: number;
static readonly RemovePlayerFriend: number;
static readonly GetPlayerInventory: number;
static readonly GetPlayerCharacter: number;
static readonly GetPlayerFriend: number;
static readonly GetPlayerGroup: number;
static readonly GrantGroup: number;
static readonly JoinGroup: number;
static readonly GrantPlayerItem: number;
static readonly GrantPlayerCharacter: number;
static readonly GetOwner: number;
static readonly GetRemoveStatus: number;
static readonly SetGroupStatistics: number;
static readonly SetGroupData: number;
static readonly GetGroupCurrency: number;
static readonly SetGroupCurrency: number;
static readonly GrantGroupItem: number;
static readonly GetStatisticsLeaderboardAroundGroup: number;
static readonly GetGroupsWithTag: number;
static readonly GetGroupsWithSegment: number;
static readonly GetGroupStatistics: number;
static readonly GetGroupInventory: number;
static readonly GetGroupData: number;
static readonly GetGroupInformation: number;
static readonly GetMembers: number;
static readonly SetItemStatistics: number;
static readonly SetItemData: number;
static readonly GetItemData: number;
static readonly GetStatisticsLeaderboardAroundItem: number;
static readonly GetItemsWithTag: number;
static readonly GetItemsWithSegment: number;
static readonly GetItemStatistics: number;
static readonly GetItemInformation: number;
static readonly GetAmount: number;
static readonly GetItemType: number;
static readonly SetTsLastLogin: number;
static readonly SetRemoveStatus: number;
static readonly SetAmount: number;
static readonly RemoveGroup: number;
static readonly LeaveGroup: number;
static readonly AddMember: number;
static readonly RemoveMember: number;
static readonly GetContentData: number;
static readonly SetContentData: number;
static readonly GetGroupMessage: number;
static readonly SendGroupMessage: number;
static readonly GetPlayersWithDisplayName: number;
static readonly GetItemsWithDisplayName: number;
static readonly GetGroupsWithDisplayName: number;
static readonly SetOwner: number;
static readonly RemoveGroupItem: number;
static readonly GetClassId: number;
static readonly GetStoreItemInformation: number;
static readonly GetStoreItemsWithTag: number;
static readonly GrantStoreItem: number;
static readonly RemoveTag: number;
static readonly BuyStoreItem: number;
static readonly ValidateAppleAppStoreReceipt: number;
static readonly ValidateGooglePlayStoreReceipt: number;
static readonly ValidateFacebookStoreReceipt: number;
static readonly GetFriendStatisticsLeaderboardAroundPlayer: number;
static readonly GetFriendStatisticsLeaderboard: number;
static readonly SetEmail: number;
static readonly GetEmail: number;
static readonly CreateNewFileUploadInfo: number;
static readonly GetFileUploadInfo: number;
static readonly RequestDownloadFileUploadInfo: number;
static readonly RemoveFileUploadInfo: number;
static readonly GetFileUploadInfoList: number;
static readonly SetStoreItemInformation: number;
static readonly RefreshAuthToken: number;
static readonly CancelAllMatchmakingTicket: number;
static readonly CancelMatchmakingTicket: number;
static readonly CreateMatchmakingTicket: number;
static readonly GetMatch: number;
static readonly GetMatchmakingTicket: number;
static readonly GetQueueStatistics: number;
static readonly JoinMatchmakingTicket: number;
static readonly ListMatchmakingTicketsForPlayer: number;
static readonly GetCurrencyLeaderboard: number;
static readonly ExecuteFunction: number;
static readonly GetFunctions: number;
static readonly AddFunction: number;
static readonly EditFunction: number;
static readonly GetFunction: number;
static readonly LoginByGooglePlayGameService: number;
static readonly LoginByGameCenter: number;
static readonly LinkGooglePlayGameService: number;
static readonly LinkGameCenter: number;
static readonly UnlinkGooglePlayGameService: number;
static readonly UnlinkGameCenter: number;
static readonly GetPlayersWithGooglePlayGameService: number;
static readonly GetPlayersWithGameCenter: number;
static readonly GetLastLoginLeaderboard: number;
static readonly GetCreateLeaderboard: number;
static readonly GetAllMatchmakingTicket: number;
static readonly GetAllMatch: number;
static readonly SendSocketOperationEvent: number;
static readonly GetStatisticsLog: number;
static readonly GetCurrencyLog: number;
static readonly PresentStoreItem: number;
static readonly GetStoreLog: number;
static readonly SendEmail: number;
static readonly SendPushNotification: number;
static readonly AddPushNotification: number;
static readonly RemovePushNotification: number;
static readonly GetPushNotification: number;
static readonly GetStoreUsed: number;
static readonly RemoveStoreUsed: number;
}
declare class ReturnCode {
static readonly SecretInvalid: number;
static readonly MaxSizeRequestReject: number;
static readonly MaxRequestReject: number;
static readonly MaxCCUReject: number;
static readonly OperationNotAuthorized: number;
static readonly InvalidRequestParameters: number;
static readonly OperationInvalid: number;
static readonly InternalServerError: number;
static readonly OperationNotAllow: number;
static readonly OperationTimeout: number;
static readonly UnknownError: number;
static readonly Ok: number;
}
declare class CodeHelper {
private static operationCodeHelper;
private static eventCodeHelper;
private static returnCodeHelper;
static getOperationCodeName(operationCode: number): string;
static getEventCodeName(eventCode: number): string;
static getReturnCodeName(returnCode: number): string;
static init(): void;
private static setOperationCodeDic;
static addOperationCodeDic(operationCode: any): void;
private static setEventCodeDic;
static addEventCodeDic(eventCode: any): void;
private static setReturnCodeDic;
static addReturnCodeDic(returnCode: any): void;
}
declare class GNUtils {
static toDatasDictionary(datas: Array<GenericModels.DataItem>): Map<string, GenericModels.DataItem>;
static toTagsDictionary(tags: Array<GenericModels.TagItem>): Map<string, GenericModels.TagItem>;
static toCurrenciesDictionary(currencies: Array<GenericModels.CurrencyItem>): Map<string, GenericModels.CurrencyItem>;
static toStatisticsDictionary(statistics: Array<GenericModels.StatisticsItem>): Map<string, GenericModels.StatisticsItem>;
static toInventoriesDictionary(inventories: Array<GenericModels.InventoryItem>): Map<string, GenericModels.InventoryItem>;
static toGroupDictionary(groups: Array<GenericModels.GroupItem>): Map<string, GenericModels.GroupItem>;
static toFriendDictionary(friends: Array<GenericModels.FriendItem>): Map<string, GenericModels.FriendItem>;
}
declare const initGNObjectMetadata: <T extends GNObjectMetadata>(prototype: any) => T;
declare const initGNObjectFieldMetadata: <T extends GNObjectFieldMetadata>(prototype: any, propertyKey: string) => T;
declare const getGNObjectMetadata: <T extends GNObjectMetadata>(obj: AbstractConstructor<any>) => T | undefined;
declare const setGNObjectMetadata: <T extends GNObjectMetadata>(obj: AbstractConstructor<any>, metadata: T) => void;
declare const getTableName: (model: Constructor<any>) => string;
interface GNEnhancedObjectFieldMetadata extends GNObjectFieldMetadata {
code: string;
isOptional: boolean;
gnFieldType: GNFieldDataType;
defaultValue: any;
activeConditionValid: boolean;
mustNonNull?: boolean;
minLength?: number;
maxLength?: number;
minValue?: number;
maxValue?: number;
mustInt?: boolean;
}
declare enum GNFieldDataType {
Other = 0,
Number = 1,
String = 2,
Boolean = 3,
GNHashtable = 4,
GNArray = 5,
}
declare interface GNEnhancedObjectMetadata extends GNObjectMetadata {
fields: GNEnhancedObjectFieldMetadata[];
}
interface DataMemberBaseArgs {
code: string;
isOptional?: boolean;
defaultValue?: any;
}
interface DataMemberArgs extends DataMemberBaseArgs {
gnFieldType?: GNFieldDataType;
}
interface OtherDataMemberArgs extends DataMemberBaseArgs {}
interface StringDataMemberArgs extends OtherDataMemberArgs {
defaultValue?: string;
mustNonNull?: boolean;
minLength?: number;
maxLength?: number;
}
interface BooleanDataMemberArgs extends OtherDataMemberArgs {
defaultValue?: boolean;
}
interface NumberDataMemberArgs extends OtherDataMemberArgs {
defaultValue?: number;
minValue?: number;
maxValue?: number;
mustInt?: boolean;
}
interface GNHashtableDataMemberArgs extends OtherDataMemberArgs {
defaultValue?: GNHashtable;
mustNonNull?: boolean;
minLength?: number;
maxLength?: number;
}
interface GNArrayDataMemberArgs extends OtherDataMemberArgs {
defaultValue?: GNArray;
mustNonNull?: boolean;
minLength?: number;
maxLength?: number;
elementCls?: new (...args: any[]) => any;
}
declare const DataMember: (args: DataMemberArgs) => (prototype: any, propertyKey: string) => void;
declare const StringDataMember: (args: StringDataMemberArgs) => (prototype: any, propertyKey: string) => void;
declare const BooleanDataMember: (args: BooleanDataMemberArgs) => (prototype: any, propertyKey: string) => void;
declare const GNHashtableDataMember: (args: GNHashtableDataMemberArgs) => (prototype: any, propertyKey: string) => void;
declare const GNArrayDataMember: (args: GNArrayDataMemberArgs) => (prototype: any, propertyKey: string) => void;
declare const NumberDataMember: (args: NumberDataMemberArgs) => (prototype: any, propertyKey: string) => void;
interface IGNData {
clear(): void;
remove(k: string | number): boolean;
count(): string | number;
getObject(k: string | number, def?: object): object;
getBoolean(k: string | number, def?: boolean): boolean;
getString(k: string | number, def?: string): string;
getNumber(k: string | number, def?: number): number;
getGNHashtable(k: string | number, def?: GNHashtable): GNHashtable;
getGNArray(k: string | number, def?: GNArray): GNArray;
}
declare abstract class GNData implements IGNData {
protected get<T>(k: string | number, def?: T): T;
abstract clear(): void;
abstract remove(k: string | number): boolean;
abstract count(): string | number;
getBoolean(k: string | number, def?: boolean): boolean;
getObject(k: string | number, def?: object): object;
getString(k: string | number, def?: string): string;
getNumber(k: string | number, def?: number): number;
getGNHashtable(k: string | number, def?: GNHashtable): GNHashtable;
getGNArray(k: string | number, def?: GNArray): GNArray;
private static createGNHashtableFromObject;
private static createGNArrayFromArray;
protected static createUseDataFromOriginData(value: any): GNDataType;
protected static createDataFromUseData(value: GNDataType): any;
abstract toData(): any;
}
declare class GNHashtableBuilder {
private dict;
add(k: string, value: any): GNHashtableBuilder;
addAll(dict: { [k: string]: any }): this;
constructor();
build(): GNHashtable;
}
declare class GNHashtable extends GNData {
private dict;
clear(): void;
remove(k: string): boolean;
count(): number;
containsKey(k: string): boolean;
protected get<T>(k: string, def?: T): T;
add(k: string, value: any): void;
toData(): {};
static builder(): GNHashtableBuilder;
toString(): string;
}
declare class GNArrayBuilder {
private array;
add(value: any): GNArrayBuilder;
addAll(array: any[]): GNArrayBuilder;
build(): GNArray;
constructor();
}
declare class GNArray extends GNData {
private array;
clear(): void;
remove(k: number): boolean;
count(): number;
protected get<T>(k: number, def?: T): T;
add(value: any): void;
toData(): any[];
static builder(): GNArrayBuilder;
toString(): string;
}
declare enum InvalidMemberType {
UnknownError = 1,
DataRequired = 2,
TypeInvalid = 3,
StringNull = 4,
StringMinLength = 5,
StringMaxLength = 6,
NumberMinValue = 7,
NumberMaxValue = 8,
NumberMustInt = 9,
GNHashtableNull = 10,
GNHashtableMinLength = 11,
GNHashtableMaxLength = 12,
GNArrayNull = 13,
GNArrayMinLength = 14,
GNArrayMaxLength = 15,
}
declare interface InvalidMember {
code: string;
invalidMemberType: InvalidMemberType;
}
declare enum RequestType {
Custom = 0,
Authenticate = 1,
CharacterPlayer = 2,
Content = 3,
GamePlayer = 4,
Group = 5,
Inventory = 6,
MasterPlayer = 7,
StoreInventory = 8,
Dashboard = 9,
Multiplayer = 10,
CloudScript = 11,
}
declare enum StoreReceiveType {
Buy = 1,
Present = 2,
AppleAppStore = 3,
FacebookStore = 4,
GooglePlayStore = 5
}
declare enum RequestRole {
Admin = 1,
Server = 2,
Client = 3,
}
declare abstract class CustomOperationRequest {
protected abstract operationCode: number;
protected abstract operationEncrypted: boolean;
protected abstract r