Skip to content

Commit

Permalink
https://docs.microsoft.com/en-us/gaming/playfab/release-notes/#200602
Browse files Browse the repository at this point in the history
  • Loading branch information
PlayFabJenkinsBot committed Jun 2, 2020
1 parent fcb2c45 commit deb9e12
Show file tree
Hide file tree
Showing 8 changed files with 37 additions and 35 deletions.
6 changes: 3 additions & 3 deletions PlayFabSdk/Scripts/PlayFab/PlayFab.js
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -27,7 +27,7 @@ var _internalSettings = (exports._internalSettings = {
entityToken: null,
sessionTicket: null,
requestGetParams: {
sdk: "JavaScriptSDK-2.47.200518",
sdk: "JavaScriptSDK-2.48.200602",
},
});

Expand Down
12 changes: 6 additions & 6 deletions PlayFabSdk/Scripts/PlayFab/PlayFabClient.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down
4 changes: 2 additions & 2 deletions PlayFabSdk/Scripts/PlayFab/PlayFabMultiplayer.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
34 changes: 15 additions & 19 deletions PlayFabSdk/Scripts/typings/PlayFab/PlayFabClient.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -526,10 +526,10 @@ declare module PlayFabClientModule {
request: PlayFabClientModels.LinkKongregateAccountRequest | null,
callback: PlayFabModule.ApiCallback<PlayFabClientModels.LinkKongregateAccountResult> | 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<PlayFabClientModels.EmptyResult> | null,
): void;
// Links the NintendoSwitchDeviceId to the user's PlayFab account
Expand Down Expand Up @@ -644,10 +644,10 @@ declare module PlayFabClientModule {
request: PlayFabClientModels.LoginWithKongregateRequest | null,
callback: PlayFabModule.ApiCallback<PlayFabClientModels.LoginResult> | 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<PlayFabClientModels.LoginResult> | null,
): void;
// Signs the user in using a Nintendo Switch Device ID, returning a session identifier that can subsequently be used for
Expand Down Expand Up @@ -926,10 +926,10 @@ declare module PlayFabClientModule {
request: PlayFabClientModels.UnlinkKongregateAccountRequest | null,
callback: PlayFabModule.ApiCallback<PlayFabClientModels.UnlinkKongregateAccountResult> | 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<PlayFabClientModels.EmptyResponse> | null,
): void;
// Unlinks the related NintendoSwitchDeviceId from the user's PlayFab account
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion PlayFabSdk/Scripts/typings/PlayFab/PlayFabEvents.d.ts
Original file line number Diff line number Diff line change
@@ -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,
Expand Down
10 changes: 8 additions & 2 deletions PlayFabSdk/Scripts/typings/PlayFab/PlayFabMultiplayer.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -425,8 +425,10 @@ declare module PlayFabMultiplayerModels {
type AzureVmFamily = "A"
| "Av2"
| "Dv2"
| "Dv3"
| "F"
| "Fsv2";
| "Fsv2"
| "Dasv4";

type AzureVmSize = "Standard_A1"
| "Standard_A2"
Expand All @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion 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.47.200518",
"version": "2.48.200602",
"description": "Playfab SDK for node.js applications",
"license": "Apache-2.0",
"devDependencies": {
Expand Down

0 comments on commit deb9e12

Please sign in to comment.