Skip to content

Commit

Permalink
https://docs.microsoft.com/en-us/gaming/playfab/release-notes/#220328
Browse files Browse the repository at this point in the history
  • Loading branch information
PlayFab SDK Team authored and PlayFab SDK Team committed Mar 28, 2022
1 parent c80fd1c commit c0a0331
Show file tree
Hide file tree
Showing 8 changed files with 100 additions and 8 deletions.
4 changes: 2 additions & 2 deletions PlayFabSdk/Scripts/PlayFab/PlayFab.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand All @@ -19,7 +19,7 @@ var _internalSettings = (exports._internalSettings = {
entityToken: null,
sessionTicket: null,
requestGetParams: {
sdk: "JavaScriptSDK-2.87.220317",
sdk: "JavaScriptSDK-2.89.220328",
},
});

Expand Down
28 changes: 28 additions & 0 deletions PlayFabSdk/Scripts/PlayFab/PlayFabMultiplayer.js
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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",
Expand Down
1 change: 1 addition & 0 deletions PlayFabSdk/Scripts/typings/PlayFab/PlayFabAdmin.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2332,6 +2332,7 @@ declare module PlayFabAdminModels {
| "NoValidIdentityForAad"
| "PlayerIdentityLinkNotFound"
| "PhotonApplicationIdAlreadyInUse"
| "CloudScriptUnableToDeleteProductionRevision"
| "MatchmakingEntityInvalid"
| "MatchmakingPlayerAttributesInvalid"
| "MatchmakingQueueNotFound"
Expand Down
10 changes: 10 additions & 0 deletions PlayFabSdk/Scripts/typings/PlayFab/PlayFabEconomy.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 };
Expand Down Expand Up @@ -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;
Expand All @@ -632,6 +638,8 @@ declare module PlayFabEconomyModels {
| "Failed"
| "Canceled";

export interface PurchaseOverride {}

export interface Rating {
// The average rating for this item.
Average?: number;
Expand Down Expand Up @@ -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;
Expand Down
58 changes: 55 additions & 3 deletions PlayFabSdk/Scripts/typings/PlayFab/PlayFabMultiplayer.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -430,12 +430,24 @@ declare module PlayFabMultiplayerModule {
request: PlayFabMultiplayerModels.SubscribeToLobbyResourceRequest | null,
callback: PlayFabModule.ApiCallback<PlayFabMultiplayerModels.SubscribeToLobbyResourceResult> | 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<PlayFabMultiplayerModels.SubscribeToMatchResourceResult> | null,
): void;
// Unsubscribe from lobby notifications.
// https://docs.microsoft.com/rest/api/playfab/multiplayer/lobby/unsubscribefromlobbyresource
UnsubscribeFromLobbyResource(
request: PlayFabMultiplayerModels.UnsubscribeFromLobbyResourceRequest | null,
callback: PlayFabModule.ApiCallback<PlayFabMultiplayerModels.LobbyEmptyResult> | 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<PlayFabMultiplayerModels.UnsubscribeFromMatchResourceResult> | null,
): void;
// Untags a container image.
// https://docs.microsoft.com/rest/api/playfab/multiplayer/multiplayerserver/untagcontainerimage
UntagContainerImage(
Expand Down Expand Up @@ -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;
}
Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -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";

Expand Down Expand Up @@ -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 };
Expand Down
1 change: 1 addition & 0 deletions PlayFabSdk/Scripts/typings/PlayFab/PlayFabServer.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2312,6 +2312,7 @@ declare module PlayFabServerModels {
| "NoValidIdentityForAad"
| "PlayerIdentityLinkNotFound"
| "PhotonApplicationIdAlreadyInUse"
| "CloudScriptUnableToDeleteProductionRevision"
| "MatchmakingEntityInvalid"
| "MatchmakingPlayerAttributesInvalid"
| "MatchmakingQueueNotFound"
Expand Down
4 changes: 2 additions & 2 deletions PlayFabSdk/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion PlayFabSdk/package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down

0 comments on commit c0a0331

Please sign in to comment.