@xmobitea/gn-typescript-client 2.6.13-tsc → 2.6.14
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/AGENTS.md +37 -0
- package/README.MD +420 -1
- package/dist/gearn.js.client.js +71354 -0
- package/dist/gearn.js.client.min.js +2 -0
- package/dist/gearn.js.client.min.js.LICENSE.txt +14 -0
- package/dist/index.d.ts +30 -0
- package/dist/index.js +58386 -339
- package/dist/runtime/GNNetwork.d.ts +687 -3
- package/dist/runtime/GNNetworkAuthenticateApi.d.ts +327 -0
- package/dist/runtime/GNNetworkCharacterPlayerApi.d.ts +1026 -0
- package/dist/runtime/GNNetworkCloudScriptApi.d.ts +141 -0
- package/dist/runtime/GNNetworkContentApi.d.ts +243 -0
- package/dist/runtime/GNNetworkDashboardApi.d.ts +221 -0
- package/dist/runtime/GNNetworkGamePlayerApi.d.ts +1033 -0
- package/dist/runtime/GNNetworkGroupApi.d.ts +783 -0
- package/dist/runtime/GNNetworkInventoryApi.d.ts +673 -0
- package/dist/runtime/GNNetworkMasterPlayerApi.d.ts +1614 -6
- package/dist/runtime/GNNetworkMultiplayerApi.d.ts +234 -0
- package/dist/runtime/GNNetworkStoreInventoryApi.d.ts +309 -0
- package/dist/runtime/common/Action0.d.ts +30 -0
- package/dist/runtime/common/Action1.d.ts +32 -0
- package/dist/runtime/common/Action2.d.ts +21 -0
- package/dist/runtime/common/Action3.d.ts +16 -0
- package/dist/runtime/common/Action4.d.ts +17 -0
- package/dist/runtime/common/GNData.d.ts +368 -0
- package/dist/runtime/config/GNServerSettings.d.ts +442 -12
- package/dist/runtime/constant/Commands.d.ts +80 -0
- package/dist/runtime/constant/EventCode.d.ts +48 -0
- package/dist/runtime/constant/OperationCode.d.ts +74 -1
- package/dist/runtime/constant/ReturnCode.d.ts +72 -0
- package/dist/runtime/constant/enumType/ExecuteResponseStatus.d.ts +31 -0
- package/dist/runtime/constant/enumType/FriendStatus.d.ts +39 -0
- package/dist/runtime/constant/enumType/GoogleLoginType.d.ts +23 -0
- package/dist/runtime/constant/enumType/GroupStatus.d.ts +32 -0
- package/dist/runtime/constant/enumType/InvalidMemberType.d.ts +75 -0
- package/dist/runtime/constant/enumType/ItemType.d.ts +23 -0
- package/dist/runtime/constant/enumType/MatchStatus.d.ts +30 -0
- package/dist/runtime/constant/enumType/MatchmakingMemberStatus.d.ts +24 -0
- package/dist/runtime/constant/enumType/MatchmakingTicketStatus.d.ts +34 -0
- package/dist/runtime/constant/enumType/OwnerType.d.ts +40 -0
- package/dist/runtime/constant/enumType/PermissionDataItem.d.ts +22 -0
- package/dist/runtime/constant/enumType/PushPlatformType.d.ts +18 -0
- package/dist/runtime/constant/enumType/RequestRole.d.ts +32 -0
- package/dist/runtime/constant/enumType/RequestType.d.ts +70 -0
- package/dist/runtime/constant/enumType/StoreItemType.d.ts +21 -0
- package/dist/runtime/constant/enumType/StoreReceiveType.d.ts +30 -0
- package/dist/runtime/constant/errorCode/ErrorCode.d.ts +190 -8
- package/dist/runtime/constant/parameterCode/ParameterCode.d.ts +35 -5
- package/dist/runtime/entity/DataMember.d.ts +338 -0
- package/dist/runtime/entity/GNMetadata.d.ts +101 -0
- package/dist/runtime/entity/InvalidMember.d.ts +28 -0
- package/dist/runtime/entity/OperationEvent.d.ts +49 -0
- package/dist/runtime/entity/OperationRequest.d.ts +108 -0
- package/dist/runtime/entity/OperationResponse.d.ts +110 -0
- package/dist/runtime/entity/models/AuthenticateModels.d.ts +115 -0
- package/dist/runtime/entity/models/AuthenticateRequestModels.d.ts +131 -0
- package/dist/runtime/entity/models/AuthenticateResponseModels.d.ts +131 -0
- package/dist/runtime/entity/models/CharacterPlayerModels.d.ts +625 -1
- package/dist/runtime/entity/models/CharacterPlayerRequestModels.d.ts +972 -0
- package/dist/runtime/entity/models/CharacterPlayerResponseModels.d.ts +332 -0
- package/dist/runtime/entity/models/CloudScriptModels.d.ts +109 -0
- package/dist/runtime/entity/models/CloudScriptRequestModels.d.ts +107 -0
- package/dist/runtime/entity/models/CloudScriptResponseModels.d.ts +46 -0
- package/dist/runtime/entity/models/ContentModels.d.ts +124 -0
- package/dist/runtime/entity/models/ContentRequestModels.d.ts +152 -0
- package/dist/runtime/entity/models/ContentResponseModels.d.ts +58 -0
- package/dist/runtime/entity/models/DashboardModels.d.ts +371 -8
- package/dist/runtime/entity/models/DashboardRequestModels.d.ts +172 -0
- package/dist/runtime/entity/models/DashboardResponseModels.d.ts +170 -0
- package/dist/runtime/entity/models/GamePlayerModels.d.ts +644 -1
- package/dist/runtime/entity/models/GamePlayerRequestModels.d.ts +959 -0
- package/dist/runtime/entity/models/GamePlayerResponseModels.d.ts +333 -1
- package/dist/runtime/entity/models/GenericModels.d.ts +94 -0
- package/dist/runtime/entity/models/GroupModels.d.ts +484 -2
- package/dist/runtime/entity/models/GroupRequestModels.d.ts +737 -0
- package/dist/runtime/entity/models/GroupResponseModels.d.ts +254 -0
- package/dist/runtime/entity/models/InventoryModels.d.ts +415 -0
- package/dist/runtime/entity/models/InventoryRequestModels.d.ts +629 -0
- package/dist/runtime/entity/models/InventoryResponseModels.d.ts +218 -0
- package/dist/runtime/entity/models/MasterPlayerModels.d.ts +1065 -3
- package/dist/runtime/entity/models/MasterPlayerRequestModels.d.ts +1560 -6
- package/dist/runtime/entity/models/MasterPlayerResponseModels.d.ts +532 -1
- package/dist/runtime/entity/models/MultiplayerModels.d.ts +199 -0
- package/dist/runtime/entity/models/MultiplayerRequestModels.d.ts +196 -0
- package/dist/runtime/entity/models/MultiplayerResponseModels.d.ts +74 -0
- package/dist/runtime/entity/models/StoreInventoryModels.d.ts +262 -0
- package/dist/runtime/entity/models/StoreInventoryRequestModels.d.ts +268 -0
- package/dist/runtime/entity/models/StoreInventoryResponseModels.d.ts +98 -0
- package/dist/runtime/entity/request/CustomOperationRequest.d.ts +99 -0
- package/dist/runtime/entity/response/CustomOperationResponse.d.ts +118 -0
- package/dist/runtime/entity/response/GetAuthInfoResponse.d.ts +53 -0
- package/dist/runtime/entity/response/HealthCheckResponse.d.ts +56 -0
- package/dist/runtime/entity/response/UploadFileResponse.d.ts +19 -0
- package/dist/runtime/helper/CodeHelper.d.ts +122 -0
- package/dist/runtime/helper/ConverterService.d.ts +74 -0
- package/dist/runtime/helper/EnumUtility.d.ts +63 -0
- package/dist/runtime/helper/GNSupport.d.ts +64 -4
- package/dist/runtime/helper/GNUtils.d.ts +54 -0
- package/dist/runtime/helper/MessagePackConverterService.d.ts +48 -0
- package/dist/runtime/helper/OperationHelper.d.ts +51 -0
- package/dist/runtime/helper/StorageService.d.ts +48 -8
- package/dist/runtime/logger/GNDebug.d.ts +117 -0
- package/dist/runtime/networking/AuthenticateStatus.d.ts +64 -0
- package/dist/runtime/networking/IPeer.d.ts +83 -0
- package/dist/runtime/networking/NetworkingPeer.d.ts +256 -1
- package/dist/runtime/networking/OperationPending.d.ts +112 -0
- package/dist/runtime/networking/PeerBase.d.ts +231 -0
- package/dist/runtime/networking/handler/IServerEventHandler.d.ts +84 -0
- package/dist/runtime/networking/handler/OnCharacterPlayerFriendUpdateEventHandler.d.ts +69 -0
- package/dist/runtime/networking/handler/OnCharacterPlayerGroupUpdateEventHandler.d.ts +49 -0
- package/dist/runtime/networking/handler/OnGamePlayerFriendUpdateEventHandler.d.ts +50 -0
- package/dist/runtime/networking/handler/OnGamePlayerGroupUpdateEventHandler.d.ts +41 -0
- package/dist/runtime/networking/handler/OnGroupMemberUpdateEventHandler.d.ts +47 -0
- package/dist/runtime/networking/handler/OnGroupMessageUpdateEventHandler.d.ts +46 -0
- package/dist/runtime/networking/http/HttpPeer.d.ts +173 -0
- package/dist/runtime/networking/http/NetworkingHttpPeerBase.d.ts +87 -0
- package/dist/runtime/networking/http/NetworkingPeerAxiosRequest.d.ts +113 -0
- package/dist/runtime/networking/socket/NetworkingPeerSocketIOClient.d.ts +145 -0
- package/dist/runtime/networking/socket/NetworkingSocketPeerBase.d.ts +198 -0
- package/dist/runtime/networking/socket/SocketPeer.d.ts +155 -0
- package/dist/runtime/typescript/ServiceUpdate.d.ts +46 -0
- package/docs/AI_CHEATSHEET.md +211 -0
- package/docs/COOKBOOK.md +912 -0
- package/docs/RULES.md +307 -0
- package/docs/ai-manifest.json +725 -0
- package/docs/guides/AUTHENTICATE.md +246 -0
- package/docs/guides/CHARACTER_PLAYER.md +439 -0
- package/docs/guides/CLOUDSCRIPT.md +335 -0
- package/docs/guides/COCOS_CREATOR_INTEGRATION.md +150 -0
- package/docs/guides/CONTENT.md +291 -0
- package/docs/guides/DASHBOARD.md +262 -0
- package/docs/guides/GAME_PLAYER.md +473 -0
- package/docs/guides/GROUP.md +412 -0
- package/docs/guides/INVENTORY.md +375 -0
- package/docs/guides/MASTER_PLAYER.md +458 -0
- package/docs/guides/MULTIPLAYER.md +303 -0
- package/docs/guides/STORE_INVENTORY.md +313 -0
- package/docs/llms-full.txt +43 -0
- package/docs/reference/API_AUTHENTICATE.md +75 -0
- package/docs/reference/API_CHARACTER_PLAYER.md +226 -0
- package/docs/reference/API_CLOUDSCRIPT.md +82 -0
- package/docs/reference/API_CONTENT.md +88 -0
- package/docs/reference/API_DASHBOARD.md +82 -0
- package/docs/reference/API_GAME_PLAYER.md +223 -0
- package/docs/reference/API_GROUP.md +187 -0
- package/docs/reference/API_INDEX.md +57 -0
- package/docs/reference/API_INVENTORY.md +169 -0
- package/docs/reference/API_MASTER_PLAYER.md +323 -0
- package/docs/reference/API_MULTIPLAYER.md +97 -0
- package/docs/reference/API_STORE_INVENTORY.md +109 -0
- package/docs/reference/CONFIG.md +107 -0
- package/docs/reference/DTO_INDEX.md +2543 -0
- package/docs/reference/ENUMS.md +433 -0
- package/docs/reference/ERROR_HANDLING.md +159 -0
- package/docs/reference/EVENTS.md +188 -0
- package/docs/reference/PERMISSION_RULES.md +55 -0
- package/docs/reference/dto/AUTHENTICATE.md +619 -0
- package/docs/reference/dto/CHARACTER_PLAYER.md +3686 -0
- package/docs/reference/dto/CLOUDSCRIPT.md +400 -0
- package/docs/reference/dto/CONTENT.md +548 -0
- package/docs/reference/dto/DASHBOARD.md +1980 -0
- package/docs/reference/dto/GAME_PLAYER.md +3631 -0
- package/docs/reference/dto/GENERIC.md +151 -0
- package/docs/reference/dto/GROUP.md +2842 -0
- package/docs/reference/dto/INVENTORY.md +2385 -0
- package/docs/reference/dto/MASTER_PLAYER.md +6024 -0
- package/docs/reference/dto/MULTIPLAYER.md +850 -0
- package/docs/reference/dto/STORE_INVENTORY.md +1262 -0
- package/llms.txt +47 -0
- package/package.json +11 -2
- package/GNServerSettings.debug.json +0 -21
- package/dist/runtime/GNNetwork.js +0 -273
- package/dist/runtime/GNNetworkAuthenticateApi.js +0 -122
- package/dist/runtime/GNNetworkCharacterPlayerApi.js +0 -968
- package/dist/runtime/GNNetworkCloudScriptApi.js +0 -104
- package/dist/runtime/GNNetworkContentApi.js +0 -140
- package/dist/runtime/GNNetworkDashboardApi.js +0 -170
- package/dist/runtime/GNNetworkGamePlayerApi.js +0 -950
- package/dist/runtime/GNNetworkGroupApi.js +0 -734
- package/dist/runtime/GNNetworkInventoryApi.js +0 -626
- package/dist/runtime/GNNetworkMasterPlayerApi.js +0 -1550
- package/dist/runtime/GNNetworkMultiplayerApi.js +0 -194
- package/dist/runtime/GNNetworkStoreInventoryApi.js +0 -266
- package/dist/runtime/common/Action0.js +0 -1
- package/dist/runtime/common/Action1.js +0 -1
- package/dist/runtime/common/Action2.js +0 -1
- package/dist/runtime/common/Action3.js +0 -1
- package/dist/runtime/common/Action4.js +0 -1
- package/dist/runtime/common/GNData.js +0 -209
- package/dist/runtime/config/GNServerSettings.js +0 -156
- package/dist/runtime/constant/Commands.js +0 -20
- package/dist/runtime/constant/EventCode.js +0 -8
- package/dist/runtime/constant/OperationCode.js +0 -221
- package/dist/runtime/constant/ReturnCode.js +0 -14
- package/dist/runtime/constant/enumType/ExecuteResponseStatus.js +0 -8
- package/dist/runtime/constant/enumType/FriendStatus.js +0 -7
- package/dist/runtime/constant/enumType/GoogleLoginType.js +0 -5
- package/dist/runtime/constant/enumType/GroupStatus.js +0 -7
- package/dist/runtime/constant/enumType/InvalidMemberType.js +0 -18
- package/dist/runtime/constant/enumType/ItemType.js +0 -5
- package/dist/runtime/constant/enumType/MatchmakingMemberStatus.js +0 -6
- package/dist/runtime/constant/enumType/MatchmakingTicketStatus.js +0 -8
- package/dist/runtime/constant/enumType/OwnerType.js +0 -9
- package/dist/runtime/constant/enumType/PermissionDataItem.js +0 -5
- package/dist/runtime/constant/enumType/PushPlatformType.js +0 -5
- package/dist/runtime/constant/enumType/RequestRole.js +0 -6
- package/dist/runtime/constant/enumType/RequestType.js +0 -15
- package/dist/runtime/constant/enumType/StoreItemType.js +0 -5
- package/dist/runtime/constant/enumType/StoreReceiveType.js +0 -8
- package/dist/runtime/constant/errorCode/ErrorCode.js +0 -52
- package/dist/runtime/constant/parameterCode/ParameterCode.js +0 -617
- package/dist/runtime/entity/DataMember.js +0 -208
- package/dist/runtime/entity/GNMetadata.js +0 -11
- package/dist/runtime/entity/InvalidMember.js +0 -1
- package/dist/runtime/entity/OperationEvent.js +0 -24
- package/dist/runtime/entity/OperationRequest.js +0 -42
- package/dist/runtime/entity/OperationResponse.js +0 -73
- package/dist/runtime/entity/models/AuthenticateModels.js +0 -426
- package/dist/runtime/entity/models/AuthenticateRequestModels.js +0 -188
- package/dist/runtime/entity/models/AuthenticateResponseModels.js +0 -131
- package/dist/runtime/entity/models/CharacterPlayerModels.js +0 -1433
- package/dist/runtime/entity/models/CharacterPlayerRequestModels.js +0 -1386
- package/dist/runtime/entity/models/CharacterPlayerResponseModels.js +0 -376
- package/dist/runtime/entity/models/CloudScriptModels.js +0 -197
- package/dist/runtime/entity/models/CloudScriptRequestModels.js +0 -138
- package/dist/runtime/entity/models/CloudScriptResponseModels.js +0 -40
- package/dist/runtime/entity/models/ContentModels.js +0 -203
- package/dist/runtime/entity/models/ContentRequestModels.js +0 -190
- package/dist/runtime/entity/models/ContentResponseModels.js +0 -54
- package/dist/runtime/entity/models/DashboardModels.js +0 -3002
- package/dist/runtime/entity/models/DashboardRequestModels.js +0 -268
- package/dist/runtime/entity/models/DashboardResponseModels.js +0 -187
- package/dist/runtime/entity/models/GamePlayerModels.js +0 -1591
- package/dist/runtime/entity/models/GamePlayerRequestModels.js +0 -1360
- package/dist/runtime/entity/models/GamePlayerResponseModels.js +0 -369
- package/dist/runtime/entity/models/GenericModels.js +0 -177
- package/dist/runtime/entity/models/GroupModels.js +0 -1135
- package/dist/runtime/entity/models/GroupRequestModels.js +0 -1048
- package/dist/runtime/entity/models/GroupResponseModels.js +0 -285
- package/dist/runtime/entity/models/InventoryModels.js +0 -915
- package/dist/runtime/entity/models/InventoryRequestModels.js +0 -892
- package/dist/runtime/entity/models/InventoryResponseModels.js +0 -243
- package/dist/runtime/entity/models/MasterPlayerModels.js +0 -2573
- package/dist/runtime/entity/models/MasterPlayerRequestModels.js +0 -2228
- package/dist/runtime/entity/models/MasterPlayerResponseModels.js +0 -607
- package/dist/runtime/entity/models/MultiplayerModels.js +0 -404
- package/dist/runtime/entity/models/MultiplayerRequestModels.js +0 -268
- package/dist/runtime/entity/models/MultiplayerResponseModels.js +0 -75
- package/dist/runtime/entity/models/StoreInventoryModels.js +0 -797
- package/dist/runtime/entity/models/StoreInventoryRequestModels.js +0 -372
- package/dist/runtime/entity/models/StoreInventoryResponseModels.js +0 -103
- package/dist/runtime/entity/request/CustomOperationRequest.js +0 -24
- package/dist/runtime/entity/response/CustomOperationResponse.js +0 -29
- package/dist/runtime/entity/response/GetAuthInfoResponse.js +0 -2
- package/dist/runtime/entity/response/HealthCheckResponse.js +0 -2
- package/dist/runtime/entity/response/UploadFileResponse.js +0 -2
- package/dist/runtime/helper/CodeHelper.js +0 -63
- package/dist/runtime/helper/ConverterService.js +0 -275
- package/dist/runtime/helper/EnumUtility.js +0 -33
- package/dist/runtime/helper/GNSupport.js +0 -47
- package/dist/runtime/helper/GNUtils.js +0 -72
- package/dist/runtime/helper/MessagePackConverterService.js +0 -9
- package/dist/runtime/helper/OperationHelper.js +0 -24
- package/dist/runtime/helper/StorageService.js +0 -62
- package/dist/runtime/logger/GNDebug.js +0 -29
- package/dist/runtime/networking/AuthenticateStatus.js +0 -14
- package/dist/runtime/networking/IPeer.js +0 -1
- package/dist/runtime/networking/NetworkingPeer.js +0 -210
- package/dist/runtime/networking/OperationPending.js +0 -53
- package/dist/runtime/networking/PeerBase.js +0 -161
- package/dist/runtime/networking/handler/IServerEventHandler.js +0 -13
- package/dist/runtime/networking/handler/OnCharacterPlayerFriendUpdateEventHandler.js +0 -39
- package/dist/runtime/networking/handler/OnCharacterPlayerGroupUpdateEventHandler.js +0 -39
- package/dist/runtime/networking/handler/OnGamePlayerFriendUpdateEventHandler.js +0 -39
- package/dist/runtime/networking/handler/OnGamePlayerGroupUpdateEventHandler.js +0 -39
- package/dist/runtime/networking/handler/OnGroupMemberUpdateEventHandler.js +0 -35
- package/dist/runtime/networking/handler/OnGroupMessageUpdateEventHandler.js +0 -43
- package/dist/runtime/networking/http/HttpPeer.js +0 -123
- package/dist/runtime/networking/http/NetworkingHttpPeerBase.js +0 -9
- package/dist/runtime/networking/http/NetworkingPeerAxiosRequest.js +0 -179
- package/dist/runtime/networking/socket/NetworkingPeerSocketIOClient.js +0 -130
- package/dist/runtime/networking/socket/NetworkingSocketPeerBase.js +0 -165
- package/dist/runtime/networking/socket/SocketPeer.js +0 -115
- package/dist/runtime/typescript/ServiceUpdate.js +0 -22
- package/docs/COCOS_CREATOR_INTEGRATION.md +0 -116
- package/examples/cocos-creator/GearNExample.ts.txt +0 -176
- package/srcSwift/Package.swift +0 -32
- package/srcSwift/Sources/GearN/runtime/GNNetwork.swift +0 -530
- package/srcSwift/Sources/GearN/runtime/GNNetworkAuthenticateApi.swift +0 -178
- package/srcSwift/Sources/GearN/runtime/GNNetworkCharacterPlayerApi.swift +0 -1162
- package/srcSwift/Sources/GearN/runtime/GNNetworkCloudScriptApi.swift +0 -154
- package/srcSwift/Sources/GearN/runtime/GNNetworkContentApi.swift +0 -208
- package/srcSwift/Sources/GearN/runtime/GNNetworkDashboardApi.swift +0 -240
- package/srcSwift/Sources/GearN/runtime/GNNetworkGamePlayerApi.swift +0 -1369
- package/srcSwift/Sources/GearN/runtime/GNNetworkGroupApi.swift +0 -1100
- package/srcSwift/Sources/GearN/runtime/GNNetworkInventoryApi.swift +0 -937
- package/srcSwift/Sources/GearN/runtime/GNNetworkMasterPlayerApi.swift +0 -2323
- package/srcSwift/Sources/GearN/runtime/GNNetworkMultiplayerApi.swift +0 -298
- package/srcSwift/Sources/GearN/runtime/GNNetworkStoreInventoryApi.swift +0 -397
- package/srcSwift/Sources/GearN/runtime/common/Action0.swift +0 -3
- package/srcSwift/Sources/GearN/runtime/common/Action1.swift +0 -3
- package/srcSwift/Sources/GearN/runtime/common/Action2.swift +0 -3
- package/srcSwift/Sources/GearN/runtime/common/Action3.swift +0 -3
- package/srcSwift/Sources/GearN/runtime/common/Action4.swift +0 -3
- package/srcSwift/Sources/GearN/runtime/common/GNArray.swift +0 -204
- package/srcSwift/Sources/GearN/runtime/common/GNData.swift +0 -108
- package/srcSwift/Sources/GearN/runtime/common/GNHashtable.swift +0 -200
- package/srcSwift/Sources/GearN/runtime/config/GNServerSettings.swift +0 -95
- package/srcSwift/Sources/GearN/runtime/constant/Commands.swift +0 -28
- package/srcSwift/Sources/GearN/runtime/constant/EventCode.swift +0 -10
- package/srcSwift/Sources/GearN/runtime/constant/OperationCode.swift +0 -252
- package/srcSwift/Sources/GearN/runtime/constant/ReturnCode.swift +0 -19
- package/srcSwift/Sources/GearN/runtime/constant/enumType/ExecuteResponseStatus.swift +0 -9
- package/srcSwift/Sources/GearN/runtime/constant/enumType/FriendStatus.swift +0 -8
- package/srcSwift/Sources/GearN/runtime/constant/enumType/GoogleLoginType.swift +0 -6
- package/srcSwift/Sources/GearN/runtime/constant/enumType/GroupStatus.swift +0 -8
- package/srcSwift/Sources/GearN/runtime/constant/enumType/InvalidMemberType.swift +0 -19
- package/srcSwift/Sources/GearN/runtime/constant/enumType/ItemType.swift +0 -6
- package/srcSwift/Sources/GearN/runtime/constant/enumType/MatchmakingMemberStatus.swift +0 -7
- package/srcSwift/Sources/GearN/runtime/constant/enumType/MatchmakingTicketStatus.swift +0 -9
- package/srcSwift/Sources/GearN/runtime/constant/enumType/OwnerType.swift +0 -10
- package/srcSwift/Sources/GearN/runtime/constant/enumType/PermissionDataItem.swift +0 -6
- package/srcSwift/Sources/GearN/runtime/constant/enumType/PushPlatformType.swift +0 -6
- package/srcSwift/Sources/GearN/runtime/constant/enumType/RequestRole.swift +0 -7
- package/srcSwift/Sources/GearN/runtime/constant/enumType/RequestType.swift +0 -16
- package/srcSwift/Sources/GearN/runtime/constant/enumType/StoreItemType.swift +0 -6
- package/srcSwift/Sources/GearN/runtime/constant/enumType/StoreReceiveType.swift +0 -9
- package/srcSwift/Sources/GearN/runtime/constant/errorCode/ErrorCode.swift +0 -58
- package/srcSwift/Sources/GearN/runtime/constant/parameterCode/ParameterCode.swift +0 -672
- package/srcSwift/Sources/GearN/runtime/entity/DataMember.swift +0 -196
- package/srcSwift/Sources/GearN/runtime/entity/GNMetadata.swift +0 -9
- package/srcSwift/Sources/GearN/runtime/entity/InvalidMember.swift +0 -11
- package/srcSwift/Sources/GearN/runtime/entity/OperationEvent.swift +0 -38
- package/srcSwift/Sources/GearN/runtime/entity/OperationHelper.swift +0 -28
- package/srcSwift/Sources/GearN/runtime/entity/OperationRequest.swift +0 -62
- package/srcSwift/Sources/GearN/runtime/entity/OperationResponse.swift +0 -98
- package/srcSwift/Sources/GearN/runtime/entity/models/AuthenticateModels.swift +0 -351
- package/srcSwift/Sources/GearN/runtime/entity/models/AuthenticateRequestModels.swift +0 -81
- package/srcSwift/Sources/GearN/runtime/entity/models/AuthenticateResponseModels.swift +0 -108
- package/srcSwift/Sources/GearN/runtime/entity/models/CharacterPlayerModels.swift +0 -1045
- package/srcSwift/Sources/GearN/runtime/entity/models/CharacterPlayerRequestModels.swift +0 -821
- package/srcSwift/Sources/GearN/runtime/entity/models/CharacterPlayerResponseModels.swift +0 -588
- package/srcSwift/Sources/GearN/runtime/entity/models/CloudScriptModels.swift +0 -187
- package/srcSwift/Sources/GearN/runtime/entity/models/CloudScriptRequestModels.swift +0 -84
- package/srcSwift/Sources/GearN/runtime/entity/models/CloudScriptResponseModels.swift +0 -59
- package/srcSwift/Sources/GearN/runtime/entity/models/ContentModels.swift +0 -195
- package/srcSwift/Sources/GearN/runtime/entity/models/ContentRequestModels.swift +0 -116
- package/srcSwift/Sources/GearN/runtime/entity/models/ContentResponseModels.swift +0 -81
- package/srcSwift/Sources/GearN/runtime/entity/models/DashboardModels.swift +0 -426
- package/srcSwift/Sources/GearN/runtime/entity/models/DashboardRequestModels.swift +0 -160
- package/srcSwift/Sources/GearN/runtime/entity/models/DashboardResponseModels.swift +0 -82
- package/srcSwift/Sources/GearN/runtime/entity/models/GamePlayerModels.swift +0 -1334
- package/srcSwift/Sources/GearN/runtime/entity/models/GamePlayerRequestModels.swift +0 -643
- package/srcSwift/Sources/GearN/runtime/entity/models/GamePlayerResponseModels.swift +0 -213
- package/srcSwift/Sources/GearN/runtime/entity/models/GenericModels.swift +0 -171
- package/srcSwift/Sources/GearN/runtime/entity/models/GroupModels.swift +0 -850
- package/srcSwift/Sources/GearN/runtime/entity/models/GroupRequestModels.swift +0 -485
- package/srcSwift/Sources/GearN/runtime/entity/models/GroupResponseModels.swift +0 -165
- package/srcSwift/Sources/GearN/runtime/entity/models/InventoryModels.swift +0 -679
- package/srcSwift/Sources/GearN/runtime/entity/models/InventoryRequestModels.swift +0 -413
- package/srcSwift/Sources/GearN/runtime/entity/models/InventoryResponseModels.swift +0 -141
- package/srcSwift/Sources/GearN/runtime/entity/models/MasterPlayerModels.swift +0 -378
- package/srcSwift/Sources/GearN/runtime/entity/models/MasterPlayerRequestModels.swift +0 -147
- package/srcSwift/Sources/GearN/runtime/entity/models/MasterPlayerResponseModels.swift +0 -318
- package/srcSwift/Sources/GearN/runtime/entity/models/MultiplayerModels.swift +0 -319
- package/srcSwift/Sources/GearN/runtime/entity/models/MultiplayerRequestModels.swift +0 -125
- package/srcSwift/Sources/GearN/runtime/entity/models/MultiplayerResponseModels.swift +0 -45
- package/srcSwift/Sources/GearN/runtime/entity/models/StoreInventoryModels.swift +0 -633
- package/srcSwift/Sources/GearN/runtime/entity/models/StoreInventoryRequestModels.swift +0 -173
- package/srcSwift/Sources/GearN/runtime/entity/models/StoreInventoryResponseModels.swift +0 -61
- package/srcSwift/Sources/GearN/runtime/entity/request/CustomOperationRequest.swift +0 -42
- package/srcSwift/Sources/GearN/runtime/entity/response/CustomOperationResponse.swift +0 -49
- package/srcSwift/Sources/GearN/runtime/entity/response/GetAuthInfoResponse.swift +0 -43
- package/srcSwift/Sources/GearN/runtime/entity/response/HealthCheckResponse.swift +0 -86
- package/srcSwift/Sources/GearN/runtime/entity/response/UploadFileResponse.swift +0 -15
- package/srcSwift/Sources/GearN/runtime/helper/CodeHelper.swift +0 -107
- package/srcSwift/Sources/GearN/runtime/helper/ConverterService.swift +0 -98
- package/srcSwift/Sources/GearN/runtime/helper/EnumUtility.swift +0 -34
- package/srcSwift/Sources/GearN/runtime/helper/GNSupport.swift +0 -41
- package/srcSwift/Sources/GearN/runtime/helper/GNUtils.swift +0 -66
- package/srcSwift/Sources/GearN/runtime/helper/MessagePackConverterService.swift +0 -21
- package/srcSwift/Sources/GearN/runtime/helper/StorageService.swift +0 -29
- package/srcSwift/Sources/GearN/runtime/logger/GNDebug.swift +0 -33
- package/srcSwift/Sources/GearN/runtime/networking/AuthenticateStatus.swift +0 -24
- package/srcSwift/Sources/GearN/runtime/networking/IPeer.swift +0 -8
- package/srcSwift/Sources/GearN/runtime/networking/NetworkingPeer.swift +0 -368
- package/srcSwift/Sources/GearN/runtime/networking/OperationPending.swift +0 -81
- package/srcSwift/Sources/GearN/runtime/networking/PeerBase.swift +0 -228
- package/srcSwift/Sources/GearN/runtime/networking/handler/IServerEventHandler.swift +0 -20
- package/srcSwift/Sources/GearN/runtime/networking/http/HttpPeer.swift +0 -226
- package/srcSwift/Sources/GearN/runtime/networking/http/HttpTypes.swift +0 -24
- package/srcSwift/Sources/GearN/runtime/networking/http/NetworkingHttpPeerBase.swift +0 -13
- package/srcSwift/Sources/GearN/runtime/networking/http/NetworkingPeerUrlSession.swift +0 -125
- package/srcSwift/Sources/GearN/runtime/networking/request/NetRequest.swift +0 -19
- package/srcSwift/Sources/GearN/runtime/networking/response/NetResponse.swift +0 -13
- package/srcSwift/Sources/GearN/runtime/networking/socket/NetworkingPeerSocketIOClient.swift +0 -244
- package/srcSwift/Sources/GearN/runtime/networking/socket/NetworkingSocketPeerBase.swift +0 -59
- package/srcSwift/Sources/GearN/runtime/networking/socket/SocketPeer.swift +0 -136
- package/tsconfig-build.cocos.json +0 -31
- package/webpack.config.cocos.mjs +0 -78
|
@@ -1,159 +1,358 @@
|
|
|
1
1
|
import { GNHashtable } from "./../../common/GNData";
|
|
2
|
+
/**
|
|
3
|
+
* Reusable request and response DTOs for the Multiplayer
|
|
4
|
+
* domain.
|
|
5
|
+
*
|
|
6
|
+
* Standard matchmaking flow:
|
|
7
|
+
*
|
|
8
|
+
* ```
|
|
9
|
+
* createMatchmakingTicket → returns ticketId
|
|
10
|
+
* ↓ (poll, or rely on ticket-update push if available)
|
|
11
|
+
* getMatchmakingTicket → ticket transitions through
|
|
12
|
+
* MatchmakingTicketStatus values
|
|
13
|
+
* ↓ (status === Matched)
|
|
14
|
+
* getMatch → returns match record + connection
|
|
15
|
+
* details
|
|
16
|
+
* ↓ (out of band)
|
|
17
|
+
* application connects to the dedicated game server
|
|
18
|
+
* ```
|
|
19
|
+
*
|
|
20
|
+
* Three role variants per operation:
|
|
21
|
+
* - **Client** (no prefix): used by `GNNetwork.multiplayer`,
|
|
22
|
+
* the acting player is the authenticated user.
|
|
23
|
+
* - **`Server*`**: used by `GNNetwork.multiplayer.server`,
|
|
24
|
+
* typically by dedicated servers reporting match completion
|
|
25
|
+
* or matchmaking adjuncts cleaning up stale tickets.
|
|
26
|
+
* - **`Admin*`**: used by `GNNetwork.multiplayer.admin`,
|
|
27
|
+
* reserved for monitoring / force-cancel tooling.
|
|
28
|
+
*
|
|
29
|
+
* The DTOs reference {@link MatchStatus},
|
|
30
|
+
* {@link MatchmakingTicketStatus} and
|
|
31
|
+
* {@link MatchmakingMemberStatus} enums for the lifecycle
|
|
32
|
+
* fields.
|
|
33
|
+
*/
|
|
2
34
|
export declare namespace MultiplayerModels {
|
|
35
|
+
/**
|
|
36
|
+
* Defines the request payload for CancelAllMatchmakingTicket.
|
|
37
|
+
*/
|
|
3
38
|
class CancelAllMatchmakingTicketRequestData {
|
|
4
39
|
queueName: string;
|
|
5
40
|
}
|
|
41
|
+
/**
|
|
42
|
+
* Defines the request payload for ServerCancelAllMatchmakingTicket.
|
|
43
|
+
*/
|
|
6
44
|
class ServerCancelAllMatchmakingTicketRequestData extends CancelAllMatchmakingTicketRequestData {
|
|
7
45
|
userId: string;
|
|
8
46
|
}
|
|
47
|
+
/**
|
|
48
|
+
* Defines the request payload for AdminCancelAllMatchmakingTicket.
|
|
49
|
+
*/
|
|
9
50
|
class AdminCancelAllMatchmakingTicketRequestData extends ServerCancelAllMatchmakingTicketRequestData {
|
|
10
51
|
}
|
|
52
|
+
/**
|
|
53
|
+
* Defines the request payload for CancelMatchmakingTicket.
|
|
54
|
+
*/
|
|
11
55
|
class CancelMatchmakingTicketRequestData {
|
|
12
56
|
ticketId: string;
|
|
13
57
|
}
|
|
58
|
+
/**
|
|
59
|
+
* Defines the request payload for ServerCancelMatchmakingTicket.
|
|
60
|
+
*/
|
|
14
61
|
class ServerCancelMatchmakingTicketRequestData extends CancelMatchmakingTicketRequestData {
|
|
15
62
|
userId: string;
|
|
16
63
|
}
|
|
64
|
+
/**
|
|
65
|
+
* Defines the request payload for AdminCancelMatchmakingTicket.
|
|
66
|
+
*/
|
|
17
67
|
class AdminCancelMatchmakingTicketRequestData extends ServerCancelMatchmakingTicketRequestData {
|
|
18
68
|
}
|
|
69
|
+
/**
|
|
70
|
+
* Creates a new matchmaking ticket for the current or target player.
|
|
71
|
+
*/
|
|
19
72
|
class CreateMatchmakingTicketRequestData {
|
|
73
|
+
/**
|
|
74
|
+
* Maximum wait time before the ticket gives up.
|
|
75
|
+
*/
|
|
20
76
|
giveUpAfterSeconds: number;
|
|
21
77
|
queueName: string;
|
|
78
|
+
/**
|
|
79
|
+
* Backend-defined matchmaking attribute payload.
|
|
80
|
+
*/
|
|
22
81
|
attribute?: GNHashtable;
|
|
82
|
+
/**
|
|
83
|
+
* Optional extra members joined into the same matchmaking party.
|
|
84
|
+
*/
|
|
23
85
|
members?: Array<string>;
|
|
24
86
|
}
|
|
87
|
+
/**
|
|
88
|
+
* Defines the request payload for ServerCreateMatchmakingTicket.
|
|
89
|
+
*/
|
|
25
90
|
class ServerCreateMatchmakingTicketRequestData extends CreateMatchmakingTicketRequestData {
|
|
26
91
|
userId: string;
|
|
27
92
|
}
|
|
93
|
+
/**
|
|
94
|
+
* Defines the request payload for AdminCreateMatchmakingTicket.
|
|
95
|
+
*/
|
|
28
96
|
class AdminCreateMatchmakingTicketRequestData extends ServerCreateMatchmakingTicketRequestData {
|
|
29
97
|
}
|
|
98
|
+
/**
|
|
99
|
+
* Polls the current state of one matchmaking ticket.
|
|
100
|
+
*/
|
|
30
101
|
class GetMatchmakingTicketRequestData {
|
|
31
102
|
ticketId: string;
|
|
103
|
+
/**
|
|
104
|
+
* Requests member details in addition to the ticket summary.
|
|
105
|
+
*/
|
|
32
106
|
returnMember?: boolean;
|
|
33
107
|
}
|
|
108
|
+
/**
|
|
109
|
+
* Defines the request payload for ServerGetMatchmakingTicket.
|
|
110
|
+
*/
|
|
34
111
|
class ServerGetMatchmakingTicketRequestData extends GetMatchmakingTicketRequestData {
|
|
35
112
|
}
|
|
113
|
+
/**
|
|
114
|
+
* Defines the request payload for AdminGetMatchmakingTicket.
|
|
115
|
+
*/
|
|
36
116
|
class AdminGetMatchmakingTicketRequestData extends ServerGetMatchmakingTicketRequestData {
|
|
37
117
|
}
|
|
118
|
+
/**
|
|
119
|
+
* Reads a match after matchmaking has produced a `matchId`.
|
|
120
|
+
*/
|
|
38
121
|
class GetMatchRequestData {
|
|
39
122
|
matchId: string;
|
|
123
|
+
/**
|
|
124
|
+
* Requests member details in addition to the match summary.
|
|
125
|
+
*/
|
|
40
126
|
returnMember?: boolean;
|
|
41
127
|
}
|
|
128
|
+
/**
|
|
129
|
+
* Defines the request payload for ServerGetMatch.
|
|
130
|
+
*/
|
|
42
131
|
class ServerGetMatchRequestData extends GetMatchRequestData {
|
|
43
132
|
}
|
|
133
|
+
/**
|
|
134
|
+
* Defines the request payload for AdminGetMatch.
|
|
135
|
+
*/
|
|
44
136
|
class AdminGetMatchRequestData extends ServerGetMatchRequestData {
|
|
45
137
|
}
|
|
138
|
+
/**
|
|
139
|
+
* Defines the request payload for GetAllMatch.
|
|
140
|
+
*/
|
|
46
141
|
class GetAllMatchRequestData {
|
|
47
142
|
returnMember?: boolean;
|
|
48
143
|
skip?: number;
|
|
49
144
|
limit?: number;
|
|
50
145
|
}
|
|
146
|
+
/**
|
|
147
|
+
* Defines the request payload for ServerGetAllMatch.
|
|
148
|
+
*/
|
|
51
149
|
class ServerGetAllMatchRequestData extends GetAllMatchRequestData {
|
|
52
150
|
}
|
|
151
|
+
/**
|
|
152
|
+
* Defines the request payload for AdminGetAllMatch.
|
|
153
|
+
*/
|
|
53
154
|
class AdminGetAllMatchRequestData extends ServerGetAllMatchRequestData {
|
|
54
155
|
}
|
|
156
|
+
/**
|
|
157
|
+
* Lists matchmaking tickets with optional status filtering.
|
|
158
|
+
*/
|
|
55
159
|
class GetAllMatchmakingTicketRequestData {
|
|
160
|
+
/**
|
|
161
|
+
* Ticket status filter mapped by the public `MatchmakingTicketStatus` enum.
|
|
162
|
+
*/
|
|
56
163
|
status?: number;
|
|
57
164
|
returnMember?: boolean;
|
|
58
165
|
skip?: number;
|
|
59
166
|
limit?: number;
|
|
60
167
|
}
|
|
168
|
+
/**
|
|
169
|
+
* Defines the request payload for ServerGetAllMatchmakingTicket.
|
|
170
|
+
*/
|
|
61
171
|
class ServerGetAllMatchmakingTicketRequestData extends GetAllMatchmakingTicketRequestData {
|
|
62
172
|
}
|
|
173
|
+
/**
|
|
174
|
+
* Defines the request payload for AdminGetAllMatchmakingTicket.
|
|
175
|
+
*/
|
|
63
176
|
class AdminGetAllMatchmakingTicketRequestData extends ServerGetAllMatchmakingTicketRequestData {
|
|
64
177
|
}
|
|
178
|
+
/**
|
|
179
|
+
* Defines the request payload for GetQueueStatistics.
|
|
180
|
+
*/
|
|
65
181
|
class GetQueueStatisticsRequestData {
|
|
66
182
|
queueName: string;
|
|
67
183
|
timeInSeconds: number;
|
|
68
184
|
}
|
|
185
|
+
/**
|
|
186
|
+
* Defines the request payload for ServerGetQueueStatistics.
|
|
187
|
+
*/
|
|
69
188
|
class ServerGetQueueStatisticsRequestData extends GetQueueStatisticsRequestData {
|
|
70
189
|
}
|
|
190
|
+
/**
|
|
191
|
+
* Defines the request payload for AdminGetQueueStatistics.
|
|
192
|
+
*/
|
|
71
193
|
class AdminGetQueueStatisticsRequestData extends ServerGetQueueStatisticsRequestData {
|
|
72
194
|
}
|
|
195
|
+
/**
|
|
196
|
+
* Defines the request payload for JoinMatchmakingTicket.
|
|
197
|
+
*/
|
|
73
198
|
class JoinMatchmakingTicketRequestData {
|
|
74
199
|
ticketId: string;
|
|
75
200
|
attribute?: GNHashtable;
|
|
76
201
|
}
|
|
202
|
+
/**
|
|
203
|
+
* Defines the request payload for ServerJoinMatchmakingTicket.
|
|
204
|
+
*/
|
|
77
205
|
class ServerJoinMatchmakingTicketRequestData extends JoinMatchmakingTicketRequestData {
|
|
78
206
|
userId: string;
|
|
79
207
|
}
|
|
208
|
+
/**
|
|
209
|
+
* Defines the request payload for AdminJoinMatchmakingTicket.
|
|
210
|
+
*/
|
|
80
211
|
class AdminJoinMatchmakingTicketRequestData extends ServerJoinMatchmakingTicketRequestData {
|
|
81
212
|
}
|
|
213
|
+
/**
|
|
214
|
+
* Lists ticket IDs for the current or target player within one queue.
|
|
215
|
+
*/
|
|
82
216
|
class ListMatchmakingTicketsForPlayerRequestData {
|
|
83
217
|
queueName: string;
|
|
84
218
|
}
|
|
219
|
+
/**
|
|
220
|
+
* Defines the request payload for ServerListMatchmakingTicketsForPlayer.
|
|
221
|
+
*/
|
|
85
222
|
class ServerListMatchmakingTicketsForPlayerRequestData extends ListMatchmakingTicketsForPlayerRequestData {
|
|
86
223
|
userId: string;
|
|
87
224
|
}
|
|
225
|
+
/**
|
|
226
|
+
* Defines the request payload for AdminListMatchmakingTicketsForPlayer.
|
|
227
|
+
*/
|
|
88
228
|
class AdminListMatchmakingTicketsForPlayerRequestData extends ServerListMatchmakingTicketsForPlayerRequestData {
|
|
89
229
|
}
|
|
230
|
+
/**
|
|
231
|
+
* Defines the response payload for CancelAllMatchmakingTicket.
|
|
232
|
+
*/
|
|
90
233
|
class CancelAllMatchmakingTicketResponseData {
|
|
91
234
|
ticketIds: Array<string>;
|
|
92
235
|
}
|
|
236
|
+
/**
|
|
237
|
+
* Defines the response payload for CreateMatchmakingTicket.
|
|
238
|
+
*/
|
|
93
239
|
class CreateMatchmakingTicketResponseData {
|
|
94
240
|
ticketId: string;
|
|
95
241
|
}
|
|
242
|
+
/**
|
|
243
|
+
* Describes one member attached to a matchmaking ticket.
|
|
244
|
+
*/
|
|
96
245
|
class MatchmakingTicketMember {
|
|
97
246
|
userId: string;
|
|
247
|
+
/**
|
|
248
|
+
* Member status value defined by backend matchmaking semantics.
|
|
249
|
+
*/
|
|
98
250
|
status: number;
|
|
99
251
|
attribute: GNHashtable;
|
|
100
252
|
}
|
|
253
|
+
/**
|
|
254
|
+
* Describes the current state of a matchmaking ticket.
|
|
255
|
+
*/
|
|
101
256
|
class MatchmakingTicketResponseData {
|
|
102
257
|
tsCreate: number;
|
|
103
258
|
creatorId: string;
|
|
104
259
|
giveUpAfterSeconds: number;
|
|
105
260
|
queueName: string;
|
|
261
|
+
/**
|
|
262
|
+
* Ticket status mapped by the public `MatchmakingTicketStatus` enum.
|
|
263
|
+
*/
|
|
106
264
|
status: number;
|
|
107
265
|
matchId?: string;
|
|
108
266
|
members?: Array<MatchmakingTicketMember>;
|
|
109
267
|
}
|
|
268
|
+
/**
|
|
269
|
+
* Defines the response payload for MatchmakingTicketWithTicketId.
|
|
270
|
+
*/
|
|
110
271
|
class MatchmakingTicketWithTicketIdResponseData extends MatchmakingTicketResponseData {
|
|
111
272
|
ticketId: string;
|
|
112
273
|
}
|
|
274
|
+
/**
|
|
275
|
+
* Defines the response payload for GetMatchmakingTicket.
|
|
276
|
+
*/
|
|
113
277
|
class GetMatchmakingTicketResponseData {
|
|
114
278
|
matchmakingTicket: MatchmakingTicketResponseData;
|
|
115
279
|
}
|
|
280
|
+
/**
|
|
281
|
+
* Describes one member attached to a resolved match.
|
|
282
|
+
*/
|
|
116
283
|
class MatchMember {
|
|
117
284
|
userId: string;
|
|
118
285
|
teamId: string;
|
|
119
286
|
attribute: GNHashtable;
|
|
120
287
|
}
|
|
288
|
+
/**
|
|
289
|
+
* Represents PortInfo.
|
|
290
|
+
*/
|
|
121
291
|
class PortInfo {
|
|
122
292
|
name: string;
|
|
123
293
|
publicPort: number;
|
|
124
294
|
privatePort: number;
|
|
125
295
|
protocol: number;
|
|
126
296
|
}
|
|
297
|
+
/**
|
|
298
|
+
* Represents ServerDetail.
|
|
299
|
+
*/
|
|
127
300
|
class ServerDetail {
|
|
128
301
|
ipV4Address: string;
|
|
129
302
|
ports: Array<PortInfo>;
|
|
130
303
|
}
|
|
304
|
+
/**
|
|
305
|
+
* Describes one resolved match.
|
|
306
|
+
* The public contract exposes queue/member data but does not include server endpoint fields here.
|
|
307
|
+
*/
|
|
131
308
|
class MatchResponseData {
|
|
132
309
|
tsCreate: number;
|
|
133
310
|
queueName: string;
|
|
134
311
|
members?: Array<MatchMember>;
|
|
135
312
|
timeToMatchInSeconds: number;
|
|
313
|
+
status: number;
|
|
136
314
|
}
|
|
315
|
+
/**
|
|
316
|
+
* Defines the response payload for MatchWithMatchId.
|
|
317
|
+
*/
|
|
137
318
|
class MatchWithMatchIdResponseData extends MatchResponseData {
|
|
138
319
|
matchId: string;
|
|
139
320
|
}
|
|
321
|
+
/**
|
|
322
|
+
* Defines the response payload for GetMatch.
|
|
323
|
+
*/
|
|
140
324
|
class GetMatchResponseData {
|
|
141
325
|
match: MatchResponseData;
|
|
142
326
|
}
|
|
327
|
+
/**
|
|
328
|
+
* Defines the response payload for GetQueueStatistics.
|
|
329
|
+
*/
|
|
143
330
|
class GetQueueStatisticsResponseData {
|
|
144
331
|
pendingMemberCount: number;
|
|
145
332
|
pendingTicketCount: number;
|
|
146
333
|
averageMatchmakingTimeInSeconds: number;
|
|
147
334
|
}
|
|
335
|
+
/**
|
|
336
|
+
* Defines the response payload for ListMatchmakingTicketsForPlayer.
|
|
337
|
+
*/
|
|
148
338
|
class ListMatchmakingTicketsForPlayerResponseData {
|
|
149
339
|
ticketIds: Array<string>;
|
|
150
340
|
}
|
|
341
|
+
/**
|
|
342
|
+
* Defines the response payload for GetAllMatch.
|
|
343
|
+
*/
|
|
151
344
|
class GetAllMatchResponseData {
|
|
152
345
|
results: Array<MatchWithMatchIdResponseData>;
|
|
153
346
|
}
|
|
347
|
+
/**
|
|
348
|
+
* Defines the response payload for GetAllMatchmakingTicket.
|
|
349
|
+
*/
|
|
154
350
|
class GetAllMatchmakingTicketResponseData {
|
|
155
351
|
results: Array<MatchmakingTicketWithTicketIdResponseData>;
|
|
156
352
|
}
|
|
353
|
+
/**
|
|
354
|
+
* Defines an intentionally empty response payload.
|
|
355
|
+
*/
|
|
157
356
|
class EmptyResponseData {
|
|
158
357
|
}
|
|
159
358
|
}
|
|
@@ -2,145 +2,341 @@ import { RequestRole } from "./../../constant/enumType/RequestRole";
|
|
|
2
2
|
import { RequestType } from "./../../constant/enumType/RequestType";
|
|
3
3
|
import { CustomOperationRequestAbstract } from "./../request/CustomOperationRequest";
|
|
4
4
|
import { MultiplayerModels } from "./MultiplayerModels";
|
|
5
|
+
/**
|
|
6
|
+
* Typed request wrappers for the Multiplayer domain.
|
|
7
|
+
*
|
|
8
|
+
* Each class extends {@link CustomOperationRequestAbstract} and
|
|
9
|
+
* binds a typed `*RequestData` DTO from
|
|
10
|
+
* {@link MultiplayerModels} to:
|
|
11
|
+
* - the matching {@link OperationCode};
|
|
12
|
+
* - the {@link RequestType.Multiplayer} domain;
|
|
13
|
+
* - the appropriate {@link RequestRole} based on the wrapper
|
|
14
|
+
* name prefix.
|
|
15
|
+
*
|
|
16
|
+
* Multiplayer wrappers always go through HTTP — once a ticket
|
|
17
|
+
* succeeds and the match record contains the dedicated-server
|
|
18
|
+
* connection details, the application connects to the
|
|
19
|
+
* realtime server out-of-band relative to the GearN SDK.
|
|
20
|
+
*/
|
|
5
21
|
export declare namespace MultiplayerRequestModels {
|
|
22
|
+
/**
|
|
23
|
+
* Maps the CancelAllMatchmakingTicket operation to a typed request wrapper.
|
|
24
|
+
*/
|
|
6
25
|
class CancelAllMatchmakingTicketOperationRequest extends CustomOperationRequestAbstract<MultiplayerModels.CancelAllMatchmakingTicketRequestData> {
|
|
7
26
|
protected operationCode: string;
|
|
8
27
|
protected requestType: RequestType;
|
|
9
28
|
protected role: RequestRole;
|
|
29
|
+
/**
|
|
30
|
+
* Creates a new CancelAllMatchmakingTicketOperationRequest instance.
|
|
31
|
+
*/
|
|
10
32
|
constructor(requestData: MultiplayerModels.CancelAllMatchmakingTicketRequestData, timeout: number);
|
|
11
33
|
}
|
|
34
|
+
/**
|
|
35
|
+
* Maps the ServerCancelAllMatchmakingTicket operation to a typed request wrapper.
|
|
36
|
+
*/
|
|
12
37
|
class ServerCancelAllMatchmakingTicketOperationRequest extends CancelAllMatchmakingTicketOperationRequest {
|
|
13
38
|
protected role: RequestRole;
|
|
39
|
+
/**
|
|
40
|
+
* Creates a new ServerCancelAllMatchmakingTicketOperationRequest instance.
|
|
41
|
+
*/
|
|
14
42
|
constructor(requestData: MultiplayerModels.ServerCancelAllMatchmakingTicketRequestData, timeout: number);
|
|
15
43
|
}
|
|
44
|
+
/**
|
|
45
|
+
* Maps the AdminCancelAllMatchmakingTicket operation to a typed request wrapper.
|
|
46
|
+
*/
|
|
16
47
|
class AdminCancelAllMatchmakingTicketOperationRequest extends CancelAllMatchmakingTicketOperationRequest {
|
|
17
48
|
protected role: RequestRole;
|
|
49
|
+
/**
|
|
50
|
+
* Creates a new AdminCancelAllMatchmakingTicketOperationRequest instance.
|
|
51
|
+
*/
|
|
18
52
|
constructor(requestData: MultiplayerModels.AdminCancelAllMatchmakingTicketRequestData, timeout: number);
|
|
19
53
|
}
|
|
54
|
+
/**
|
|
55
|
+
* Maps the CancelMatchmakingTicket operation to a typed request wrapper.
|
|
56
|
+
*/
|
|
20
57
|
class CancelMatchmakingTicketOperationRequest extends CustomOperationRequestAbstract<MultiplayerModels.CancelMatchmakingTicketRequestData> {
|
|
21
58
|
protected operationCode: string;
|
|
22
59
|
protected requestType: RequestType;
|
|
23
60
|
protected role: RequestRole;
|
|
61
|
+
/**
|
|
62
|
+
* Creates a new CancelMatchmakingTicketOperationRequest instance.
|
|
63
|
+
*/
|
|
24
64
|
constructor(requestData: MultiplayerModels.CancelMatchmakingTicketRequestData, timeout: number);
|
|
25
65
|
}
|
|
66
|
+
/**
|
|
67
|
+
* Maps the ServerCancelMatchmakingTicket operation to a typed request wrapper.
|
|
68
|
+
*/
|
|
26
69
|
class ServerCancelMatchmakingTicketOperationRequest extends CancelMatchmakingTicketOperationRequest {
|
|
27
70
|
protected role: RequestRole;
|
|
71
|
+
/**
|
|
72
|
+
* Creates a new ServerCancelMatchmakingTicketOperationRequest instance.
|
|
73
|
+
*/
|
|
28
74
|
constructor(requestData: MultiplayerModels.ServerCancelMatchmakingTicketRequestData, timeout: number);
|
|
29
75
|
}
|
|
76
|
+
/**
|
|
77
|
+
* Maps the AdminCancelMatchmakingTicket operation to a typed request wrapper.
|
|
78
|
+
*/
|
|
30
79
|
class AdminCancelMatchmakingTicketOperationRequest extends CancelMatchmakingTicketOperationRequest {
|
|
31
80
|
protected role: RequestRole;
|
|
81
|
+
/**
|
|
82
|
+
* Creates a new AdminCancelMatchmakingTicketOperationRequest instance.
|
|
83
|
+
*/
|
|
32
84
|
constructor(requestData: MultiplayerModels.AdminCancelMatchmakingTicketRequestData, timeout: number);
|
|
33
85
|
}
|
|
86
|
+
/**
|
|
87
|
+
* Maps the CreateMatchmakingTicket operation to a typed request wrapper.
|
|
88
|
+
*/
|
|
34
89
|
class CreateMatchmakingTicketOperationRequest extends CustomOperationRequestAbstract<MultiplayerModels.CreateMatchmakingTicketRequestData> {
|
|
35
90
|
protected operationCode: string;
|
|
36
91
|
protected requestType: RequestType;
|
|
37
92
|
protected role: RequestRole;
|
|
93
|
+
/**
|
|
94
|
+
* Creates a new CreateMatchmakingTicketOperationRequest instance.
|
|
95
|
+
*/
|
|
38
96
|
constructor(requestData: MultiplayerModels.CreateMatchmakingTicketRequestData, timeout: number);
|
|
39
97
|
}
|
|
98
|
+
/**
|
|
99
|
+
* Maps the ServerCreateMatchmakingTicket operation to a typed request wrapper.
|
|
100
|
+
*/
|
|
40
101
|
class ServerCreateMatchmakingTicketOperationRequest extends CreateMatchmakingTicketOperationRequest {
|
|
41
102
|
protected role: RequestRole;
|
|
103
|
+
/**
|
|
104
|
+
* Creates a new ServerCreateMatchmakingTicketOperationRequest instance.
|
|
105
|
+
*/
|
|
42
106
|
constructor(requestData: MultiplayerModels.ServerCreateMatchmakingTicketRequestData, timeout: number);
|
|
43
107
|
}
|
|
108
|
+
/**
|
|
109
|
+
* Maps the AdminCreateMatchmakingTicket operation to a typed request wrapper.
|
|
110
|
+
*/
|
|
44
111
|
class AdminCreateMatchmakingTicketOperationRequest extends CreateMatchmakingTicketOperationRequest {
|
|
45
112
|
protected role: RequestRole;
|
|
113
|
+
/**
|
|
114
|
+
* Creates a new AdminCreateMatchmakingTicketOperationRequest instance.
|
|
115
|
+
*/
|
|
46
116
|
constructor(requestData: MultiplayerModels.AdminCreateMatchmakingTicketRequestData, timeout: number);
|
|
47
117
|
}
|
|
118
|
+
/**
|
|
119
|
+
* Maps the GetMatchmakingTicket operation to a typed request wrapper.
|
|
120
|
+
*/
|
|
48
121
|
class GetMatchmakingTicketOperationRequest extends CustomOperationRequestAbstract<MultiplayerModels.GetMatchmakingTicketRequestData> {
|
|
49
122
|
protected operationCode: string;
|
|
50
123
|
protected requestType: RequestType;
|
|
51
124
|
protected role: RequestRole;
|
|
125
|
+
/**
|
|
126
|
+
* Creates a new GetMatchmakingTicketOperationRequest instance.
|
|
127
|
+
*/
|
|
52
128
|
constructor(requestData: MultiplayerModels.GetMatchmakingTicketRequestData, timeout: number);
|
|
53
129
|
}
|
|
130
|
+
/**
|
|
131
|
+
* Maps the ServerGetMatchmakingTicket operation to a typed request wrapper.
|
|
132
|
+
*/
|
|
54
133
|
class ServerGetMatchmakingTicketOperationRequest extends GetMatchmakingTicketOperationRequest {
|
|
55
134
|
protected role: RequestRole;
|
|
135
|
+
/**
|
|
136
|
+
* Creates a new ServerGetMatchmakingTicketOperationRequest instance.
|
|
137
|
+
*/
|
|
56
138
|
constructor(requestData: MultiplayerModels.ServerGetMatchmakingTicketRequestData, timeout: number);
|
|
57
139
|
}
|
|
140
|
+
/**
|
|
141
|
+
* Maps the AdminGetMatchmakingTicket operation to a typed request wrapper.
|
|
142
|
+
*/
|
|
58
143
|
class AdminGetMatchmakingTicketOperationRequest extends GetMatchmakingTicketOperationRequest {
|
|
59
144
|
protected role: RequestRole;
|
|
145
|
+
/**
|
|
146
|
+
* Creates a new AdminGetMatchmakingTicketOperationRequest instance.
|
|
147
|
+
*/
|
|
60
148
|
constructor(requestData: MultiplayerModels.AdminGetMatchmakingTicketRequestData, timeout: number);
|
|
61
149
|
}
|
|
150
|
+
/**
|
|
151
|
+
* Maps the GetMatch operation to a typed request wrapper.
|
|
152
|
+
*/
|
|
62
153
|
class GetMatchOperationRequest extends CustomOperationRequestAbstract<MultiplayerModels.GetMatchRequestData> {
|
|
63
154
|
protected operationCode: string;
|
|
64
155
|
protected requestType: RequestType;
|
|
65
156
|
protected role: RequestRole;
|
|
157
|
+
/**
|
|
158
|
+
* Creates a new GetMatchOperationRequest instance.
|
|
159
|
+
*/
|
|
66
160
|
constructor(requestData: MultiplayerModels.GetMatchRequestData, timeout: number);
|
|
67
161
|
}
|
|
162
|
+
/**
|
|
163
|
+
* Maps the ServerGetMatch operation to a typed request wrapper.
|
|
164
|
+
*/
|
|
68
165
|
class ServerGetMatchOperationRequest extends GetMatchOperationRequest {
|
|
69
166
|
protected role: RequestRole;
|
|
167
|
+
/**
|
|
168
|
+
* Creates a new ServerGetMatchOperationRequest instance.
|
|
169
|
+
*/
|
|
70
170
|
constructor(requestData: MultiplayerModels.ServerGetMatchRequestData, timeout: number);
|
|
71
171
|
}
|
|
172
|
+
/**
|
|
173
|
+
* Maps the AdminGetMatch operation to a typed request wrapper.
|
|
174
|
+
*/
|
|
72
175
|
class AdminGetMatchOperationRequest extends GetMatchOperationRequest {
|
|
73
176
|
protected role: RequestRole;
|
|
177
|
+
/**
|
|
178
|
+
* Creates a new AdminGetMatchOperationRequest instance.
|
|
179
|
+
*/
|
|
74
180
|
constructor(requestData: MultiplayerModels.AdminGetMatchRequestData, timeout: number);
|
|
75
181
|
}
|
|
182
|
+
/**
|
|
183
|
+
* Maps the GetQueueStatistics operation to a typed request wrapper.
|
|
184
|
+
*/
|
|
76
185
|
class GetQueueStatisticsOperationRequest extends CustomOperationRequestAbstract<MultiplayerModels.GetQueueStatisticsRequestData> {
|
|
77
186
|
protected operationCode: string;
|
|
78
187
|
protected requestType: RequestType;
|
|
79
188
|
protected role: RequestRole;
|
|
189
|
+
/**
|
|
190
|
+
* Creates a new GetQueueStatisticsOperationRequest instance.
|
|
191
|
+
*/
|
|
80
192
|
constructor(requestData: MultiplayerModels.GetQueueStatisticsRequestData, timeout: number);
|
|
81
193
|
}
|
|
194
|
+
/**
|
|
195
|
+
* Maps the ServerGetQueueStatistics operation to a typed request wrapper.
|
|
196
|
+
*/
|
|
82
197
|
class ServerGetQueueStatisticsOperationRequest extends GetQueueStatisticsOperationRequest {
|
|
83
198
|
protected role: RequestRole;
|
|
199
|
+
/**
|
|
200
|
+
* Creates a new ServerGetQueueStatisticsOperationRequest instance.
|
|
201
|
+
*/
|
|
84
202
|
constructor(requestData: MultiplayerModels.ServerGetQueueStatisticsRequestData, timeout: number);
|
|
85
203
|
}
|
|
204
|
+
/**
|
|
205
|
+
* Maps the AdminGetQueueStatistics operation to a typed request wrapper.
|
|
206
|
+
*/
|
|
86
207
|
class AdminGetQueueStatisticsOperationRequest extends GetQueueStatisticsOperationRequest {
|
|
87
208
|
protected role: RequestRole;
|
|
209
|
+
/**
|
|
210
|
+
* Creates a new AdminGetQueueStatisticsOperationRequest instance.
|
|
211
|
+
*/
|
|
88
212
|
constructor(requestData: MultiplayerModels.AdminGetQueueStatisticsRequestData, timeout: number);
|
|
89
213
|
}
|
|
214
|
+
/**
|
|
215
|
+
* Maps the JoinMatchmakingTicket operation to a typed request wrapper.
|
|
216
|
+
*/
|
|
90
217
|
class JoinMatchmakingTicketOperationRequest extends CustomOperationRequestAbstract<MultiplayerModels.JoinMatchmakingTicketRequestData> {
|
|
91
218
|
protected operationCode: string;
|
|
92
219
|
protected requestType: RequestType;
|
|
93
220
|
protected role: RequestRole;
|
|
221
|
+
/**
|
|
222
|
+
* Creates a new JoinMatchmakingTicketOperationRequest instance.
|
|
223
|
+
*/
|
|
94
224
|
constructor(requestData: MultiplayerModels.JoinMatchmakingTicketRequestData, timeout: number);
|
|
95
225
|
}
|
|
226
|
+
/**
|
|
227
|
+
* Maps the ServerJoinMatchmakingTicket operation to a typed request wrapper.
|
|
228
|
+
*/
|
|
96
229
|
class ServerJoinMatchmakingTicketOperationRequest extends JoinMatchmakingTicketOperationRequest {
|
|
97
230
|
protected role: RequestRole;
|
|
231
|
+
/**
|
|
232
|
+
* Creates a new ServerJoinMatchmakingTicketOperationRequest instance.
|
|
233
|
+
*/
|
|
98
234
|
constructor(requestData: MultiplayerModels.ServerJoinMatchmakingTicketRequestData, timeout: number);
|
|
99
235
|
}
|
|
236
|
+
/**
|
|
237
|
+
* Maps the AdminJoinMatchmakingTicket operation to a typed request wrapper.
|
|
238
|
+
*/
|
|
100
239
|
class AdminJoinMatchmakingTicketOperationRequest extends JoinMatchmakingTicketOperationRequest {
|
|
101
240
|
protected role: RequestRole;
|
|
241
|
+
/**
|
|
242
|
+
* Creates a new AdminJoinMatchmakingTicketOperationRequest instance.
|
|
243
|
+
*/
|
|
102
244
|
constructor(requestData: MultiplayerModels.AdminJoinMatchmakingTicketRequestData, timeout: number);
|
|
103
245
|
}
|
|
246
|
+
/**
|
|
247
|
+
* Maps the ListMatchmakingTicketsForPlayer operation to a typed request wrapper.
|
|
248
|
+
*/
|
|
104
249
|
class ListMatchmakingTicketsForPlayerOperationRequest extends CustomOperationRequestAbstract<MultiplayerModels.ListMatchmakingTicketsForPlayerRequestData> {
|
|
105
250
|
protected operationCode: string;
|
|
106
251
|
protected requestType: RequestType;
|
|
107
252
|
protected role: RequestRole;
|
|
253
|
+
/**
|
|
254
|
+
* Creates a new ListMatchmakingTicketsForPlayerOperationRequest instance.
|
|
255
|
+
*/
|
|
108
256
|
constructor(requestData: MultiplayerModels.ListMatchmakingTicketsForPlayerRequestData, timeout: number);
|
|
109
257
|
}
|
|
258
|
+
/**
|
|
259
|
+
* Maps the ServerListMatchmakingTicketsForPlayer operation to a typed request wrapper.
|
|
260
|
+
*/
|
|
110
261
|
class ServerListMatchmakingTicketsForPlayerOperationRequest extends ListMatchmakingTicketsForPlayerOperationRequest {
|
|
111
262
|
protected role: RequestRole;
|
|
263
|
+
/**
|
|
264
|
+
* Creates a new ServerListMatchmakingTicketsForPlayerOperationRequest instance.
|
|
265
|
+
*/
|
|
112
266
|
constructor(requestData: MultiplayerModels.ServerListMatchmakingTicketsForPlayerRequestData, timeout: number);
|
|
113
267
|
}
|
|
268
|
+
/**
|
|
269
|
+
* Maps the AdminListMatchmakingTicketsForPlayer operation to a typed request wrapper.
|
|
270
|
+
*/
|
|
114
271
|
class AdminListMatchmakingTicketsForPlayerOperationRequest extends ListMatchmakingTicketsForPlayerOperationRequest {
|
|
115
272
|
protected role: RequestRole;
|
|
273
|
+
/**
|
|
274
|
+
* Creates a new AdminListMatchmakingTicketsForPlayerOperationRequest instance.
|
|
275
|
+
*/
|
|
116
276
|
constructor(requestData: MultiplayerModels.AdminListMatchmakingTicketsForPlayerRequestData, timeout: number);
|
|
117
277
|
}
|
|
278
|
+
/**
|
|
279
|
+
* Maps the GetAllMatch operation to a typed request wrapper.
|
|
280
|
+
*/
|
|
118
281
|
class GetAllMatchOperationRequest extends CustomOperationRequestAbstract<MultiplayerModels.GetAllMatchRequestData> {
|
|
119
282
|
protected operationCode: string;
|
|
120
283
|
protected requestType: RequestType;
|
|
121
284
|
protected role: RequestRole;
|
|
285
|
+
/**
|
|
286
|
+
* Creates a new GetAllMatchOperationRequest instance.
|
|
287
|
+
*/
|
|
122
288
|
constructor(requestData: MultiplayerModels.GetAllMatchRequestData, timeout: number);
|
|
123
289
|
}
|
|
290
|
+
/**
|
|
291
|
+
* Maps the ServerGetAllMatch operation to a typed request wrapper.
|
|
292
|
+
*/
|
|
124
293
|
class ServerGetAllMatchOperationRequest extends GetAllMatchOperationRequest {
|
|
125
294
|
protected role: RequestRole;
|
|
295
|
+
/**
|
|
296
|
+
* Creates a new ServerGetAllMatchOperationRequest instance.
|
|
297
|
+
*/
|
|
126
298
|
constructor(requestData: MultiplayerModels.ServerGetAllMatchRequestData, timeout: number);
|
|
127
299
|
}
|
|
300
|
+
/**
|
|
301
|
+
* Maps the AdminGetAllMatch operation to a typed request wrapper.
|
|
302
|
+
*/
|
|
128
303
|
class AdminGetAllMatchOperationRequest extends GetAllMatchOperationRequest {
|
|
129
304
|
protected role: RequestRole;
|
|
305
|
+
/**
|
|
306
|
+
* Creates a new AdminGetAllMatchOperationRequest instance.
|
|
307
|
+
*/
|
|
130
308
|
constructor(requestData: MultiplayerModels.AdminGetAllMatchRequestData, timeout: number);
|
|
131
309
|
}
|
|
310
|
+
/**
|
|
311
|
+
* Maps the GetAllMatchmakingTicket operation to a typed request wrapper.
|
|
312
|
+
*/
|
|
132
313
|
class GetAllMatchmakingTicketOperationRequest extends CustomOperationRequestAbstract<MultiplayerModels.GetAllMatchmakingTicketRequestData> {
|
|
133
314
|
protected operationCode: string;
|
|
134
315
|
protected requestType: RequestType;
|
|
135
316
|
protected role: RequestRole;
|
|
317
|
+
/**
|
|
318
|
+
* Creates a new GetAllMatchmakingTicketOperationRequest instance.
|
|
319
|
+
*/
|
|
136
320
|
constructor(requestData: MultiplayerModels.GetAllMatchmakingTicketRequestData, timeout: number);
|
|
137
321
|
}
|
|
322
|
+
/**
|
|
323
|
+
* Maps the ServerGetAllMatchmakingTicket operation to a typed request wrapper.
|
|
324
|
+
*/
|
|
138
325
|
class ServerGetAllMatchmakingTicketOperationRequest extends GetAllMatchmakingTicketOperationRequest {
|
|
139
326
|
protected role: RequestRole;
|
|
327
|
+
/**
|
|
328
|
+
* Creates a new ServerGetAllMatchmakingTicketOperationRequest instance.
|
|
329
|
+
*/
|
|
140
330
|
constructor(requestData: MultiplayerModels.ServerGetAllMatchmakingTicketRequestData, timeout: number);
|
|
141
331
|
}
|
|
332
|
+
/**
|
|
333
|
+
* Maps the AdminGetAllMatchmakingTicket operation to a typed request wrapper.
|
|
334
|
+
*/
|
|
142
335
|
class AdminGetAllMatchmakingTicketOperationRequest extends GetAllMatchmakingTicketOperationRequest {
|
|
143
336
|
protected role: RequestRole;
|
|
337
|
+
/**
|
|
338
|
+
* Creates a new AdminGetAllMatchmakingTicketOperationRequest instance.
|
|
339
|
+
*/
|
|
144
340
|
constructor(requestData: MultiplayerModels.AdminGetAllMatchmakingTicketRequestData, timeout: number);
|
|
145
341
|
}
|
|
146
342
|
}
|