@xmobitea/gn-typescript-client 2.6.13 → 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 +25056 -1056
- package/dist/gearn.js.client.min.js +1 -1
- package/dist/index.d.ts +30 -0
- package/dist/index.js +24236 -212
- 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 +12 -3
- package/GNServerSettings.debug.json +0 -21
- 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,160 +1,492 @@
|
|
|
1
1
|
import { CustomOperationResponseAbstract } from "./../response/CustomOperationResponse";
|
|
2
2
|
import { GamePlayerModels } from "./GamePlayerModels";
|
|
3
|
+
/**
|
|
4
|
+
* Typed response wrappers for the GamePlayer domain.
|
|
5
|
+
*
|
|
6
|
+
* Each class extends {@link CustomOperationResponseAbstract}
|
|
7
|
+
* and binds a response DTO from {@link GamePlayerModels}. The
|
|
8
|
+
* same wrapper class is reused across the
|
|
9
|
+
* client / server / admin role variants because the response
|
|
10
|
+
* shape does not depend on which role issued the request.
|
|
11
|
+
*
|
|
12
|
+
* Many read operations resolve to a profile-style envelope
|
|
13
|
+
* (`GamePlayerResponseData` or a derived shape) whose
|
|
14
|
+
* `infoResponseParameters` field is gated by the matching
|
|
15
|
+
* request DTO's `infoRequestParam` flags — only the fields the
|
|
16
|
+
* caller asked for are populated.
|
|
17
|
+
*
|
|
18
|
+
* Application code reads the typed payload through
|
|
19
|
+
* `response.responseData` after confirming
|
|
20
|
+
* `response.hasReturnCodeError() === false` and
|
|
21
|
+
* `response.errorCode === ErrorCode.Ok`.
|
|
22
|
+
*/
|
|
3
23
|
export declare namespace GamePlayerResponseModels {
|
|
24
|
+
/**
|
|
25
|
+
* Maps the AddPlayerFriend operation to a typed response wrapper.
|
|
26
|
+
*/
|
|
4
27
|
class AddPlayerFriendOperationResponse extends CustomOperationResponseAbstract<GamePlayerModels.EmptyResponseData> {
|
|
28
|
+
/**
|
|
29
|
+
* Creates a new AddPlayerFriendOperationResponse instance.
|
|
30
|
+
*/
|
|
5
31
|
constructor();
|
|
6
32
|
}
|
|
33
|
+
/**
|
|
34
|
+
* Maps the AddSegment operation to a typed response wrapper.
|
|
35
|
+
*/
|
|
7
36
|
class AddSegmentOperationResponse extends CustomOperationResponseAbstract<GamePlayerModels.EmptyResponseData> {
|
|
37
|
+
/**
|
|
38
|
+
* Creates a new AddSegmentOperationResponse instance.
|
|
39
|
+
*/
|
|
8
40
|
constructor();
|
|
9
41
|
}
|
|
42
|
+
/**
|
|
43
|
+
* Maps the GetAvatar operation to a typed response wrapper.
|
|
44
|
+
*/
|
|
10
45
|
class GetAvatarOperationResponse extends CustomOperationResponseAbstract<GamePlayerModels.GamePlayerResponseData> {
|
|
46
|
+
/**
|
|
47
|
+
* Creates a new GetAvatarOperationResponse instance.
|
|
48
|
+
*/
|
|
11
49
|
constructor();
|
|
12
50
|
}
|
|
51
|
+
/**
|
|
52
|
+
* Maps the GetCountryCode operation to a typed response wrapper.
|
|
53
|
+
*/
|
|
13
54
|
class GetCountryCodeOperationResponse extends CustomOperationResponseAbstract<GamePlayerModels.GamePlayerResponseData> {
|
|
55
|
+
/**
|
|
56
|
+
* Creates a new GetCountryCodeOperationResponse instance.
|
|
57
|
+
*/
|
|
14
58
|
constructor();
|
|
15
59
|
}
|
|
60
|
+
/**
|
|
61
|
+
* Maps the GetCustomData operation to a typed response wrapper.
|
|
62
|
+
*/
|
|
16
63
|
class GetCustomDataOperationResponse extends CustomOperationResponseAbstract<GamePlayerModels.GamePlayerResponseData> {
|
|
64
|
+
/**
|
|
65
|
+
* Creates a new GetCustomDataOperationResponse instance.
|
|
66
|
+
*/
|
|
17
67
|
constructor();
|
|
18
68
|
}
|
|
69
|
+
/**
|
|
70
|
+
* Maps the GetDisplayName operation to a typed response wrapper.
|
|
71
|
+
*/
|
|
19
72
|
class GetDisplayNameOperationResponse extends CustomOperationResponseAbstract<GamePlayerModels.GamePlayerResponseData> {
|
|
73
|
+
/**
|
|
74
|
+
* Creates a new GetDisplayNameOperationResponse instance.
|
|
75
|
+
*/
|
|
20
76
|
constructor();
|
|
21
77
|
}
|
|
78
|
+
/**
|
|
79
|
+
* Maps the GetFriendStatisticsLeaderboardAroundPlayer operation to a typed response wrapper.
|
|
80
|
+
*/
|
|
22
81
|
class GetFriendStatisticsLeaderboardAroundPlayerOperationResponse extends CustomOperationResponseAbstract<GamePlayerModels.GetStatisticsLeaderboardResponseData> {
|
|
82
|
+
/**
|
|
83
|
+
* Creates a new GetFriendStatisticsLeaderboardAroundPlayerOperationResponse instance.
|
|
84
|
+
*/
|
|
23
85
|
constructor();
|
|
24
86
|
}
|
|
87
|
+
/**
|
|
88
|
+
* Maps the GetFriendStatisticsLeaderboard operation to a typed response wrapper.
|
|
89
|
+
*/
|
|
25
90
|
class GetFriendStatisticsLeaderboardOperationResponse extends CustomOperationResponseAbstract<GamePlayerModels.GetStatisticsLeaderboardResponseData> {
|
|
91
|
+
/**
|
|
92
|
+
* Creates a new GetFriendStatisticsLeaderboardOperationResponse instance.
|
|
93
|
+
*/
|
|
26
94
|
constructor();
|
|
27
95
|
}
|
|
96
|
+
/**
|
|
97
|
+
* Maps the GetIpAddressCreate operation to a typed response wrapper.
|
|
98
|
+
*/
|
|
28
99
|
class GetIpAddressCreateOperationResponse extends CustomOperationResponseAbstract<GamePlayerModels.GamePlayerResponseData> {
|
|
100
|
+
/**
|
|
101
|
+
* Creates a new GetIpAddressCreateOperationResponse instance.
|
|
102
|
+
*/
|
|
29
103
|
constructor();
|
|
30
104
|
}
|
|
31
|
-
|
|
105
|
+
/**
|
|
106
|
+
* Maps the GetOnlineStatus operation to a typed response wrapper.
|
|
107
|
+
*/
|
|
108
|
+
class GetOnlineStatusOperationResponse extends CustomOperationResponseAbstract<GamePlayerModels.GamePlayerResponseData> {
|
|
109
|
+
/**
|
|
110
|
+
* Creates a new GetOnlineStatusOperationResponse instance.
|
|
111
|
+
*/
|
|
32
112
|
constructor();
|
|
33
113
|
}
|
|
114
|
+
/**
|
|
115
|
+
* Maps the GetPlayerBan operation to a typed response wrapper.
|
|
116
|
+
*/
|
|
34
117
|
class GetPlayerBanOperationResponse extends CustomOperationResponseAbstract<GamePlayerModels.GamePlayerResponseData> {
|
|
118
|
+
/**
|
|
119
|
+
* Creates a new GetPlayerBanOperationResponse instance.
|
|
120
|
+
*/
|
|
35
121
|
constructor();
|
|
36
122
|
}
|
|
123
|
+
/**
|
|
124
|
+
* Maps the GetPlayerCharacter operation to a typed response wrapper.
|
|
125
|
+
*/
|
|
37
126
|
class GetPlayerCharacterOperationResponse extends CustomOperationResponseAbstract<GamePlayerModels.GamePlayerResponseData> {
|
|
127
|
+
/**
|
|
128
|
+
* Creates a new GetPlayerCharacterOperationResponse instance.
|
|
129
|
+
*/
|
|
38
130
|
constructor();
|
|
39
131
|
}
|
|
132
|
+
/**
|
|
133
|
+
* Maps the GetPlayerCurrency operation to a typed response wrapper.
|
|
134
|
+
*/
|
|
40
135
|
class GetPlayerCurrencyOperationResponse extends CustomOperationResponseAbstract<GamePlayerModels.GamePlayerResponseData> {
|
|
136
|
+
/**
|
|
137
|
+
* Creates a new GetPlayerCurrencyOperationResponse instance.
|
|
138
|
+
*/
|
|
41
139
|
constructor();
|
|
42
140
|
}
|
|
141
|
+
/**
|
|
142
|
+
* Maps the GetPlayerData operation to a typed response wrapper.
|
|
143
|
+
*/
|
|
43
144
|
class GetPlayerDataOperationResponse extends CustomOperationResponseAbstract<GamePlayerModels.GamePlayerResponseData> {
|
|
145
|
+
/**
|
|
146
|
+
* Creates a new GetPlayerDataOperationResponse instance.
|
|
147
|
+
*/
|
|
44
148
|
constructor();
|
|
45
149
|
}
|
|
150
|
+
/**
|
|
151
|
+
* Maps the GetPlayerFriend operation to a typed response wrapper.
|
|
152
|
+
*/
|
|
46
153
|
class GetPlayerFriendOperationResponse extends CustomOperationResponseAbstract<GamePlayerModels.GamePlayerResponseData> {
|
|
154
|
+
/**
|
|
155
|
+
* Creates a new GetPlayerFriendOperationResponse instance.
|
|
156
|
+
*/
|
|
47
157
|
constructor();
|
|
48
158
|
}
|
|
159
|
+
/**
|
|
160
|
+
* Maps the GetPlayerGroup operation to a typed response wrapper.
|
|
161
|
+
*/
|
|
49
162
|
class GetPlayerGroupOperationResponse extends CustomOperationResponseAbstract<GamePlayerModels.GamePlayerResponseData> {
|
|
163
|
+
/**
|
|
164
|
+
* Creates a new GetPlayerGroupOperationResponse instance.
|
|
165
|
+
*/
|
|
50
166
|
constructor();
|
|
51
167
|
}
|
|
168
|
+
/**
|
|
169
|
+
* Maps the GetPlayerInformation operation to a typed response wrapper.
|
|
170
|
+
*/
|
|
52
171
|
class GetPlayerInformationOperationResponse extends CustomOperationResponseAbstract<GamePlayerModels.GamePlayerResponseData> {
|
|
172
|
+
/**
|
|
173
|
+
* Creates a new GetPlayerInformationOperationResponse instance.
|
|
174
|
+
*/
|
|
53
175
|
constructor();
|
|
54
176
|
}
|
|
177
|
+
/**
|
|
178
|
+
* Maps the GetPlayerInventory operation to a typed response wrapper.
|
|
179
|
+
*/
|
|
55
180
|
class GetPlayerInventoryOperationResponse extends CustomOperationResponseAbstract<GamePlayerModels.GamePlayerResponseData> {
|
|
181
|
+
/**
|
|
182
|
+
* Creates a new GetPlayerInventoryOperationResponse instance.
|
|
183
|
+
*/
|
|
56
184
|
constructor();
|
|
57
185
|
}
|
|
186
|
+
/**
|
|
187
|
+
* Maps the GetPlayerStatistics operation to a typed response wrapper.
|
|
188
|
+
*/
|
|
58
189
|
class GetPlayerStatisticsOperationResponse extends CustomOperationResponseAbstract<GamePlayerModels.GamePlayerResponseData> {
|
|
190
|
+
/**
|
|
191
|
+
* Creates a new GetPlayerStatisticsOperationResponse instance.
|
|
192
|
+
*/
|
|
59
193
|
constructor();
|
|
60
194
|
}
|
|
195
|
+
/**
|
|
196
|
+
* Maps the GetPlayersWithDisplayName operation to a typed response wrapper.
|
|
197
|
+
*/
|
|
61
198
|
class GetPlayersWithDisplayNameOperationResponse extends CustomOperationResponseAbstract<GamePlayerModels.GamePlayersWithUserIdResponseData> {
|
|
199
|
+
/**
|
|
200
|
+
* Creates a new GetPlayersWithDisplayNameOperationResponse instance.
|
|
201
|
+
*/
|
|
62
202
|
constructor();
|
|
63
203
|
}
|
|
204
|
+
/**
|
|
205
|
+
* Maps the GetPlayersWithSegment operation to a typed response wrapper.
|
|
206
|
+
*/
|
|
64
207
|
class GetPlayersWithSegmentOperationResponse extends CustomOperationResponseAbstract<GamePlayerModels.GamePlayersWithUserIdResponseData> {
|
|
208
|
+
/**
|
|
209
|
+
* Creates a new GetPlayersWithSegmentOperationResponse instance.
|
|
210
|
+
*/
|
|
65
211
|
constructor();
|
|
66
212
|
}
|
|
213
|
+
/**
|
|
214
|
+
* Maps the GetPlayersWithTag operation to a typed response wrapper.
|
|
215
|
+
*/
|
|
67
216
|
class GetPlayersWithTagOperationResponse extends CustomOperationResponseAbstract<GamePlayerModels.GamePlayersWithUserIdResponseData> {
|
|
217
|
+
/**
|
|
218
|
+
* Creates a new GetPlayersWithTagOperationResponse instance.
|
|
219
|
+
*/
|
|
68
220
|
constructor();
|
|
69
221
|
}
|
|
222
|
+
/**
|
|
223
|
+
* Maps the GetSegment operation to a typed response wrapper.
|
|
224
|
+
*/
|
|
70
225
|
class GetSegmentOperationResponse extends CustomOperationResponseAbstract<GamePlayerModels.GamePlayerResponseData> {
|
|
226
|
+
/**
|
|
227
|
+
* Creates a new GetSegmentOperationResponse instance.
|
|
228
|
+
*/
|
|
71
229
|
constructor();
|
|
72
230
|
}
|
|
231
|
+
/**
|
|
232
|
+
* Maps the GetStatisticsLeaderboardAroundPlayer operation to a typed response wrapper.
|
|
233
|
+
*/
|
|
73
234
|
class GetStatisticsLeaderboardAroundPlayerOperationResponse extends CustomOperationResponseAbstract<GamePlayerModels.GetStatisticsLeaderboardResponseData> {
|
|
235
|
+
/**
|
|
236
|
+
* Creates a new GetStatisticsLeaderboardAroundPlayerOperationResponse instance.
|
|
237
|
+
*/
|
|
74
238
|
constructor();
|
|
75
239
|
}
|
|
240
|
+
/**
|
|
241
|
+
* Maps the GetStatisticsLeaderboard operation to a typed response wrapper.
|
|
242
|
+
*/
|
|
76
243
|
class GetStatisticsLeaderboardOperationResponse extends CustomOperationResponseAbstract<GamePlayerModels.GetStatisticsLeaderboardResponseData> {
|
|
244
|
+
/**
|
|
245
|
+
* Creates a new GetStatisticsLeaderboardOperationResponse instance.
|
|
246
|
+
*/
|
|
77
247
|
constructor();
|
|
78
248
|
}
|
|
249
|
+
/**
|
|
250
|
+
* Maps the GetTag operation to a typed response wrapper.
|
|
251
|
+
*/
|
|
79
252
|
class GetTagOperationResponse extends CustomOperationResponseAbstract<GamePlayerModels.GamePlayerResponseData> {
|
|
253
|
+
/**
|
|
254
|
+
* Creates a new GetTagOperationResponse instance.
|
|
255
|
+
*/
|
|
80
256
|
constructor();
|
|
81
257
|
}
|
|
258
|
+
/**
|
|
259
|
+
* Maps the GetTsCreate operation to a typed response wrapper.
|
|
260
|
+
*/
|
|
82
261
|
class GetTsCreateOperationResponse extends CustomOperationResponseAbstract<GamePlayerModels.GamePlayerResponseData> {
|
|
262
|
+
/**
|
|
263
|
+
* Creates a new GetTsCreateOperationResponse instance.
|
|
264
|
+
*/
|
|
83
265
|
constructor();
|
|
84
266
|
}
|
|
267
|
+
/**
|
|
268
|
+
* Maps the GetTsLastLogin operation to a typed response wrapper.
|
|
269
|
+
*/
|
|
85
270
|
class GetTsLastLoginOperationResponse extends CustomOperationResponseAbstract<GamePlayerModels.GamePlayerResponseData> {
|
|
271
|
+
/**
|
|
272
|
+
* Creates a new GetTsLastLoginOperationResponse instance.
|
|
273
|
+
*/
|
|
86
274
|
constructor();
|
|
87
275
|
}
|
|
276
|
+
/**
|
|
277
|
+
* Maps the CreateGroup operation to a typed response wrapper.
|
|
278
|
+
*/
|
|
88
279
|
class CreateGroupOperationResponse extends CustomOperationResponseAbstract<GamePlayerModels.GamePlayerResponseData> {
|
|
280
|
+
/**
|
|
281
|
+
* Creates a new CreateGroupOperationResponse instance.
|
|
282
|
+
*/
|
|
89
283
|
constructor();
|
|
90
284
|
}
|
|
285
|
+
/**
|
|
286
|
+
* Maps the CreatePlayerCharacter operation to a typed response wrapper.
|
|
287
|
+
*/
|
|
91
288
|
class CreatePlayerCharacterOperationResponse extends CustomOperationResponseAbstract<GamePlayerModels.GamePlayerResponseData> {
|
|
289
|
+
/**
|
|
290
|
+
* Creates a new CreatePlayerCharacterOperationResponse instance.
|
|
291
|
+
*/
|
|
92
292
|
constructor();
|
|
93
293
|
}
|
|
294
|
+
/**
|
|
295
|
+
* Maps the CreatePlayerItem operation to a typed response wrapper.
|
|
296
|
+
*/
|
|
94
297
|
class CreatePlayerItemOperationResponse extends CustomOperationResponseAbstract<GamePlayerModels.GamePlayerResponseData> {
|
|
298
|
+
/**
|
|
299
|
+
* Creates a new CreatePlayerItemOperationResponse instance.
|
|
300
|
+
*/
|
|
95
301
|
constructor();
|
|
96
302
|
}
|
|
303
|
+
/**
|
|
304
|
+
* Maps the JoinGroup operation to a typed response wrapper.
|
|
305
|
+
*/
|
|
97
306
|
class JoinGroupOperationResponse extends CustomOperationResponseAbstract<GamePlayerModels.EmptyResponseData> {
|
|
307
|
+
/**
|
|
308
|
+
* Creates a new JoinGroupOperationResponse instance.
|
|
309
|
+
*/
|
|
98
310
|
constructor();
|
|
99
311
|
}
|
|
312
|
+
/**
|
|
313
|
+
* Maps the LeaveGroup operation to a typed response wrapper.
|
|
314
|
+
*/
|
|
100
315
|
class LeaveGroupOperationResponse extends CustomOperationResponseAbstract<GamePlayerModels.EmptyResponseData> {
|
|
316
|
+
/**
|
|
317
|
+
* Creates a new LeaveGroupOperationResponse instance.
|
|
318
|
+
*/
|
|
101
319
|
constructor();
|
|
102
320
|
}
|
|
321
|
+
/**
|
|
322
|
+
* Maps the RemovePlayerCharacter operation to a typed response wrapper.
|
|
323
|
+
*/
|
|
103
324
|
class RemovePlayerCharacterOperationResponse extends CustomOperationResponseAbstract<GamePlayerModels.EmptyResponseData> {
|
|
325
|
+
/**
|
|
326
|
+
* Creates a new RemovePlayerCharacterOperationResponse instance.
|
|
327
|
+
*/
|
|
104
328
|
constructor();
|
|
105
329
|
}
|
|
330
|
+
/**
|
|
331
|
+
* Maps the RemovePlayerFriend operation to a typed response wrapper.
|
|
332
|
+
*/
|
|
106
333
|
class RemovePlayerFriendOperationResponse extends CustomOperationResponseAbstract<GamePlayerModels.EmptyResponseData> {
|
|
334
|
+
/**
|
|
335
|
+
* Creates a new RemovePlayerFriendOperationResponse instance.
|
|
336
|
+
*/
|
|
107
337
|
constructor();
|
|
108
338
|
}
|
|
339
|
+
/**
|
|
340
|
+
* Maps the RemovePlayerItem operation to a typed response wrapper.
|
|
341
|
+
*/
|
|
109
342
|
class RemovePlayerItemOperationResponse extends CustomOperationResponseAbstract<GamePlayerModels.EmptyResponseData> {
|
|
343
|
+
/**
|
|
344
|
+
* Creates a new RemovePlayerItemOperationResponse instance.
|
|
345
|
+
*/
|
|
110
346
|
constructor();
|
|
111
347
|
}
|
|
348
|
+
/**
|
|
349
|
+
* Maps the RemoveSegment operation to a typed response wrapper.
|
|
350
|
+
*/
|
|
112
351
|
class RemoveSegmentOperationResponse extends CustomOperationResponseAbstract<GamePlayerModels.EmptyResponseData> {
|
|
352
|
+
/**
|
|
353
|
+
* Creates a new RemoveSegmentOperationResponse instance.
|
|
354
|
+
*/
|
|
113
355
|
constructor();
|
|
114
356
|
}
|
|
357
|
+
/**
|
|
358
|
+
* Maps the RemoveTag operation to a typed response wrapper.
|
|
359
|
+
*/
|
|
115
360
|
class RemoveTagOperationResponse extends CustomOperationResponseAbstract<GamePlayerModels.EmptyResponseData> {
|
|
361
|
+
/**
|
|
362
|
+
* Creates a new RemoveTagOperationResponse instance.
|
|
363
|
+
*/
|
|
116
364
|
constructor();
|
|
117
365
|
}
|
|
366
|
+
/**
|
|
367
|
+
* Maps the SetAvatar operation to a typed response wrapper.
|
|
368
|
+
*/
|
|
118
369
|
class SetAvatarOperationResponse extends CustomOperationResponseAbstract<GamePlayerModels.EmptyResponseData> {
|
|
370
|
+
/**
|
|
371
|
+
* Creates a new SetAvatarOperationResponse instance.
|
|
372
|
+
*/
|
|
119
373
|
constructor();
|
|
120
374
|
}
|
|
375
|
+
/**
|
|
376
|
+
* Maps the SetCountryCode operation to a typed response wrapper.
|
|
377
|
+
*/
|
|
121
378
|
class SetCountryCodeOperationResponse extends CustomOperationResponseAbstract<GamePlayerModels.EmptyResponseData> {
|
|
379
|
+
/**
|
|
380
|
+
* Creates a new SetCountryCodeOperationResponse instance.
|
|
381
|
+
*/
|
|
122
382
|
constructor();
|
|
123
383
|
}
|
|
384
|
+
/**
|
|
385
|
+
* Maps the SetCustomData operation to a typed response wrapper.
|
|
386
|
+
*/
|
|
124
387
|
class SetCustomDataOperationResponse extends CustomOperationResponseAbstract<GamePlayerModels.GamePlayerResponseData> {
|
|
388
|
+
/**
|
|
389
|
+
* Creates a new SetCustomDataOperationResponse instance.
|
|
390
|
+
*/
|
|
125
391
|
constructor();
|
|
126
392
|
}
|
|
393
|
+
/**
|
|
394
|
+
* Maps the SetDisplayName operation to a typed response wrapper.
|
|
395
|
+
*/
|
|
127
396
|
class SetDisplayNameOperationResponse extends CustomOperationResponseAbstract<GamePlayerModels.EmptyResponseData> {
|
|
397
|
+
/**
|
|
398
|
+
* Creates a new SetDisplayNameOperationResponse instance.
|
|
399
|
+
*/
|
|
128
400
|
constructor();
|
|
129
401
|
}
|
|
402
|
+
/**
|
|
403
|
+
* Maps the SetPlayerBan operation to a typed response wrapper.
|
|
404
|
+
*/
|
|
130
405
|
class SetPlayerBanOperationResponse extends CustomOperationResponseAbstract<GamePlayerModels.EmptyResponseData> {
|
|
406
|
+
/**
|
|
407
|
+
* Creates a new SetPlayerBanOperationResponse instance.
|
|
408
|
+
*/
|
|
131
409
|
constructor();
|
|
132
410
|
}
|
|
411
|
+
/**
|
|
412
|
+
* Maps the ChangePlayerCurrency operation to a typed response wrapper.
|
|
413
|
+
*/
|
|
133
414
|
class ChangePlayerCurrencyOperationResponse extends CustomOperationResponseAbstract<GamePlayerModels.GamePlayerResponseData> {
|
|
415
|
+
/**
|
|
416
|
+
* Creates a new ChangePlayerCurrencyOperationResponse instance.
|
|
417
|
+
*/
|
|
134
418
|
constructor();
|
|
135
419
|
}
|
|
420
|
+
/**
|
|
421
|
+
* Maps the SetPlayerData operation to a typed response wrapper.
|
|
422
|
+
*/
|
|
136
423
|
class SetPlayerDataOperationResponse extends CustomOperationResponseAbstract<GamePlayerModels.GamePlayerResponseData> {
|
|
424
|
+
/**
|
|
425
|
+
* Creates a new SetPlayerDataOperationResponse instance.
|
|
426
|
+
*/
|
|
137
427
|
constructor();
|
|
138
428
|
}
|
|
429
|
+
/**
|
|
430
|
+
* Maps the ChangePlayerStatistics operation to a typed response wrapper.
|
|
431
|
+
*/
|
|
139
432
|
class ChangePlayerStatisticsOperationResponse extends CustomOperationResponseAbstract<GamePlayerModels.GamePlayerResponseData> {
|
|
433
|
+
/**
|
|
434
|
+
* Creates a new ChangePlayerStatisticsOperationResponse instance.
|
|
435
|
+
*/
|
|
140
436
|
constructor();
|
|
141
437
|
}
|
|
438
|
+
/**
|
|
439
|
+
* Maps the SetTag operation to a typed response wrapper.
|
|
440
|
+
*/
|
|
142
441
|
class SetTagOperationResponse extends CustomOperationResponseAbstract<GamePlayerModels.EmptyResponseData> {
|
|
442
|
+
/**
|
|
443
|
+
* Creates a new SetTagOperationResponse instance.
|
|
444
|
+
*/
|
|
143
445
|
constructor();
|
|
144
446
|
}
|
|
447
|
+
/**
|
|
448
|
+
* Maps the GetCurrencyLeaderboard operation to a typed response wrapper.
|
|
449
|
+
*/
|
|
145
450
|
class GetCurrencyLeaderboardOperationResponse extends CustomOperationResponseAbstract<GamePlayerModels.GetCurrencyLeaderboardResponseData> {
|
|
451
|
+
/**
|
|
452
|
+
* Creates a new GetCurrencyLeaderboardOperationResponse instance.
|
|
453
|
+
*/
|
|
146
454
|
constructor();
|
|
147
455
|
}
|
|
456
|
+
/**
|
|
457
|
+
* Maps the GetLastLoginLeaderboard operation to a typed response wrapper.
|
|
458
|
+
*/
|
|
148
459
|
class GetLastLoginLeaderboardOperationResponse extends CustomOperationResponseAbstract<GamePlayerModels.GetLastLoginLeaderboardResponseData> {
|
|
460
|
+
/**
|
|
461
|
+
* Creates a new GetLastLoginLeaderboardOperationResponse instance.
|
|
462
|
+
*/
|
|
149
463
|
constructor();
|
|
150
464
|
}
|
|
465
|
+
/**
|
|
466
|
+
* Maps the GetCreateLeaderboard operation to a typed response wrapper.
|
|
467
|
+
*/
|
|
151
468
|
class GetCreateLeaderboardOperationResponse extends CustomOperationResponseAbstract<GamePlayerModels.GetCreateLeaderboardResponseData> {
|
|
469
|
+
/**
|
|
470
|
+
* Creates a new GetCreateLeaderboardOperationResponse instance.
|
|
471
|
+
*/
|
|
152
472
|
constructor();
|
|
153
473
|
}
|
|
474
|
+
/**
|
|
475
|
+
* Maps the GetStatisticsLog operation to a typed response wrapper.
|
|
476
|
+
*/
|
|
154
477
|
class GetStatisticsLogOperationResponse extends CustomOperationResponseAbstract<GamePlayerModels.GetStatisticsLogResponseData> {
|
|
478
|
+
/**
|
|
479
|
+
* Creates a new GetStatisticsLogOperationResponse instance.
|
|
480
|
+
*/
|
|
155
481
|
constructor();
|
|
156
482
|
}
|
|
483
|
+
/**
|
|
484
|
+
* Maps the GetCurrencyLog operation to a typed response wrapper.
|
|
485
|
+
*/
|
|
157
486
|
class GetCurrencyLogOperationResponse extends CustomOperationResponseAbstract<GamePlayerModels.GetCurrencyLogResponseData> {
|
|
487
|
+
/**
|
|
488
|
+
* Creates a new GetCurrencyLogOperationResponse instance.
|
|
489
|
+
*/
|
|
158
490
|
constructor();
|
|
159
491
|
}
|
|
160
492
|
}
|
|
@@ -1,59 +1,153 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Cross-domain DTOs shared by every API namespace in the SDK.
|
|
3
|
+
*
|
|
4
|
+
* The classes in this namespace are deliberately agnostic of
|
|
5
|
+
* any single domain — they describe small, reusable building
|
|
6
|
+
* blocks (avatar entries, key-value pairs, currency entries,
|
|
7
|
+
* statistics entries, friend / group / member references,
|
|
8
|
+
* inventory references, ban entries, ...) that appear inside
|
|
9
|
+
* the larger request / response DTOs of the per-domain models.
|
|
10
|
+
*
|
|
11
|
+
* The lookup helpers on {@link GNUtils} consume the array
|
|
12
|
+
* forms directly:
|
|
13
|
+
* - `toFriendDictionary(friends)` → `Map<string, FriendItem>`
|
|
14
|
+
* - `toGroupDictionary(groups)` → `Map<string, GroupItem>`
|
|
15
|
+
* - `toCurrenciesDictionary(currencies)` →
|
|
16
|
+
* `Map<string, CurrencyItem>`
|
|
17
|
+
* - `toStatisticsDictionary(stats)` →
|
|
18
|
+
* `Map<string, StatisticsItem>`
|
|
19
|
+
* - and similar for tags / data items / inventory items.
|
|
20
|
+
*
|
|
21
|
+
* All field decorators here use canonical wire keys from
|
|
22
|
+
* {@link ParameterCode} so the same shape decodes consistently
|
|
23
|
+
* across every domain that embeds these items.
|
|
24
|
+
*/
|
|
1
25
|
export declare namespace GenericModels {
|
|
26
|
+
/**
|
|
27
|
+
* Represents a generic avatar payload.
|
|
28
|
+
*/
|
|
2
29
|
class AvatarItem {
|
|
30
|
+
/** Backend-defined avatar type identifier. The public SDK currently does not export a dedicated avatar enum. */
|
|
3
31
|
type: number;
|
|
32
|
+
/** Avatar value, typically a URL, file id, or provider-specific string. */
|
|
4
33
|
value: string;
|
|
5
34
|
}
|
|
35
|
+
/**
|
|
36
|
+
* Represents a key-value tag entry.
|
|
37
|
+
*/
|
|
6
38
|
class TagItem {
|
|
39
|
+
/** Tag key used to identify the metadata entry. */
|
|
7
40
|
key: string;
|
|
41
|
+
/** Tag value associated with `key`. */
|
|
8
42
|
value: string;
|
|
9
43
|
}
|
|
44
|
+
/**
|
|
45
|
+
* Represents a ban state entry returned by player-auth or player-profile flows.
|
|
46
|
+
*/
|
|
10
47
|
class BanItem {
|
|
48
|
+
/** Expiration timestamp of the current ban state. */
|
|
11
49
|
tsExpire: number;
|
|
50
|
+
/** Human-readable ban reason when provided by the backend. */
|
|
12
51
|
reason: string;
|
|
13
52
|
}
|
|
53
|
+
/**
|
|
54
|
+
* Represents an arbitrary key-value data entry.
|
|
55
|
+
*/
|
|
14
56
|
class DataItem {
|
|
57
|
+
/** Data entry key used to identify the payload. */
|
|
15
58
|
key: string;
|
|
59
|
+
/** Raw value returned by the backend. This may be a primitive, `GNHashtable`, `GNArray`, or plain object-like data. */
|
|
16
60
|
value: any;
|
|
17
61
|
}
|
|
62
|
+
/**
|
|
63
|
+
* Represents one currency entry.
|
|
64
|
+
*/
|
|
18
65
|
class CurrencyItem {
|
|
66
|
+
/** Currency key such as the configured currency code or logical name. */
|
|
19
67
|
key: string;
|
|
68
|
+
/** Numeric balance of the currency identified by `key`. */
|
|
20
69
|
value: number;
|
|
21
70
|
}
|
|
71
|
+
/**
|
|
72
|
+
* Represents one statistics entry.
|
|
73
|
+
*/
|
|
22
74
|
class StatisticsItem {
|
|
75
|
+
/** Statistic key such as the configured metric name. */
|
|
23
76
|
key: string;
|
|
77
|
+
/** Numeric value of the statistic identified by `key`. */
|
|
24
78
|
value: number;
|
|
25
79
|
}
|
|
80
|
+
/**
|
|
81
|
+
* Represents a lightweight relation item pointing to a character.
|
|
82
|
+
*/
|
|
26
83
|
class CharacterItem {
|
|
84
|
+
/** Character identifier of the related character entity. */
|
|
27
85
|
characterId: string;
|
|
86
|
+
/** Catalog identifier associated with the related character. */
|
|
28
87
|
catalogId: string;
|
|
29
88
|
}
|
|
89
|
+
/**
|
|
90
|
+
* Represents the current owner of an entity such as an inventory item.
|
|
91
|
+
*/
|
|
30
92
|
class OwnerItem {
|
|
93
|
+
/** Owner type. Map this value with the public `OwnerType` enum. */
|
|
31
94
|
type: number;
|
|
95
|
+
/** Owner id paired with `type`. */
|
|
32
96
|
id: string;
|
|
33
97
|
}
|
|
98
|
+
/**
|
|
99
|
+
* Represents soft-remove metadata for an entity.
|
|
100
|
+
*/
|
|
34
101
|
class RemoveStatusItem {
|
|
102
|
+
/** Removal timestamp when the entity was soft-removed. */
|
|
35
103
|
tsRemove: number;
|
|
104
|
+
/** Removal reason when the backend provides one. */
|
|
36
105
|
reason?: string;
|
|
37
106
|
}
|
|
107
|
+
/**
|
|
108
|
+
* Represents a lightweight relation item pointing to an inventory item.
|
|
109
|
+
*/
|
|
38
110
|
class InventoryItem {
|
|
111
|
+
/** Inventory item identifier of the related item entity. */
|
|
39
112
|
itemId: string;
|
|
113
|
+
/** Catalog identifier associated with the related inventory item. */
|
|
40
114
|
catalogId: string;
|
|
115
|
+
/** Class identifier associated with the related inventory item. */
|
|
41
116
|
classId: string;
|
|
42
117
|
}
|
|
118
|
+
/**
|
|
119
|
+
* Represents a lightweight relation item pointing to a group.
|
|
120
|
+
*/
|
|
43
121
|
class GroupItem {
|
|
122
|
+
/** Group identifier of the related group entity. */
|
|
44
123
|
groupId: string;
|
|
124
|
+
/** Catalog identifier associated with the related group. */
|
|
45
125
|
catalogId: string;
|
|
126
|
+
/** Group relation status. Map this value with the public `GroupStatus` enum. */
|
|
46
127
|
status: number;
|
|
128
|
+
/** Timestamp of the last group status change. */
|
|
47
129
|
tsLastStatusUpdate: number;
|
|
48
130
|
}
|
|
131
|
+
/**
|
|
132
|
+
* Represents a lightweight relation item pointing to a friend relation.
|
|
133
|
+
*/
|
|
49
134
|
class FriendItem {
|
|
135
|
+
/** Friend identifier of the related friend entity. */
|
|
50
136
|
friendId: string;
|
|
137
|
+
/** Catalog identifier associated with the related friend entity. */
|
|
51
138
|
catalogId: string;
|
|
139
|
+
/** Friend relation status. Map this value with the public `FriendStatus` enum. */
|
|
52
140
|
status: number;
|
|
141
|
+
/** Timestamp of the last friend status change. */
|
|
53
142
|
tsLastStatusUpdate: number;
|
|
54
143
|
}
|
|
144
|
+
/**
|
|
145
|
+
* Represents a lightweight relation item pointing to a group member.
|
|
146
|
+
*/
|
|
55
147
|
class MemberItem {
|
|
148
|
+
/** Member identifier of the related group member. */
|
|
56
149
|
memberId: string;
|
|
150
|
+
/** Member relation status. Map this value with the public member-status enum when available. */
|
|
57
151
|
status: number;
|
|
58
152
|
}
|
|
59
153
|
}
|