diff --git a/PlayFabSdk/Scripts/PlayFab/PlayFab.js b/PlayFabSdk/Scripts/PlayFab/PlayFab.js index 087310b..a084a09 100644 --- a/PlayFabSdk/Scripts/PlayFab/PlayFab.js +++ b/PlayFabSdk/Scripts/PlayFab/PlayFab.js @@ -3,7 +3,7 @@ var url = require("url"); var https = require("https"); -exports.sdk_version = "2.87.220317"; +exports.sdk_version = "2.89.220328"; exports.buildIdentifier = "adobuild_nodesdk_114"; var settings = (exports.settings = { @@ -19,7 +19,7 @@ var _internalSettings = (exports._internalSettings = { entityToken: null, sessionTicket: null, requestGetParams: { - sdk: "JavaScriptSDK-2.87.220317", + sdk: "JavaScriptSDK-2.89.220328", }, }); diff --git a/PlayFabSdk/Scripts/PlayFab/PlayFabMultiplayer.js b/PlayFabSdk/Scripts/PlayFab/PlayFabMultiplayer.js index b2eb1f7..403e4f8 100644 --- a/PlayFabSdk/Scripts/PlayFab/PlayFabMultiplayer.js +++ b/PlayFabSdk/Scripts/PlayFab/PlayFabMultiplayer.js @@ -984,6 +984,20 @@ exports.SubscribeToLobbyResource = function (request, callback) { ); }; +exports.SubscribeToMatchmakingResource = function (request, callback) { + PlayFab.MakeRequest( + PlayFab.GetServerUrl() + "/Match/SubscribeToMatchmakingResource", + request, + "X-EntityToken", + PlayFab._internalSettings.entityToken, + function (error, result) { + if (callback != null) { + callback(error, result); + } + }, + ); +}; + exports.UnsubscribeFromLobbyResource = function (request, callback) { PlayFab.MakeRequest( PlayFab.GetServerUrl() + "/Lobby/UnsubscribeFromLobbyResource", @@ -998,6 +1012,20 @@ exports.UnsubscribeFromLobbyResource = function (request, callback) { ); }; +exports.UnsubscribeFromMatchmakingResource = function (request, callback) { + PlayFab.MakeRequest( + PlayFab.GetServerUrl() + "/Match/UnsubscribeFromMatchmakingResource", + request, + "X-EntityToken", + PlayFab._internalSettings.entityToken, + function (error, result) { + if (callback != null) { + callback(error, result); + } + }, + ); +}; + exports.UntagContainerImage = function (request, callback) { PlayFab.MakeRequest( PlayFab.GetServerUrl() + "/MultiplayerServer/UntagContainerImage", diff --git a/PlayFabSdk/Scripts/typings/PlayFab/PlayFabAdmin.d.ts b/PlayFabSdk/Scripts/typings/PlayFab/PlayFabAdmin.d.ts index 88b441c..242cd64 100644 --- a/PlayFabSdk/Scripts/typings/PlayFab/PlayFabAdmin.d.ts +++ b/PlayFabSdk/Scripts/typings/PlayFab/PlayFabAdmin.d.ts @@ -2332,6 +2332,7 @@ declare module PlayFabAdminModels { | "NoValidIdentityForAad" | "PlayerIdentityLinkNotFound" | "PhotonApplicationIdAlreadyInUse" + | "CloudScriptUnableToDeleteProductionRevision" | "MatchmakingEntityInvalid" | "MatchmakingPlayerAttributesInvalid" | "MatchmakingQueueNotFound" diff --git a/PlayFabSdk/Scripts/typings/PlayFab/PlayFabEconomy.d.ts b/PlayFabSdk/Scripts/typings/PlayFab/PlayFabEconomy.d.ts index 466f55e..9260dc9 100644 --- a/PlayFabSdk/Scripts/typings/PlayFab/PlayFabEconomy.d.ts +++ b/PlayFabSdk/Scripts/typings/PlayFab/PlayFabEconomy.d.ts @@ -376,6 +376,8 @@ declare module PlayFabEconomyModels { Tags?: string[]; } + export interface FilterOptions {} + export interface GetCatalogConfigRequest extends PlayFabModule.IPlayFabRequestCommon { // The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). CustomTags?: { [key: string]: string | null }; @@ -609,6 +611,10 @@ declare module PlayFabEconomyModels { Uaid?: string; } + export interface PriceOverride {} + + export interface PricesOverride {} + export interface PublishDraftItemRequest extends PlayFabModule.IPlayFabRequestCommon { // An alternate ID associated with this item. AlternateId?: CatalogAlternateId; @@ -632,6 +638,8 @@ declare module PlayFabEconomyModels { | "Failed" | "Canceled"; + export interface PurchaseOverride {} + export interface Rating { // The average rating for this item. Average?: number; @@ -783,6 +791,8 @@ declare module PlayFabEconomyModels { export interface SetItemModerationStateResponse extends PlayFabModule.IPlayFabResultCommon {} + export interface StoreDetails {} + export interface StoreInfo { // An alternate ID of the store. AlternateId?: CatalogAlternateId; diff --git a/PlayFabSdk/Scripts/typings/PlayFab/PlayFabMultiplayer.d.ts b/PlayFabSdk/Scripts/typings/PlayFab/PlayFabMultiplayer.d.ts index 1d0bff4..12110c9 100644 --- a/PlayFabSdk/Scripts/typings/PlayFab/PlayFabMultiplayer.d.ts +++ b/PlayFabSdk/Scripts/typings/PlayFab/PlayFabMultiplayer.d.ts @@ -430,12 +430,24 @@ declare module PlayFabMultiplayerModule { request: PlayFabMultiplayerModels.SubscribeToLobbyResourceRequest | null, callback: PlayFabModule.ApiCallback | null, ): void; + // Subscribe to match resource notifications. + // https://docs.microsoft.com/rest/api/playfab/multiplayer/matchmaking/subscribetomatchmakingresource + SubscribeToMatchmakingResource( + request: PlayFabMultiplayerModels.SubscribeToMatchResourceRequest | null, + callback: PlayFabModule.ApiCallback | null, + ): void; // Unsubscribe from lobby notifications. // https://docs.microsoft.com/rest/api/playfab/multiplayer/lobby/unsubscribefromlobbyresource UnsubscribeFromLobbyResource( request: PlayFabMultiplayerModels.UnsubscribeFromLobbyResourceRequest | null, callback: PlayFabModule.ApiCallback | null, ): void; + // Unsubscribe from match resource notifications. + // https://docs.microsoft.com/rest/api/playfab/multiplayer/matchmaking/unsubscribefrommatchmakingresource + UnsubscribeFromMatchmakingResource( + request: PlayFabMultiplayerModels.UnsubscribeFromMatchResourceRequest | null, + callback: PlayFabModule.ApiCallback | null, + ): void; // Untags a container image. // https://docs.microsoft.com/rest/api/playfab/multiplayer/multiplayerserver/untagcontainerimage UntagContainerImage( @@ -1550,9 +1562,6 @@ declare module PlayFabMultiplayerModels { // The command to run when the multiplayer server has been allocated, including any arguments. This only applies to managed // builds. If the build is a custom build, this field will be null. StartMultiplayerServerCommand?: string; - // When true, assets will be downloaded and uncompressed in memory, without the compressedversion being written first to - // disc. - UseStreamingForAssetDownloads?: boolean; // The VM size the build was created on. VmSize?: string; } @@ -1610,6 +1619,8 @@ declare module PlayFabMultiplayerModels { export interface GetMatchmakingTicketResult extends PlayFabModule.IPlayFabResultCommon { // The reason why the current ticket was canceled. This field is only set if the ticket is in canceled state. CancellationReasonString?: string; + // Change number used for differentiating older matchmaking status updates from newer ones. + ChangeNumber?: number; // The server date and time at which ticket was created. Created: string; // The Creator's entity key. @@ -1646,6 +1657,8 @@ declare module PlayFabMultiplayerModels { } export interface GetMatchResult extends PlayFabModule.IPlayFabResultCommon { + // A string that is used by players that are matched together to join an arranged lobby. + ArrangementString?: string; // The Id of a match. MatchId: string; // A list of Users that are matched together, along with their team assignments. @@ -2691,6 +2704,28 @@ declare module PlayFabMultiplayerModels { Topic: string; } + export interface SubscribeToMatchResourceRequest extends PlayFabModule.IPlayFabRequestCommon { + // The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). + CustomTags?: { [key: string]: string | null }; + // The entity performing the subscription. The entity must be authorized to use this connectionHandle. + EntityKey: EntityKey; + // Opaque string, given to a client upon creating a connection with PubSub. Notifications will be sent to the connection + // associated with this handle. + PubSubConnectionHandle: string; + // The name of the resource to subscribe to. + ResourceId: string; + // Version number for the subscription of this resource. Current supported version must be 1. + SubscriptionVersion: number; + // Subscription type. MatchInvite subscriptions are per-player. MatchTicketStatusChange subscriptions are per-ticket. + // Subscribe calls are idempotent. Subscribing on the same resource for the same connection results in success. + Type: string; + } + + export interface SubscribeToMatchResourceResult extends PlayFabModule.IPlayFabResultCommon { + // Matchmaking resource + Topic: string; + } + type SubscriptionType = "LobbyChange" | "LobbyInvite"; @@ -2761,6 +2796,23 @@ declare module PlayFabMultiplayerModels { Type: string; } + export interface UnsubscribeFromMatchResourceRequest extends PlayFabModule.IPlayFabRequestCommon { + // The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). + CustomTags?: { [key: string]: string | null }; + // The entity performing the unsubscription. The entity must be authorized to use this connectionHandle. + EntityKey: EntityKey; + // Opaque string, given to a client upon creating a connection with PubSub. + PubSubConnectionHandle: string; + // The resource to unsubscribe from. + ResourceId: string; + // Version number for the unsubscription from this resource. + SubscriptionVersion: number; + // Type of the subscription to be canceled. + Type: string; + } + + export interface UnsubscribeFromMatchResourceResult extends PlayFabModule.IPlayFabResultCommon {} + export interface UntagContainerImageRequest extends PlayFabModule.IPlayFabRequestCommon { // The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.). CustomTags?: { [key: string]: string | null }; diff --git a/PlayFabSdk/Scripts/typings/PlayFab/PlayFabServer.d.ts b/PlayFabSdk/Scripts/typings/PlayFab/PlayFabServer.d.ts index fefb775..f8f59f9 100644 --- a/PlayFabSdk/Scripts/typings/PlayFab/PlayFabServer.d.ts +++ b/PlayFabSdk/Scripts/typings/PlayFab/PlayFabServer.d.ts @@ -2312,6 +2312,7 @@ declare module PlayFabServerModels { | "NoValidIdentityForAad" | "PlayerIdentityLinkNotFound" | "PhotonApplicationIdAlreadyInUse" + | "CloudScriptUnableToDeleteProductionRevision" | "MatchmakingEntityInvalid" | "MatchmakingPlayerAttributesInvalid" | "MatchmakingQueueNotFound" diff --git a/PlayFabSdk/package-lock.json b/PlayFabSdk/package-lock.json index 7597115..28a474e 100644 --- a/PlayFabSdk/package-lock.json +++ b/PlayFabSdk/package-lock.json @@ -1,12 +1,12 @@ { "name": "playfab-sdk", - "version": "2.87.220317", + "version": "2.89.220328", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "playfab-sdk", - "version": "2.87.220317", + "version": "2.89.220328", "license": "Apache-2.0", "devDependencies": { "@types/node": "^9.6.55", diff --git a/PlayFabSdk/package.json b/PlayFabSdk/package.json index af59fce..8936f6f 100644 --- a/PlayFabSdk/package.json +++ b/PlayFabSdk/package.json @@ -1,6 +1,6 @@ { "name": "playfab-sdk", - "version": "2.87.220317", + "version": "2.89.220328", "description": "Playfab SDK for node.js applications", "license": "Apache-2.0", "devDependencies": {