diff --git a/PlayFabSdk/Scripts/PlayFab/PlayFab.js b/PlayFabSdk/Scripts/PlayFab/PlayFab.js index 38cb4ee8..4fb26e64 100644 --- a/PlayFabSdk/Scripts/PlayFab/PlayFab.js +++ b/PlayFabSdk/Scripts/PlayFab/PlayFab.js @@ -3,8 +3,8 @@ var url = require("url"); var https = require("https"); -exports.sdk_version = "2.47.200518"; -exports.buildIdentifier = "jbuild_nodesdk__sdk-genericslave-3_2"; +exports.sdk_version = "2.48.200602"; +exports.buildIdentifier = "jbuild_nodesdk__sdk-genericslave-3_0"; var settings = (exports.settings = { productionUrl: ".playfabapi.com", @@ -27,7 +27,7 @@ var _internalSettings = (exports._internalSettings = { entityToken: null, sessionTicket: null, requestGetParams: { - sdk: "JavaScriptSDK-2.47.200518", + sdk: "JavaScriptSDK-2.48.200602", }, }); diff --git a/PlayFabSdk/Scripts/PlayFab/PlayFabClient.js b/PlayFabSdk/Scripts/PlayFab/PlayFabClient.js index 4ff2d7eb..37fbca68 100644 --- a/PlayFabSdk/Scripts/PlayFab/PlayFabClient.js +++ b/PlayFabSdk/Scripts/PlayFab/PlayFabClient.js @@ -1364,12 +1364,12 @@ exports.LinkKongregate = function (request, callback) { ); }; -exports.LinkNintendoSwitchAccount = function (request, callback) { +exports.LinkNintendoAccount = function (request, callback) { if (PlayFab._internalSettings.sessionTicket == null) { throw "Must be logged in to call this method"; } PlayFab.MakeRequest( - PlayFab.GetServerUrl() + "/Client/LinkNintendoSwitchAccount", + PlayFab.GetServerUrl() + "/Client/LinkNintendoAccount", request, "X-Authorization", PlayFab._internalSettings.sessionTicket, @@ -1730,13 +1730,13 @@ exports.LoginWithKongregate = function (request, callback) { ); }; -exports.LoginWithNintendoSwitchAccount = function (request, callback) { +exports.LoginWithNintendoAccount = function (request, callback) { request.TitleId = request.titleId != null ? request.TitleId : PlayFab.settings.titleId; if (request.TitleId == null) { throw "Must be have PlayFab.settings.titleId set to call this method"; } PlayFab.MakeRequest( - PlayFab.GetServerUrl() + "/Client/LoginWithNintendoSwitchAccount", + PlayFab.GetServerUrl() + "/Client/LoginWithNintendoAccount", request, null, null, @@ -2507,12 +2507,12 @@ exports.UnlinkKongregate = function (request, callback) { ); }; -exports.UnlinkNintendoSwitchAccount = function (request, callback) { +exports.UnlinkNintendoAccount = function (request, callback) { if (PlayFab._internalSettings.sessionTicket == null) { throw "Must be logged in to call this method"; } PlayFab.MakeRequest( - PlayFab.GetServerUrl() + "/Client/UnlinkNintendoSwitchAccount", + PlayFab.GetServerUrl() + "/Client/UnlinkNintendoAccount", request, "X-Authorization", PlayFab._internalSettings.sessionTicket, diff --git a/PlayFabSdk/Scripts/PlayFab/PlayFabMultiplayer.js b/PlayFabSdk/Scripts/PlayFab/PlayFabMultiplayer.js index f2ef90bc..89035c8a 100644 --- a/PlayFabSdk/Scripts/PlayFab/PlayFabMultiplayer.js +++ b/PlayFabSdk/Scripts/PlayFab/PlayFabMultiplayer.js @@ -638,8 +638,8 @@ exports.ListPartyQosServers = function (request, callback) { PlayFab.MakeRequest( PlayFab.GetServerUrl() + "/MultiplayerServer/ListPartyQosServers", request, - "X-EntityToken", - PlayFab._internalSettings.entityToken, + null, + null, function (error, result) { if (callback != null) { callback(error, result); diff --git a/PlayFabSdk/Scripts/typings/PlayFab/PlayFabClient.d.ts b/PlayFabSdk/Scripts/typings/PlayFab/PlayFabClient.d.ts index 8fe70452..ba52cb7d 100644 --- a/PlayFabSdk/Scripts/typings/PlayFab/PlayFabClient.d.ts +++ b/PlayFabSdk/Scripts/typings/PlayFab/PlayFabClient.d.ts @@ -526,10 +526,10 @@ declare module PlayFabClientModule { request: PlayFabClientModels.LinkKongregateAccountRequest | null, callback: PlayFabModule.ApiCallback | null, ): void; - // Links the Nintendo Switch account associated with the token to the user's PlayFab account. - // https://docs.microsoft.com/rest/api/playfab/client/account-management/linknintendoswitchaccount - LinkNintendoSwitchAccount( - request: PlayFabClientModels.LinkNintendoSwitchAccountRequest | null, + // Links the Nintendo account associated with the token to the user's PlayFab account. (Open ID) + // https://docs.microsoft.com/rest/api/playfab/client/account-management/linknintendoaccount + LinkNintendoAccount( + request: PlayFabClientModels.LinkNintendoAccountRequest | null, callback: PlayFabModule.ApiCallback | null, ): void; // Links the NintendoSwitchDeviceId to the user's PlayFab account @@ -644,10 +644,10 @@ declare module PlayFabClientModule { request: PlayFabClientModels.LoginWithKongregateRequest | null, callback: PlayFabModule.ApiCallback | null, ): void; - // Signs in the user with a Nintendo Switch Account identity token. - // https://docs.microsoft.com/rest/api/playfab/client/authentication/loginwithnintendoswitchaccount - LoginWithNintendoSwitchAccount( - request: PlayFabClientModels.LoginWithNintendoSwitchAccountRequest | null, + // Signs in the user with a Nintendo account identity token. (Open ID) + // https://docs.microsoft.com/rest/api/playfab/client/authentication/loginwithnintendoaccount + LoginWithNintendoAccount( + request: PlayFabClientModels.LoginWithNintendoAccountRequest | null, callback: PlayFabModule.ApiCallback | null, ): void; // Signs the user in using a Nintendo Switch Device ID, returning a session identifier that can subsequently be used for @@ -926,10 +926,10 @@ declare module PlayFabClientModule { request: PlayFabClientModels.UnlinkKongregateAccountRequest | null, callback: PlayFabModule.ApiCallback | null, ): void; - // Unlinks the related Nintendo Switch account from the user's PlayFab account. - // https://docs.microsoft.com/rest/api/playfab/client/account-management/unlinknintendoswitchaccount - UnlinkNintendoSwitchAccount( - request: PlayFabClientModels.UnlinkNintendoSwitchAccountRequest | null, + // Unlinks the related Nintendo account from the user's PlayFab account. (Open ID) + // https://docs.microsoft.com/rest/api/playfab/client/account-management/unlinknintendoaccount + UnlinkNintendoAccount( + request: PlayFabClientModels.UnlinkNintendoAccountRequest | null, callback: PlayFabModule.ApiCallback | null, ): void; // Unlinks the related NintendoSwitchDeviceId from the user's PlayFab account @@ -3015,9 +3015,7 @@ declare module PlayFabClientModels { export interface LinkKongregateAccountResult extends PlayFabModule.IPlayFabResultCommon {} - export interface LinkNintendoSwitchAccountRequest extends PlayFabModule.IPlayFabRequestCommon { - // ID of the Nintendo Switch environment. If null, defaults to the production environment. - EnvironmentId?: string; + export interface LinkNintendoAccountRequest extends PlayFabModule.IPlayFabRequestCommon { // If another user is already linked to a specific Nintendo Switch account, unlink the other user and re-link. ForceLink?: boolean; // The JSON Web token (JWT) returned by Nintendo after login. Used to validate the request and find the user ID (Nintendo @@ -3340,13 +3338,11 @@ declare module PlayFabClientModels { TitleId?: string; } - export interface LoginWithNintendoSwitchAccountRequest extends PlayFabModule.IPlayFabRequestCommon { + export interface LoginWithNintendoAccountRequest extends PlayFabModule.IPlayFabRequestCommon { // Automatically create a PlayFab account if one is not currently linked to this ID. CreateAccount?: boolean; // Base64 encoded body that is encrypted with the Title's public RSA key (Enterprise Only). EncryptedRequest?: string; - // ID of the Nintendo Switch environment. If null, defaults to the production environment. - EnvironmentId?: string; // The JSON Web token (JWT) returned by Nintendo after login. IdentityToken: string; // Flags for which pieces of info to return for the user. @@ -4349,7 +4345,7 @@ declare module PlayFabClientModels { export interface UnlinkKongregateAccountResult extends PlayFabModule.IPlayFabResultCommon {} - export interface UnlinkNintendoSwitchAccountRequest extends PlayFabModule.IPlayFabRequestCommon {} + export interface UnlinkNintendoAccountRequest extends PlayFabModule.IPlayFabRequestCommon {} export interface UnlinkNintendoSwitchDeviceIdRequest extends PlayFabModule.IPlayFabRequestCommon { // Nintendo Switch Device identifier for the user. If not specified, the most recently signed in device ID will be used. diff --git a/PlayFabSdk/Scripts/typings/PlayFab/PlayFabEvents.d.ts b/PlayFabSdk/Scripts/typings/PlayFab/PlayFabEvents.d.ts index e8907272..2fd6d98d 100644 --- a/PlayFabSdk/Scripts/typings/PlayFab/PlayFabEvents.d.ts +++ b/PlayFabSdk/Scripts/typings/PlayFab/PlayFabEvents.d.ts @@ -1,7 +1,7 @@ declare module PlayFabEventsModule { export interface IPlayFabEvents { settings: PlayFabModule.IPlayFabSettings; - // Write batches of entity based events to PlayStream. The namespace of the Event must start with 'com.playfab.events.' + // Write batches of entity based events to PlayStream. The namespace of the Event must be 'custom' or start with 'custom.'. // https://docs.microsoft.com/rest/api/playfab/events/playstream-events/writeevents WriteEvents( request: PlayFabEventsModels.WriteEventsRequest | null, diff --git a/PlayFabSdk/Scripts/typings/PlayFab/PlayFabMultiplayer.d.ts b/PlayFabSdk/Scripts/typings/PlayFab/PlayFabMultiplayer.d.ts index 43f15b2e..a31004aa 100644 --- a/PlayFabSdk/Scripts/typings/PlayFab/PlayFabMultiplayer.d.ts +++ b/PlayFabSdk/Scripts/typings/PlayFab/PlayFabMultiplayer.d.ts @@ -425,8 +425,10 @@ declare module PlayFabMultiplayerModels { type AzureVmFamily = "A" | "Av2" | "Dv2" + | "Dv3" | "F" - | "Fsv2"; + | "Fsv2" + | "Dasv4"; type AzureVmSize = "Standard_A1" | "Standard_A2" @@ -453,7 +455,11 @@ declare module PlayFabMultiplayerModels { | "Standard_F2s_v2" | "Standard_F4s_v2" | "Standard_F8s_v2" - | "Standard_F16s_v2"; + | "Standard_F16s_v2" + | "Standard_D2as_v4" + | "Standard_D4as_v4" + | "Standard_D8as_v4" + | "Standard_D16as_v4"; export interface BuildAliasDetailsResponse extends PlayFabModule.IPlayFabResultCommon { // The guid string alias Id of the alias to be created or updated. diff --git a/PlayFabSdk/package-lock.json b/PlayFabSdk/package-lock.json index 4394676d..b4ec3280 100644 --- a/PlayFabSdk/package-lock.json +++ b/PlayFabSdk/package-lock.json @@ -1,6 +1,6 @@ { "name": "playfab-sdk", - "version": "2.47.200518", + "version": "2.48.200602", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/PlayFabSdk/package.json b/PlayFabSdk/package.json index 24727adf..21de549d 100644 --- a/PlayFabSdk/package.json +++ b/PlayFabSdk/package.json @@ -1,6 +1,6 @@ { "name": "playfab-sdk", - "version": "2.47.200518", + "version": "2.48.200602", "description": "Playfab SDK for node.js applications", "license": "Apache-2.0", "devDependencies": {