@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
|
@@ -2,95 +2,404 @@ import { Action1 } from "./common/Action1";
|
|
|
2
2
|
import { GNHashtable } from "./common/GNData";
|
|
3
3
|
import { StoreInventoryModels } from "./entity/models/StoreInventoryModels";
|
|
4
4
|
import { StoreInventoryResponseModels } from "./entity/models/StoreInventoryResponseModels";
|
|
5
|
+
/**
|
|
6
|
+
* Public client-scoped namespace for the StoreInventory domain.
|
|
7
|
+
*
|
|
8
|
+
* Reachable through {@link GNNetwork.storeInventory} after
|
|
9
|
+
* {@link GNNetwork.init}. Manages storefront catalog reads,
|
|
10
|
+
* purchases, gifting and platform-receipt validation.
|
|
11
|
+
*
|
|
12
|
+
* Functional groupings:
|
|
13
|
+
*
|
|
14
|
+
* 1. **Catalog reads** — `getStoreItem`, `getStoreItems`,
|
|
15
|
+
* `getStoreItemsWithSegment`,
|
|
16
|
+
* `getStoreItemsWithTag`. Catalog rows carry
|
|
17
|
+
* {@link StoreItemType} (`Consumable` /
|
|
18
|
+
* `NonConsumable`).
|
|
19
|
+
* 2. **Purchase / gift** — `buyStoreItem` (paid with
|
|
20
|
+
* in-game currency), `presentStoreItem` (gift to another
|
|
21
|
+
* player), `redeemStoreItem` (apply a previously gifted
|
|
22
|
+
* item).
|
|
23
|
+
* 3. **Platform receipt validation** —
|
|
24
|
+
* `validateAppleAppStoreReceipt`,
|
|
25
|
+
* `validateGooglePlayStoreReceipt`,
|
|
26
|
+
* `validateFacebookStoreReceipt`. Each validates a
|
|
27
|
+
* platform-specific receipt and grants the matching item
|
|
28
|
+
* on success. The audit log captures the
|
|
29
|
+
* {@link StoreReceiveType} for each grant.
|
|
30
|
+
* 4. **Audit log** — `getPurchaseLog`, `getReceiveLog`.
|
|
31
|
+
* Read-only history of every item the player acquired
|
|
32
|
+
* through the store.
|
|
33
|
+
*
|
|
34
|
+
* Common contract: same as {@link GamePlayerApi} (HTTP /
|
|
35
|
+
* `RequestType.StoreInventory` / `RequestRole.Client`,
|
|
36
|
+
* callback + Promise variants, `.server` / `.admin`
|
|
37
|
+
* sub-namespaces).
|
|
38
|
+
*/
|
|
5
39
|
export declare class StoreInventoryApi {
|
|
40
|
+
/** Server-scoped store operations for trusted backend callers. */
|
|
6
41
|
server: ServerStoreInventoryApi;
|
|
42
|
+
/** Admin-scoped store operations for dashboard, GM, or backoffice callers. */
|
|
7
43
|
admin: AdminStoreInventoryApi;
|
|
44
|
+
/**
|
|
45
|
+
* Sends the buyStoreItem operation and returns the typed response via callback.
|
|
46
|
+
*/
|
|
8
47
|
buyStoreItem(requestData: StoreInventoryModels.BuyStoreItemRequestData, onResponse?: Action1<StoreInventoryResponseModels.BuyStoreItemOperationResponse>, overrideAuthToken?: string, overrideSecretKey?: string, customTags?: GNHashtable, timeout?: number): void;
|
|
48
|
+
/**
|
|
49
|
+
* Sends the buyStoreItem operation and resolves with the typed response.
|
|
50
|
+
*/
|
|
9
51
|
buyStoreItemAsync(requestData: StoreInventoryModels.BuyStoreItemRequestData, overrideAuthToken?: string, overrideSecretKey?: string, customTags?: GNHashtable, timeout?: number): Promise<StoreInventoryResponseModels.BuyStoreItemOperationResponse>;
|
|
52
|
+
/**
|
|
53
|
+
* Sends the getStoreItemInformation operation and returns the typed response via callback.
|
|
54
|
+
*/
|
|
10
55
|
getStoreItemInformation(requestData: StoreInventoryModels.GetStoreItemInformationRequestData, onResponse?: Action1<StoreInventoryResponseModels.GetStoreItemInformationOperationResponse>, overrideAuthToken?: string, overrideSecretKey?: string, customTags?: GNHashtable, timeout?: number): void;
|
|
56
|
+
/**
|
|
57
|
+
* Sends the getStoreItemInformation operation and resolves with the typed response.
|
|
58
|
+
*/
|
|
11
59
|
getStoreItemInformationAsync(requestData: StoreInventoryModels.GetStoreItemInformationRequestData, overrideAuthToken?: string, overrideSecretKey?: string, customTags?: GNHashtable, timeout?: number): Promise<StoreInventoryResponseModels.GetStoreItemInformationOperationResponse>;
|
|
60
|
+
/**
|
|
61
|
+
* Sends the getStoreItemsWithTag operation and returns the typed response via callback.
|
|
62
|
+
*/
|
|
12
63
|
getStoreItemsWithTag(requestData: StoreInventoryModels.GetStoreItemsWithTagRequestData, onResponse?: Action1<StoreInventoryResponseModels.GetStoreItemsWithTagOperationResponse>, overrideAuthToken?: string, overrideSecretKey?: string, customTags?: GNHashtable, timeout?: number): void;
|
|
64
|
+
/**
|
|
65
|
+
* Sends the getStoreItemsWithTag operation and resolves with the typed response.
|
|
66
|
+
*/
|
|
13
67
|
getStoreItemsWithTagAsync(requestData: StoreInventoryModels.GetStoreItemsWithTagRequestData, overrideAuthToken?: string, overrideSecretKey?: string, customTags?: GNHashtable, timeout?: number): Promise<StoreInventoryResponseModels.GetStoreItemsWithTagOperationResponse>;
|
|
68
|
+
/**
|
|
69
|
+
* Sends the createStoreItem operation and returns the typed response via callback.
|
|
70
|
+
*/
|
|
14
71
|
createStoreItem(requestData: StoreInventoryModels.CreateStoreItemRequestData, onResponse?: Action1<StoreInventoryResponseModels.CreateStoreItemOperationResponse>, overrideAuthToken?: string, overrideSecretKey?: string, customTags?: GNHashtable, timeout?: number): void;
|
|
72
|
+
/**
|
|
73
|
+
* Sends the createStoreItem operation and resolves with the typed response.
|
|
74
|
+
*/
|
|
15
75
|
createStoreItemAsync(requestData: StoreInventoryModels.CreateStoreItemRequestData, overrideAuthToken?: string, overrideSecretKey?: string, customTags?: GNHashtable, timeout?: number): Promise<StoreInventoryResponseModels.CreateStoreItemOperationResponse>;
|
|
76
|
+
/**
|
|
77
|
+
* Sends the setRemoveStatus operation and returns the typed response via callback.
|
|
78
|
+
*/
|
|
16
79
|
setRemoveStatus(requestData: StoreInventoryModels.SetRemoveStatusRequestData, onResponse?: Action1<StoreInventoryResponseModels.SetRemoveStatusOperationResponse>, overrideAuthToken?: string, overrideSecretKey?: string, customTags?: GNHashtable, timeout?: number): void;
|
|
80
|
+
/**
|
|
81
|
+
* Sends the setRemoveStatus operation and resolves with the typed response.
|
|
82
|
+
*/
|
|
17
83
|
setRemoveStatusAsync(requestData: StoreInventoryModels.SetRemoveStatusRequestData, overrideAuthToken?: string, overrideSecretKey?: string, customTags?: GNHashtable, timeout?: number): Promise<StoreInventoryResponseModels.SetRemoveStatusOperationResponse>;
|
|
84
|
+
/**
|
|
85
|
+
* Sends the setStoreItemInformation operation and returns the typed response via callback.
|
|
86
|
+
*/
|
|
18
87
|
setStoreItemInformation(requestData: StoreInventoryModels.SetStoreItemInformationRequestData, onResponse?: Action1<StoreInventoryResponseModels.SetStoreItemInformationOperationResponse>, overrideAuthToken?: string, overrideSecretKey?: string, customTags?: GNHashtable, timeout?: number): void;
|
|
88
|
+
/**
|
|
89
|
+
* Sends the setStoreItemInformation operation and resolves with the typed response.
|
|
90
|
+
*/
|
|
19
91
|
setStoreItemInformationAsync(requestData: StoreInventoryModels.SetStoreItemInformationRequestData, overrideAuthToken?: string, overrideSecretKey?: string, customTags?: GNHashtable, timeout?: number): Promise<StoreInventoryResponseModels.SetStoreItemInformationOperationResponse>;
|
|
92
|
+
/**
|
|
93
|
+
* Sends the validateAppleAppStoreReceipt operation and returns the typed response via callback.
|
|
94
|
+
*/
|
|
20
95
|
validateAppleAppStoreReceipt(requestData: StoreInventoryModels.ValidateAppleAppStoreReceiptRequestData, onResponse?: Action1<StoreInventoryResponseModels.ValidateAppleAppStoreReceiptOperationResponse>, overrideAuthToken?: string, overrideSecretKey?: string, customTags?: GNHashtable, timeout?: number): void;
|
|
96
|
+
/**
|
|
97
|
+
* Sends the validateAppleAppStoreReceipt operation and resolves with the typed response.
|
|
98
|
+
*/
|
|
21
99
|
validateAppleAppStoreReceiptAsync(requestData: StoreInventoryModels.ValidateAppleAppStoreReceiptRequestData, overrideAuthToken?: string, overrideSecretKey?: string, customTags?: GNHashtable, timeout?: number): Promise<StoreInventoryResponseModels.ValidateAppleAppStoreReceiptOperationResponse>;
|
|
100
|
+
/**
|
|
101
|
+
* Sends the validateFacebookStoreReceipt operation and returns the typed response via callback.
|
|
102
|
+
*/
|
|
22
103
|
validateFacebookStoreReceipt(requestData: StoreInventoryModels.ValidateFacebookStoreReceiptRequestData, onResponse?: Action1<StoreInventoryResponseModels.ValidateFacebookStoreReceiptOperationResponse>, overrideAuthToken?: string, overrideSecretKey?: string, customTags?: GNHashtable, timeout?: number): void;
|
|
104
|
+
/**
|
|
105
|
+
* Sends the validateFacebookStoreReceipt operation and resolves with the typed response.
|
|
106
|
+
*/
|
|
23
107
|
validateFacebookStoreReceiptAsync(requestData: StoreInventoryModels.ValidateFacebookStoreReceiptRequestData, overrideAuthToken?: string, overrideSecretKey?: string, customTags?: GNHashtable, timeout?: number): Promise<StoreInventoryResponseModels.ValidateFacebookStoreReceiptOperationResponse>;
|
|
108
|
+
/**
|
|
109
|
+
* Sends the validateGooglePlayStoreReceipt operation and returns the typed response via callback.
|
|
110
|
+
*/
|
|
24
111
|
validateGooglePlayStoreReceipt(requestData: StoreInventoryModels.ValidateGooglePlayStoreReceiptRequestData, onResponse?: Action1<StoreInventoryResponseModels.ValidateGooglePlayStoreReceiptOperationResponse>, overrideAuthToken?: string, overrideSecretKey?: string, customTags?: GNHashtable, timeout?: number): void;
|
|
112
|
+
/**
|
|
113
|
+
* Sends the validateGooglePlayStoreReceipt operation and resolves with the typed response.
|
|
114
|
+
*/
|
|
25
115
|
validateGooglePlayStoreReceiptAsync(requestData: StoreInventoryModels.ValidateGooglePlayStoreReceiptRequestData, overrideAuthToken?: string, overrideSecretKey?: string, customTags?: GNHashtable, timeout?: number): Promise<StoreInventoryResponseModels.ValidateGooglePlayStoreReceiptOperationResponse>;
|
|
116
|
+
/**
|
|
117
|
+
* Sends the getCreateLeaderboard operation and returns the typed response via callback.
|
|
118
|
+
*/
|
|
26
119
|
getCreateLeaderboard(requestData: StoreInventoryModels.GetCreateLeaderboardRequestData, onResponse?: Action1<StoreInventoryResponseModels.GetCreateLeaderboardOperationResponse>, overrideAuthToken?: string, overrideSecretKey?: string, customTags?: GNHashtable, timeout?: number): void;
|
|
120
|
+
/**
|
|
121
|
+
* Sends the getCreateLeaderboard operation and resolves with the typed response.
|
|
122
|
+
*/
|
|
27
123
|
getCreateLeaderboardAsync(requestData: StoreInventoryModels.GetCreateLeaderboardRequestData, overrideAuthToken?: string, overrideSecretKey?: string, customTags?: GNHashtable, timeout?: number): Promise<StoreInventoryResponseModels.GetCreateLeaderboardOperationResponse>;
|
|
124
|
+
/**
|
|
125
|
+
* Sends the presentStoreItem operation and returns the typed response via callback.
|
|
126
|
+
*/
|
|
28
127
|
presentStoreItem(requestData: StoreInventoryModels.PresentStoreItemRequestData, onResponse?: Action1<StoreInventoryResponseModels.PresentStoreItemOperationResponse>, overrideAuthToken?: string, overrideSecretKey?: string, customTags?: GNHashtable, timeout?: number): void;
|
|
128
|
+
/**
|
|
129
|
+
* Sends the presentStoreItem operation and resolves with the typed response.
|
|
130
|
+
*/
|
|
29
131
|
presentStoreItemAsync(requestData: StoreInventoryModels.PresentStoreItemRequestData, overrideAuthToken?: string, overrideSecretKey?: string, customTags?: GNHashtable, timeout?: number): Promise<StoreInventoryResponseModels.PresentStoreItemOperationResponse>;
|
|
132
|
+
/**
|
|
133
|
+
* Sends the getStoreLog operation and returns the typed response via callback.
|
|
134
|
+
*/
|
|
30
135
|
getStoreLog(requestData: StoreInventoryModels.GetStoreLogRequestData, onResponse?: Action1<StoreInventoryResponseModels.GetStoreLogOperationResponse>, overrideAuthToken?: string, overrideSecretKey?: string, customTags?: GNHashtable, timeout?: number): void;
|
|
136
|
+
/**
|
|
137
|
+
* Sends the getStoreLog operation and resolves with the typed response.
|
|
138
|
+
*/
|
|
31
139
|
getStoreLogAsync(requestData: StoreInventoryModels.GetStoreLogRequestData, overrideAuthToken?: string, overrideSecretKey?: string, customTags?: GNHashtable, timeout?: number): Promise<StoreInventoryResponseModels.GetStoreLogOperationResponse>;
|
|
140
|
+
/**
|
|
141
|
+
* Sends the getStoreUsed operation and returns the typed response via callback.
|
|
142
|
+
*/
|
|
32
143
|
getStoreUsed(requestData: StoreInventoryModels.GetStoreUsedRequestData, onResponse?: Action1<StoreInventoryResponseModels.GetStoreUsedOperationResponse>, overrideAuthToken?: string, overrideSecretKey?: string, customTags?: GNHashtable, timeout?: number): void;
|
|
144
|
+
/**
|
|
145
|
+
* Sends the getStoreUsed operation and resolves with the typed response.
|
|
146
|
+
*/
|
|
33
147
|
getStoreUsedAsync(requestData: StoreInventoryModels.GetStoreUsedRequestData, overrideAuthToken?: string, overrideSecretKey?: string, customTags?: GNHashtable, timeout?: number): Promise<StoreInventoryResponseModels.GetStoreUsedOperationResponse>;
|
|
148
|
+
/**
|
|
149
|
+
* Sends the removeStoreUsed operation and returns the typed response via callback.
|
|
150
|
+
*/
|
|
34
151
|
removeStoreUsed(requestData: StoreInventoryModels.RemoveStoreUsedRequestData, onResponse?: Action1<StoreInventoryResponseModels.RemoveStoreUsedOperationResponse>, overrideAuthToken?: string, overrideSecretKey?: string, customTags?: GNHashtable, timeout?: number): void;
|
|
152
|
+
/**
|
|
153
|
+
* Sends the removeStoreUsed operation and resolves with the typed response.
|
|
154
|
+
*/
|
|
35
155
|
removeStoreUsedAsync(requestData: StoreInventoryModels.RemoveStoreUsedRequestData, overrideAuthToken?: string, overrideSecretKey?: string, customTags?: GNHashtable, timeout?: number): Promise<StoreInventoryResponseModels.RemoveStoreUsedOperationResponse>;
|
|
36
156
|
}
|
|
157
|
+
/**
|
|
158
|
+
* Server-scoped StoreInventory namespace, reachable through
|
|
159
|
+
* `GNNetwork.storeInventory.server`.
|
|
160
|
+
*
|
|
161
|
+
* Mirrors every method on {@link StoreInventoryApi} but uses
|
|
162
|
+
* the `Server*RequestData` DTO variants. The server flavour
|
|
163
|
+
* accepts an explicit `userId` so a trusted backend can
|
|
164
|
+
* issue purchases / gifts on behalf of any player. Always pass
|
|
165
|
+
* a valid server-side `secretKey`.
|
|
166
|
+
*/
|
|
37
167
|
export declare class ServerStoreInventoryApi {
|
|
168
|
+
/**
|
|
169
|
+
* Sends the buyStoreItem operation and returns the typed response via callback.
|
|
170
|
+
*/
|
|
38
171
|
buyStoreItem(requestData: StoreInventoryModels.ServerBuyStoreItemRequestData, onResponse?: Action1<StoreInventoryResponseModels.BuyStoreItemOperationResponse>, overrideAuthToken?: string, overrideSecretKey?: string, customTags?: GNHashtable, timeout?: number): void;
|
|
172
|
+
/**
|
|
173
|
+
* Sends the buyStoreItem operation and resolves with the typed response.
|
|
174
|
+
*/
|
|
39
175
|
buyStoreItemAsync(requestData: StoreInventoryModels.ServerBuyStoreItemRequestData, overrideAuthToken?: string, overrideSecretKey?: string, customTags?: GNHashtable, timeout?: number): Promise<StoreInventoryResponseModels.BuyStoreItemOperationResponse>;
|
|
176
|
+
/**
|
|
177
|
+
* Sends the getStoreItemInformation operation and returns the typed response via callback.
|
|
178
|
+
*/
|
|
40
179
|
getStoreItemInformation(requestData: StoreInventoryModels.ServerGetStoreItemInformationRequestData, onResponse?: Action1<StoreInventoryResponseModels.GetStoreItemInformationOperationResponse>, overrideAuthToken?: string, overrideSecretKey?: string, customTags?: GNHashtable, timeout?: number): void;
|
|
180
|
+
/**
|
|
181
|
+
* Sends the getStoreItemInformation operation and resolves with the typed response.
|
|
182
|
+
*/
|
|
41
183
|
getStoreItemInformationAsync(requestData: StoreInventoryModels.ServerGetStoreItemInformationRequestData, overrideAuthToken?: string, overrideSecretKey?: string, customTags?: GNHashtable, timeout?: number): Promise<StoreInventoryResponseModels.GetStoreItemInformationOperationResponse>;
|
|
184
|
+
/**
|
|
185
|
+
* Sends the getStoreItemsWithTag operation and returns the typed response via callback.
|
|
186
|
+
*/
|
|
42
187
|
getStoreItemsWithTag(requestData: StoreInventoryModels.ServerGetStoreItemsWithTagRequestData, onResponse?: Action1<StoreInventoryResponseModels.GetStoreItemsWithTagOperationResponse>, overrideAuthToken?: string, overrideSecretKey?: string, customTags?: GNHashtable, timeout?: number): void;
|
|
188
|
+
/**
|
|
189
|
+
* Sends the getStoreItemsWithTag operation and resolves with the typed response.
|
|
190
|
+
*/
|
|
43
191
|
getStoreItemsWithTagAsync(requestData: StoreInventoryModels.ServerGetStoreItemsWithTagRequestData, overrideAuthToken?: string, overrideSecretKey?: string, customTags?: GNHashtable, timeout?: number): Promise<StoreInventoryResponseModels.GetStoreItemsWithTagOperationResponse>;
|
|
192
|
+
/**
|
|
193
|
+
* Sends the createStoreItem operation and returns the typed response via callback.
|
|
194
|
+
*/
|
|
44
195
|
createStoreItem(requestData: StoreInventoryModels.ServerCreateStoreItemRequestData, onResponse?: Action1<StoreInventoryResponseModels.CreateStoreItemOperationResponse>, overrideAuthToken?: string, overrideSecretKey?: string, customTags?: GNHashtable, timeout?: number): void;
|
|
196
|
+
/**
|
|
197
|
+
* Sends the createStoreItem operation and resolves with the typed response.
|
|
198
|
+
*/
|
|
45
199
|
createStoreItemAsync(requestData: StoreInventoryModels.ServerCreateStoreItemRequestData, overrideAuthToken?: string, overrideSecretKey?: string, customTags?: GNHashtable, timeout?: number): Promise<StoreInventoryResponseModels.CreateStoreItemOperationResponse>;
|
|
200
|
+
/**
|
|
201
|
+
* Sends the setRemoveStatus operation and returns the typed response via callback.
|
|
202
|
+
*/
|
|
46
203
|
setRemoveStatus(requestData: StoreInventoryModels.ServerSetRemoveStatusRequestData, onResponse?: Action1<StoreInventoryResponseModels.SetRemoveStatusOperationResponse>, overrideAuthToken?: string, overrideSecretKey?: string, customTags?: GNHashtable, timeout?: number): void;
|
|
204
|
+
/**
|
|
205
|
+
* Sends the setRemoveStatus operation and resolves with the typed response.
|
|
206
|
+
*/
|
|
47
207
|
setRemoveStatusAsync(requestData: StoreInventoryModels.ServerSetRemoveStatusRequestData, overrideAuthToken?: string, overrideSecretKey?: string, customTags?: GNHashtable, timeout?: number): Promise<StoreInventoryResponseModels.SetRemoveStatusOperationResponse>;
|
|
208
|
+
/**
|
|
209
|
+
* Sends the setStoreItemInformation operation and returns the typed response via callback.
|
|
210
|
+
*/
|
|
48
211
|
setStoreItemInformation(requestData: StoreInventoryModels.ServerSetStoreItemInformationRequestData, onResponse?: Action1<StoreInventoryResponseModels.SetStoreItemInformationOperationResponse>, overrideAuthToken?: string, overrideSecretKey?: string, customTags?: GNHashtable, timeout?: number): void;
|
|
212
|
+
/**
|
|
213
|
+
* Sends the setStoreItemInformation operation and resolves with the typed response.
|
|
214
|
+
*/
|
|
49
215
|
setStoreItemInformationAsync(requestData: StoreInventoryModels.ServerSetStoreItemInformationRequestData, overrideAuthToken?: string, overrideSecretKey?: string, customTags?: GNHashtable, timeout?: number): Promise<StoreInventoryResponseModels.SetStoreItemInformationOperationResponse>;
|
|
216
|
+
/**
|
|
217
|
+
* Sends the validateAppleAppStoreReceipt operation and returns the typed response via callback.
|
|
218
|
+
*/
|
|
50
219
|
validateAppleAppStoreReceipt(requestData: StoreInventoryModels.ServerValidateAppleAppStoreReceiptRequestData, onResponse?: Action1<StoreInventoryResponseModels.ValidateAppleAppStoreReceiptOperationResponse>, overrideAuthToken?: string, overrideSecretKey?: string, customTags?: GNHashtable, timeout?: number): void;
|
|
220
|
+
/**
|
|
221
|
+
* Sends the validateAppleAppStoreReceipt operation and resolves with the typed response.
|
|
222
|
+
*/
|
|
51
223
|
validateAppleAppStoreReceiptAsync(requestData: StoreInventoryModels.ServerValidateAppleAppStoreReceiptRequestData, overrideAuthToken?: string, overrideSecretKey?: string, customTags?: GNHashtable, timeout?: number): Promise<StoreInventoryResponseModels.ValidateAppleAppStoreReceiptOperationResponse>;
|
|
224
|
+
/**
|
|
225
|
+
* Sends the validateFacebookStoreReceipt operation and returns the typed response via callback.
|
|
226
|
+
*/
|
|
52
227
|
validateFacebookStoreReceipt(requestData: StoreInventoryModels.ServerValidateFacebookStoreReceiptRequestData, onResponse?: Action1<StoreInventoryResponseModels.ValidateFacebookStoreReceiptOperationResponse>, overrideAuthToken?: string, overrideSecretKey?: string, customTags?: GNHashtable, timeout?: number): void;
|
|
228
|
+
/**
|
|
229
|
+
* Sends the validateFacebookStoreReceipt operation and resolves with the typed response.
|
|
230
|
+
*/
|
|
53
231
|
validateFacebookStoreReceiptAsync(requestData: StoreInventoryModels.ServerValidateFacebookStoreReceiptRequestData, overrideAuthToken?: string, overrideSecretKey?: string, customTags?: GNHashtable, timeout?: number): Promise<StoreInventoryResponseModels.ValidateFacebookStoreReceiptOperationResponse>;
|
|
232
|
+
/**
|
|
233
|
+
* Sends the validateGooglePlayStoreReceipt operation and returns the typed response via callback.
|
|
234
|
+
*/
|
|
54
235
|
validateGooglePlayStoreReceipt(requestData: StoreInventoryModels.ServerValidateGooglePlayStoreReceiptRequestData, onResponse?: Action1<StoreInventoryResponseModels.ValidateGooglePlayStoreReceiptOperationResponse>, overrideAuthToken?: string, overrideSecretKey?: string, customTags?: GNHashtable, timeout?: number): void;
|
|
236
|
+
/**
|
|
237
|
+
* Sends the validateGooglePlayStoreReceipt operation and resolves with the typed response.
|
|
238
|
+
*/
|
|
55
239
|
validateGooglePlayStoreReceiptAsync(requestData: StoreInventoryModels.ServerValidateGooglePlayStoreReceiptRequestData, overrideAuthToken?: string, overrideSecretKey?: string, customTags?: GNHashtable, timeout?: number): Promise<StoreInventoryResponseModels.ValidateGooglePlayStoreReceiptOperationResponse>;
|
|
240
|
+
/**
|
|
241
|
+
* Sends the getCreateLeaderboard operation and returns the typed response via callback.
|
|
242
|
+
*/
|
|
56
243
|
getCreateLeaderboard(requestData: StoreInventoryModels.ServerGetCreateLeaderboardRequestData, onResponse?: Action1<StoreInventoryResponseModels.GetCreateLeaderboardOperationResponse>, overrideAuthToken?: string, overrideSecretKey?: string, customTags?: GNHashtable, timeout?: number): void;
|
|
244
|
+
/**
|
|
245
|
+
* Sends the getCreateLeaderboard operation and resolves with the typed response.
|
|
246
|
+
*/
|
|
57
247
|
getCreateLeaderboardAsync(requestData: StoreInventoryModels.ServerGetCreateLeaderboardRequestData, overrideAuthToken?: string, overrideSecretKey?: string, customTags?: GNHashtable, timeout?: number): Promise<StoreInventoryResponseModels.GetCreateLeaderboardOperationResponse>;
|
|
248
|
+
/**
|
|
249
|
+
* Sends the presentStoreItem operation and returns the typed response via callback.
|
|
250
|
+
*/
|
|
58
251
|
presentStoreItem(requestData: StoreInventoryModels.ServerPresentStoreItemRequestData, onResponse?: Action1<StoreInventoryResponseModels.PresentStoreItemOperationResponse>, overrideAuthToken?: string, overrideSecretKey?: string, customTags?: GNHashtable, timeout?: number): void;
|
|
252
|
+
/**
|
|
253
|
+
* Sends the presentStoreItem operation and resolves with the typed response.
|
|
254
|
+
*/
|
|
59
255
|
presentStoreItemAsync(requestData: StoreInventoryModels.ServerPresentStoreItemRequestData, overrideAuthToken?: string, overrideSecretKey?: string, customTags?: GNHashtable, timeout?: number): Promise<StoreInventoryResponseModels.PresentStoreItemOperationResponse>;
|
|
256
|
+
/**
|
|
257
|
+
* Sends the getStoreLog operation and returns the typed response via callback.
|
|
258
|
+
*/
|
|
60
259
|
getStoreLog(requestData: StoreInventoryModels.ServerGetStoreLogRequestData, onResponse?: Action1<StoreInventoryResponseModels.GetStoreLogOperationResponse>, overrideAuthToken?: string, overrideSecretKey?: string, customTags?: GNHashtable, timeout?: number): void;
|
|
260
|
+
/**
|
|
261
|
+
* Sends the getStoreLog operation and resolves with the typed response.
|
|
262
|
+
*/
|
|
61
263
|
getStoreLogAsync(requestData: StoreInventoryModels.ServerGetStoreLogRequestData, overrideAuthToken?: string, overrideSecretKey?: string, customTags?: GNHashtable, timeout?: number): Promise<StoreInventoryResponseModels.GetStoreLogOperationResponse>;
|
|
264
|
+
/**
|
|
265
|
+
* Sends the getStoreUsed operation and returns the typed response via callback.
|
|
266
|
+
*/
|
|
62
267
|
getStoreUsed(requestData: StoreInventoryModels.ServerGetStoreUsedRequestData, onResponse?: Action1<StoreInventoryResponseModels.GetStoreUsedOperationResponse>, overrideAuthToken?: string, overrideSecretKey?: string, customTags?: GNHashtable, timeout?: number): void;
|
|
268
|
+
/**
|
|
269
|
+
* Sends the getStoreUsed operation and resolves with the typed response.
|
|
270
|
+
*/
|
|
63
271
|
getStoreUsedAsync(requestData: StoreInventoryModels.ServerGetStoreUsedRequestData, overrideAuthToken?: string, overrideSecretKey?: string, customTags?: GNHashtable, timeout?: number): Promise<StoreInventoryResponseModels.GetStoreUsedOperationResponse>;
|
|
272
|
+
/**
|
|
273
|
+
* Sends the removeStoreUsed operation and returns the typed response via callback.
|
|
274
|
+
*/
|
|
64
275
|
removeStoreUsed(requestData: StoreInventoryModels.ServerRemoveStoreUsedRequestData, onResponse?: Action1<StoreInventoryResponseModels.RemoveStoreUsedOperationResponse>, overrideAuthToken?: string, overrideSecretKey?: string, customTags?: GNHashtable, timeout?: number): void;
|
|
276
|
+
/**
|
|
277
|
+
* Sends the removeStoreUsed operation and resolves with the typed response.
|
|
278
|
+
*/
|
|
65
279
|
removeStoreUsedAsync(requestData: StoreInventoryModels.ServerRemoveStoreUsedRequestData, overrideAuthToken?: string, overrideSecretKey?: string, customTags?: GNHashtable, timeout?: number): Promise<StoreInventoryResponseModels.RemoveStoreUsedOperationResponse>;
|
|
66
280
|
}
|
|
281
|
+
/**
|
|
282
|
+
* Admin-scoped StoreInventory namespace, reachable through
|
|
283
|
+
* `GNNetwork.storeInventory.admin`.
|
|
284
|
+
*
|
|
285
|
+
* Mirrors {@link ServerStoreInventoryApi} but routed through
|
|
286
|
+
* {@link RequestRole.Admin}. The backend uses the caller's
|
|
287
|
+
* admin auth token to authorise privileged operations such as
|
|
288
|
+
* editing the storefront catalog, force-granting items,
|
|
289
|
+
* issuing refunds. Reserved for dashboard / backoffice
|
|
290
|
+
* tools.
|
|
291
|
+
*/
|
|
67
292
|
export declare class AdminStoreInventoryApi {
|
|
293
|
+
/**
|
|
294
|
+
* Sends the buyStoreItem operation and returns the typed response via callback.
|
|
295
|
+
*/
|
|
68
296
|
buyStoreItem(requestData: StoreInventoryModels.AdminBuyStoreItemRequestData, onResponse?: Action1<StoreInventoryResponseModels.BuyStoreItemOperationResponse>, overrideAuthToken?: string, overrideSecretKey?: string, customTags?: GNHashtable, timeout?: number): void;
|
|
297
|
+
/**
|
|
298
|
+
* Sends the buyStoreItem operation and resolves with the typed response.
|
|
299
|
+
*/
|
|
69
300
|
buyStoreItemAsync(requestData: StoreInventoryModels.AdminBuyStoreItemRequestData, overrideAuthToken?: string, overrideSecretKey?: string, customTags?: GNHashtable, timeout?: number): Promise<StoreInventoryResponseModels.BuyStoreItemOperationResponse>;
|
|
301
|
+
/**
|
|
302
|
+
* Sends the getStoreItemInformation operation and returns the typed response via callback.
|
|
303
|
+
*/
|
|
70
304
|
getStoreItemInformation(requestData: StoreInventoryModels.AdminGetStoreItemInformationRequestData, onResponse?: Action1<StoreInventoryResponseModels.GetStoreItemInformationOperationResponse>, overrideAuthToken?: string, overrideSecretKey?: string, customTags?: GNHashtable, timeout?: number): void;
|
|
305
|
+
/**
|
|
306
|
+
* Sends the getStoreItemInformation operation and resolves with the typed response.
|
|
307
|
+
*/
|
|
71
308
|
getStoreItemInformationAsync(requestData: StoreInventoryModels.AdminGetStoreItemInformationRequestData, overrideAuthToken?: string, overrideSecretKey?: string, customTags?: GNHashtable, timeout?: number): Promise<StoreInventoryResponseModels.GetStoreItemInformationOperationResponse>;
|
|
309
|
+
/**
|
|
310
|
+
* Sends the getStoreItemsWithTag operation and returns the typed response via callback.
|
|
311
|
+
*/
|
|
72
312
|
getStoreItemsWithTag(requestData: StoreInventoryModels.AdminGetStoreItemsWithTagRequestData, onResponse?: Action1<StoreInventoryResponseModels.GetStoreItemsWithTagOperationResponse>, overrideAuthToken?: string, overrideSecretKey?: string, customTags?: GNHashtable, timeout?: number): void;
|
|
313
|
+
/**
|
|
314
|
+
* Sends the getStoreItemsWithTag operation and resolves with the typed response.
|
|
315
|
+
*/
|
|
73
316
|
getStoreItemsWithTagAsync(requestData: StoreInventoryModels.AdminGetStoreItemsWithTagRequestData, overrideAuthToken?: string, overrideSecretKey?: string, customTags?: GNHashtable, timeout?: number): Promise<StoreInventoryResponseModels.GetStoreItemsWithTagOperationResponse>;
|
|
317
|
+
/**
|
|
318
|
+
* Sends the createStoreItem operation and returns the typed response via callback.
|
|
319
|
+
*/
|
|
74
320
|
createStoreItem(requestData: StoreInventoryModels.AdminCreateStoreItemRequestData, onResponse?: Action1<StoreInventoryResponseModels.CreateStoreItemOperationResponse>, overrideAuthToken?: string, overrideSecretKey?: string, customTags?: GNHashtable, timeout?: number): void;
|
|
321
|
+
/**
|
|
322
|
+
* Sends the createStoreItem operation and resolves with the typed response.
|
|
323
|
+
*/
|
|
75
324
|
createStoreItemAsync(requestData: StoreInventoryModels.AdminCreateStoreItemRequestData, overrideAuthToken?: string, overrideSecretKey?: string, customTags?: GNHashtable, timeout?: number): Promise<StoreInventoryResponseModels.CreateStoreItemOperationResponse>;
|
|
325
|
+
/**
|
|
326
|
+
* Sends the setRemoveStatus operation and returns the typed response via callback.
|
|
327
|
+
*/
|
|
76
328
|
setRemoveStatus(requestData: StoreInventoryModels.AdminSetRemoveStatusRequestData, onResponse?: Action1<StoreInventoryResponseModels.SetRemoveStatusOperationResponse>, overrideAuthToken?: string, overrideSecretKey?: string, customTags?: GNHashtable, timeout?: number): void;
|
|
329
|
+
/**
|
|
330
|
+
* Sends the setRemoveStatus operation and resolves with the typed response.
|
|
331
|
+
*/
|
|
77
332
|
setRemoveStatusAsync(requestData: StoreInventoryModels.AdminSetRemoveStatusRequestData, overrideAuthToken?: string, overrideSecretKey?: string, customTags?: GNHashtable, timeout?: number): Promise<StoreInventoryResponseModels.SetRemoveStatusOperationResponse>;
|
|
333
|
+
/**
|
|
334
|
+
* Sends the setStoreItemInformation operation and returns the typed response via callback.
|
|
335
|
+
*/
|
|
78
336
|
setStoreItemInformation(requestData: StoreInventoryModels.AdminSetStoreItemInformationRequestData, onResponse?: Action1<StoreInventoryResponseModels.SetStoreItemInformationOperationResponse>, overrideAuthToken?: string, overrideSecretKey?: string, customTags?: GNHashtable, timeout?: number): void;
|
|
337
|
+
/**
|
|
338
|
+
* Sends the setStoreItemInformation operation and resolves with the typed response.
|
|
339
|
+
*/
|
|
79
340
|
setStoreItemInformationAsync(requestData: StoreInventoryModels.AdminSetStoreItemInformationRequestData, overrideAuthToken?: string, overrideSecretKey?: string, customTags?: GNHashtable, timeout?: number): Promise<StoreInventoryResponseModels.SetStoreItemInformationOperationResponse>;
|
|
341
|
+
/**
|
|
342
|
+
* Sends the validateAppleAppStoreReceipt operation and returns the typed response via callback.
|
|
343
|
+
*/
|
|
80
344
|
validateAppleAppStoreReceipt(requestData: StoreInventoryModels.AdminValidateAppleAppStoreReceiptRequestData, onResponse?: Action1<StoreInventoryResponseModels.ValidateAppleAppStoreReceiptOperationResponse>, overrideAuthToken?: string, overrideSecretKey?: string, customTags?: GNHashtable, timeout?: number): void;
|
|
345
|
+
/**
|
|
346
|
+
* Sends the validateAppleAppStoreReceipt operation and resolves with the typed response.
|
|
347
|
+
*/
|
|
81
348
|
validateAppleAppStoreReceiptAsync(requestData: StoreInventoryModels.AdminValidateAppleAppStoreReceiptRequestData, overrideAuthToken?: string, overrideSecretKey?: string, customTags?: GNHashtable, timeout?: number): Promise<StoreInventoryResponseModels.ValidateAppleAppStoreReceiptOperationResponse>;
|
|
349
|
+
/**
|
|
350
|
+
* Sends the validateFacebookStoreReceipt operation and returns the typed response via callback.
|
|
351
|
+
*/
|
|
82
352
|
validateFacebookStoreReceipt(requestData: StoreInventoryModels.AdminValidateFacebookStoreReceiptRequestData, onResponse?: Action1<StoreInventoryResponseModels.ValidateFacebookStoreReceiptOperationResponse>, overrideAuthToken?: string, overrideSecretKey?: string, customTags?: GNHashtable, timeout?: number): void;
|
|
353
|
+
/**
|
|
354
|
+
* Sends the validateFacebookStoreReceipt operation and resolves with the typed response.
|
|
355
|
+
*/
|
|
83
356
|
validateFacebookStoreReceiptAsync(requestData: StoreInventoryModels.AdminValidateFacebookStoreReceiptRequestData, overrideAuthToken?: string, overrideSecretKey?: string, customTags?: GNHashtable, timeout?: number): Promise<StoreInventoryResponseModels.ValidateFacebookStoreReceiptOperationResponse>;
|
|
357
|
+
/**
|
|
358
|
+
* Sends the validateGooglePlayStoreReceipt operation and returns the typed response via callback.
|
|
359
|
+
*/
|
|
84
360
|
validateGooglePlayStoreReceipt(requestData: StoreInventoryModels.AdminValidateGooglePlayStoreReceiptRequestData, onResponse?: Action1<StoreInventoryResponseModels.ValidateGooglePlayStoreReceiptOperationResponse>, overrideAuthToken?: string, overrideSecretKey?: string, customTags?: GNHashtable, timeout?: number): void;
|
|
361
|
+
/**
|
|
362
|
+
* Sends the validateGooglePlayStoreReceipt operation and resolves with the typed response.
|
|
363
|
+
*/
|
|
85
364
|
validateGooglePlayStoreReceiptAsync(requestData: StoreInventoryModels.AdminValidateGooglePlayStoreReceiptRequestData, overrideAuthToken?: string, overrideSecretKey?: string, customTags?: GNHashtable, timeout?: number): Promise<StoreInventoryResponseModels.ValidateGooglePlayStoreReceiptOperationResponse>;
|
|
365
|
+
/**
|
|
366
|
+
* Sends the getCreateLeaderboard operation and returns the typed response via callback.
|
|
367
|
+
*/
|
|
86
368
|
getCreateLeaderboard(requestData: StoreInventoryModels.AdminGetCreateLeaderboardRequestData, onResponse?: Action1<StoreInventoryResponseModels.GetCreateLeaderboardOperationResponse>, overrideAuthToken?: string, overrideSecretKey?: string, customTags?: GNHashtable, timeout?: number): void;
|
|
369
|
+
/**
|
|
370
|
+
* Sends the getCreateLeaderboard operation and resolves with the typed response.
|
|
371
|
+
*/
|
|
87
372
|
getCreateLeaderboardAsync(requestData: StoreInventoryModels.AdminGetCreateLeaderboardRequestData, overrideAuthToken?: string, overrideSecretKey?: string, customTags?: GNHashtable, timeout?: number): Promise<StoreInventoryResponseModels.GetCreateLeaderboardOperationResponse>;
|
|
373
|
+
/**
|
|
374
|
+
* Sends the presentStoreItem operation and returns the typed response via callback.
|
|
375
|
+
*/
|
|
88
376
|
presentStoreItem(requestData: StoreInventoryModels.AdminPresentStoreItemRequestData, onResponse?: Action1<StoreInventoryResponseModels.PresentStoreItemOperationResponse>, overrideAuthToken?: string, overrideSecretKey?: string, customTags?: GNHashtable, timeout?: number): void;
|
|
377
|
+
/**
|
|
378
|
+
* Sends the presentStoreItem operation and resolves with the typed response.
|
|
379
|
+
*/
|
|
89
380
|
presentStoreItemAsync(requestData: StoreInventoryModels.AdminPresentStoreItemRequestData, overrideAuthToken?: string, overrideSecretKey?: string, customTags?: GNHashtable, timeout?: number): Promise<StoreInventoryResponseModels.PresentStoreItemOperationResponse>;
|
|
381
|
+
/**
|
|
382
|
+
* Sends the getStoreLog operation and returns the typed response via callback.
|
|
383
|
+
*/
|
|
90
384
|
getStoreLog(requestData: StoreInventoryModels.AdminGetStoreLogRequestData, onResponse?: Action1<StoreInventoryResponseModels.GetStoreLogOperationResponse>, overrideAuthToken?: string, overrideSecretKey?: string, customTags?: GNHashtable, timeout?: number): void;
|
|
385
|
+
/**
|
|
386
|
+
* Sends the getStoreLog operation and resolves with the typed response.
|
|
387
|
+
*/
|
|
91
388
|
getStoreLogAsync(requestData: StoreInventoryModels.AdminGetStoreLogRequestData, overrideAuthToken?: string, overrideSecretKey?: string, customTags?: GNHashtable, timeout?: number): Promise<StoreInventoryResponseModels.GetStoreLogOperationResponse>;
|
|
389
|
+
/**
|
|
390
|
+
* Sends the getStoreUsed operation and returns the typed response via callback.
|
|
391
|
+
*/
|
|
92
392
|
getStoreUsed(requestData: StoreInventoryModels.AdminGetStoreUsedRequestData, onResponse?: Action1<StoreInventoryResponseModels.GetStoreUsedOperationResponse>, overrideAuthToken?: string, overrideSecretKey?: string, customTags?: GNHashtable, timeout?: number): void;
|
|
393
|
+
/**
|
|
394
|
+
* Sends the getStoreUsed operation and resolves with the typed response.
|
|
395
|
+
*/
|
|
93
396
|
getStoreUsedAsync(requestData: StoreInventoryModels.AdminGetStoreUsedRequestData, overrideAuthToken?: string, overrideSecretKey?: string, customTags?: GNHashtable, timeout?: number): Promise<StoreInventoryResponseModels.GetStoreUsedOperationResponse>;
|
|
397
|
+
/**
|
|
398
|
+
* Sends the removeStoreUsed operation and returns the typed response via callback.
|
|
399
|
+
*/
|
|
94
400
|
removeStoreUsed(requestData: StoreInventoryModels.AdminRemoveStoreUsedRequestData, onResponse?: Action1<StoreInventoryResponseModels.RemoveStoreUsedOperationResponse>, overrideAuthToken?: string, overrideSecretKey?: string, customTags?: GNHashtable, timeout?: number): void;
|
|
401
|
+
/**
|
|
402
|
+
* Sends the removeStoreUsed operation and resolves with the typed response.
|
|
403
|
+
*/
|
|
95
404
|
removeStoreUsedAsync(requestData: StoreInventoryModels.AdminRemoveStoreUsedRequestData, overrideAuthToken?: string, overrideSecretKey?: string, customTags?: GNHashtable, timeout?: number): Promise<StoreInventoryResponseModels.RemoveStoreUsedOperationResponse>;
|
|
96
405
|
}
|
|
@@ -1 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Zero-argument, void-returning callback signature.
|
|
3
|
+
*
|
|
4
|
+
* The SDK uses `Action*` aliases throughout the public API as a single,
|
|
5
|
+
* recognisable shorthand for "callback that the SDK will invoke at some
|
|
6
|
+
* point". Compared to the inline `() => void` type literal, the alias
|
|
7
|
+
* gives every signature a stable name that turns up in IDE auto-complete
|
|
8
|
+
* and in generated `.d.ts` files, which makes it easier for application
|
|
9
|
+
* code to declare a matching variable type:
|
|
10
|
+
*
|
|
11
|
+
* ```ts
|
|
12
|
+
* const onConnected: Action0 = () => {
|
|
13
|
+
* console.log("socket connected");
|
|
14
|
+
* };
|
|
15
|
+
* GNNetwork.subscriberOnConnectHandler(onConnected);
|
|
16
|
+
* GNNetwork.unscriberOnConnectHandler(onConnected); // same reference
|
|
17
|
+
* ```
|
|
18
|
+
*
|
|
19
|
+
* Use `Action0` for fire-and-forget signals where the callback only
|
|
20
|
+
* needs to know that the event happened (connect, disconnect, generic
|
|
21
|
+
* "done"). For callbacks that carry data, prefer the corresponding
|
|
22
|
+
* arity-specific alias: {@link Action1}, {@link Action2},
|
|
23
|
+
* {@link Action3}, {@link Action4}.
|
|
24
|
+
*
|
|
25
|
+
* Return value: callbacks are expected to return `void`. The SDK never
|
|
26
|
+
* inspects the return value; throwing inside the callback propagates to
|
|
27
|
+
* the SDK call site, which is usually inside the {@link ServiceUpdate}
|
|
28
|
+
* tick or an HTTP/socket response dispatch — uncaught throws there are
|
|
29
|
+
* surfaced through `console.error`.
|
|
30
|
+
*/
|
|
1
31
|
export type Action0 = () => void;
|
|
@@ -1 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Single-argument, void-returning callback signature.
|
|
3
|
+
*
|
|
4
|
+
* The SDK uses this alias for every "callback that delivers a value"
|
|
5
|
+
* pattern. The most common consumers are the typed response callbacks on
|
|
6
|
+
* the `*Api` wrappers and `GNNetwork.sendVia*` helpers, where the
|
|
7
|
+
* generic parameter `T` is a {@link OperationResponse} subclass:
|
|
8
|
+
*
|
|
9
|
+
* ```ts
|
|
10
|
+
* const onLogin: Action1<AuthenticateResponseModels.LoginByAccountOperationResponse> =
|
|
11
|
+
* response => {
|
|
12
|
+
* if (response.hasError()) {
|
|
13
|
+
* console.warn("login failed", response.getReturnCode());
|
|
14
|
+
* return;
|
|
15
|
+
* }
|
|
16
|
+
* console.log("authToken =", response.getResponseData().authToken);
|
|
17
|
+
* };
|
|
18
|
+
* GNNetwork.authenticate.loginByAccount(requestData, onLogin);
|
|
19
|
+
* ```
|
|
20
|
+
*
|
|
21
|
+
* @template T Type of the value that the SDK passes to the callback.
|
|
22
|
+
* For response callbacks this is the typed response class;
|
|
23
|
+
* for event callbacks it is {@link OperationEvent}; for
|
|
24
|
+
* the rare numeric callbacks (`syncTs`) it is `number`.
|
|
25
|
+
*
|
|
26
|
+
* Behaviour notes:
|
|
27
|
+
* - The SDK never inspects the return value.
|
|
28
|
+
* - When the SDK is asked for a fire-and-forget call (callback is
|
|
29
|
+
* `null`) it skips the invocation entirely. Make sure your call site
|
|
30
|
+
* is robust to "callback never fires" — typical causes are network
|
|
31
|
+
* timeouts, transport disabled, or a `null` decoded payload.
|
|
32
|
+
*/
|
|
1
33
|
export type Action1<T> = (t: T) => void;
|
|
@@ -1 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Two-argument, void-returning callback signature.
|
|
3
|
+
*
|
|
4
|
+
* Reserved for callbacks that need to surface two pieces of data
|
|
5
|
+
* simultaneously without forcing the caller to allocate a tuple or a
|
|
6
|
+
* dedicated DTO. Most public callbacks in the SDK only carry a single
|
|
7
|
+
* value (see {@link Action1}) so this alias appears mainly in
|
|
8
|
+
* lower-level transport wiring and in user-supplied integration code
|
|
9
|
+
* that wants to extend the SDK with multi-argument hooks.
|
|
10
|
+
*
|
|
11
|
+
* @template T1 Type of the first value passed to the callback.
|
|
12
|
+
* @template T2 Type of the second value passed to the callback.
|
|
13
|
+
*
|
|
14
|
+
* Example:
|
|
15
|
+
* ```ts
|
|
16
|
+
* type ProgressHandler = Action2<number, number>; // (sentBytes, totalBytes)
|
|
17
|
+
* ```
|
|
18
|
+
*
|
|
19
|
+
* Same return-value contract as {@link Action0}: the SDK never reads
|
|
20
|
+
* the return value, throws bubble out to the caller.
|
|
21
|
+
*/
|
|
1
22
|
export type Action2<T1, T2> = (t1: T1, t2: T2) => void;
|
|
@@ -1 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Three-argument, void-returning callback signature.
|
|
3
|
+
*
|
|
4
|
+
* Companion to {@link Action0}, {@link Action1} and {@link Action2}.
|
|
5
|
+
* Provided for symmetry so that integration code can declare callbacks
|
|
6
|
+
* of any arity without inventing local type aliases. The public SDK
|
|
7
|
+
* surface itself rarely uses arity ≥ 3 callbacks — they appear mostly
|
|
8
|
+
* in advanced custom transports or testing harnesses.
|
|
9
|
+
*
|
|
10
|
+
* @template T1 First argument type.
|
|
11
|
+
* @template T2 Second argument type.
|
|
12
|
+
* @template T3 Third argument type.
|
|
13
|
+
*
|
|
14
|
+
* Same return-value contract as {@link Action0}: callbacks are expected
|
|
15
|
+
* to return `void`; throws propagate to the SDK call site.
|
|
16
|
+
*/
|
|
1
17
|
export type Action3<T1, T2, T3> = (t1: T1, t2: T2, t3: T3) => void;
|
|
@@ -1 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Four-argument, void-returning callback signature.
|
|
3
|
+
*
|
|
4
|
+
* Highest arity provided by the `Action*` family. The SDK exports it
|
|
5
|
+
* for completeness — most public APIs use {@link Action0} or
|
|
6
|
+
* {@link Action1}, but advanced integrations (custom multipart upload
|
|
7
|
+
* flows, multi-stage progress reporters) occasionally find it
|
|
8
|
+
* convenient to pass four positional values without first wrapping them
|
|
9
|
+
* in a DTO.
|
|
10
|
+
*
|
|
11
|
+
* @template T1 First argument type.
|
|
12
|
+
* @template T2 Second argument type.
|
|
13
|
+
* @template T3 Third argument type.
|
|
14
|
+
* @template T4 Fourth argument type.
|
|
15
|
+
*
|
|
16
|
+
* Same return-value contract as {@link Action0}.
|
|
17
|
+
*/
|
|
1
18
|
export type Action4<T1, T2, T3, T4> = (t1: T1, t2: T2, t3: T3, t4: T4) => void;
|