Skip to content

Commit

Permalink
https://docs.microsoft.com/en-us/gaming/playfab/release-notes/#220801
Browse files Browse the repository at this point in the history
  • Loading branch information
PlayFab SDK Team authored and PlayFab SDK Team committed Aug 2, 2022
2 parents c167d52 + 6d3df3b commit 0ab1451
Show file tree
Hide file tree
Showing 10 changed files with 106 additions and 14 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.100.220718";
exports.buildIdentifier = "adobuild_nodesdk_118";
exports.sdk_version = "2.101.220801";
exports.buildIdentifier = "adobuild_nodesdk_116";

var settings = (exports.settings = {
productionUrl: ".playfabapi.com",
Expand All @@ -19,7 +19,7 @@ var _internalSettings = (exports._internalSettings = {
entityToken: null,
sessionTicket: null,
requestGetParams: {
sdk: "JavaScriptSDK-2.100.220718",
sdk: "JavaScriptSDK-2.101.220801",
},
});

Expand Down
22 changes: 22 additions & 0 deletions PlayFabSdk/Scripts/PlayFab/PlayFabClient.js
Original file line number Diff line number Diff line change
Expand Up @@ -1694,6 +1694,28 @@ exports.LoginWithGoogleAccount = function (request, callback) {
);
};

exports.LoginWithGooglePlayGamesServices = 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/LoginWithGooglePlayGamesServices",
request,
null,
null,
function (error, result) {
if (result != null && result.data != null) {
PlayFab._internalSettings.sessionTicket = result.data.hasOwnProperty("SessionTicket") ? result.data.SessionTicket : PlayFab._internalSettings.sessionTicket;
PlayFab._internalSettings.entityToken = result.data.hasOwnProperty("EntityToken") ? result.data.EntityToken.EntityToken : PlayFab._internalSettings.entityToken;
}
if (callback != null) {
callback(error, result);
}
},
);
};

exports.LoginWithIOSDeviceID = function (request, callback) {
request.TitleId = request.titleId != null ? request.TitleId : PlayFab.settings.titleId;
if (request.TitleId == null) {
Expand Down
18 changes: 16 additions & 2 deletions PlayFabSdk/Scripts/typings/PlayFab/PlayFabAdmin.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2367,6 +2367,7 @@ declare module PlayFabAdminModels {
| "AutomationInvalidRuleName"
| "AutomationRuleAlreadyExists"
| "AutomationRuleLimitExceeded"
| "InvalidGooglePlayGamesServerAuthCode"
| "MatchmakingEntityInvalid"
| "MatchmakingPlayerAttributesInvalid"
| "MatchmakingQueueNotFound"
Expand Down Expand Up @@ -3221,7 +3222,8 @@ declare module PlayFabAdminModels {
| "FacebookInstantGames"
| "OpenIdConnect"
| "Apple"
| "NintendoSwitchAccount";
| "NintendoSwitchAccount"
| "GooglePlayGames";

export interface LogStatement {
// Optional object accompanying the message as contextual information
Expand Down Expand Up @@ -4898,6 +4900,8 @@ declare module PlayFabAdminModels {
GameCenterInfo?: UserGameCenterInfo;
// User Google account information, if a Google account has been linked
GoogleInfo?: UserGoogleInfo;
// User Google Play Games account information, if a Google Play Games account has been linked
GooglePlayGamesInfo?: UserGooglePlayGamesInfo;
// User iOS device information, if an iOS device has been linked
IosDeviceInfo?: UserIosDeviceInfo;
// User Kongregate account information, if a Kongregate account has been linked
Expand Down Expand Up @@ -4984,6 +4988,15 @@ declare module PlayFabAdminModels {
GoogleName?: string;
}

export interface UserGooglePlayGamesInfo {
// Avatar image url of the Google Play Games player
GooglePlayGamesPlayerAvatarImageUrl?: string;
// Display name of the Google Play Games player
GooglePlayGamesPlayerDisplayName?: string;
// Google Play Games player ID
GooglePlayGamesPlayerId?: string;
}

export interface UserIosDeviceInfo {
// iOS device ID
IosDeviceId?: string;
Expand Down Expand Up @@ -5037,7 +5050,8 @@ declare module PlayFabAdminModels {
| "FacebookInstantGamesId"
| "OpenIdConnect"
| "Apple"
| "NintendoSwitchAccount";
| "NintendoSwitchAccount"
| "GooglePlayGames";

export interface UserOriginationSegmentFilter {
// User login provider.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,8 @@ declare module PlayFabAuthenticationModels {
| "FacebookInstantGames"
| "OpenIdConnect"
| "Apple"
| "NintendoSwitchAccount";
| "NintendoSwitchAccount"
| "GooglePlayGames";

export interface ValidateEntityTokenRequest extends PlayFabModule.IPlayFabRequestCommon {
// The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.).
Expand Down
42 changes: 40 additions & 2 deletions PlayFabSdk/Scripts/typings/PlayFab/PlayFabClient.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -645,6 +645,12 @@ declare module PlayFabClientModule {
request: PlayFabClientModels.LoginWithGoogleAccountRequest | null,
callback: PlayFabModule.ApiCallback<PlayFabClientModels.LoginResult> | null,
): void;
// Signs the user in using their Google Play Games account credentials
// https://docs.microsoft.com/rest/api/playfab/client/authentication/loginwithgoogleplaygamesservices
LoginWithGooglePlayGamesServices(
request: PlayFabClientModels.LoginWithGooglePlayGamesServicesRequest | null,
callback: PlayFabModule.ApiCallback<PlayFabClientModels.LoginResult> | null,
): void;
// Signs the user in using the vendor-specific iOS device identifier, returning a session identifier that can subsequently
// be used for API calls which require an authenticated user
// https://docs.microsoft.com/rest/api/playfab/client/authentication/loginwithiosdeviceid
Expand Down Expand Up @@ -3219,7 +3225,8 @@ declare module PlayFabClientModels {
| "FacebookInstantGames"
| "OpenIdConnect"
| "Apple"
| "NintendoSwitchAccount";
| "NintendoSwitchAccount"
| "GooglePlayGames";

export interface LoginResult extends PlayFabModule.IPlayFabResultCommon {
// If LoginTitlePlayerAccountEntity flag is set on the login request the title_player_account will also be logged in and
Expand Down Expand Up @@ -3396,6 +3403,25 @@ declare module PlayFabClientModels {
TitleId?: string;
}

export interface LoginWithGooglePlayGamesServicesRequest extends PlayFabModule.IPlayFabRequestCommon {
// Automatically create a PlayFab account if one is not currently linked to this ID.
CreateAccount?: boolean;
// The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.).
CustomTags?: { [key: string]: string | null };
// Base64 encoded body that is encrypted with the Title's public RSA key (Enterprise Only).
EncryptedRequest?: string;
// Flags for which pieces of info to return for the user.
InfoRequestParameters?: GetPlayerCombinedInfoRequestParams;
// Player secret that is used to verify API request signatures (Enterprise Only).
PlayerSecret?: string;
// OAuth 2.0 server authentication code obtained on the client by calling the requestServerSideAccess()
// (https://developers.google.com/games/services/android/signin) Google Play Games client API.
ServerAuthCode?: string;
// Unique identifier for the title, found in the Settings > Game Properties section of the PlayFab developer site when a
// title has been selected.
TitleId?: string;
}

export interface LoginWithIOSDeviceIDRequest extends PlayFabModule.IPlayFabRequestCommon {
// Automatically create a PlayFab account if one is not currently linked to this ID.
CreateAccount?: boolean;
Expand Down Expand Up @@ -4676,6 +4702,8 @@ declare module PlayFabClientModels {
GameCenterInfo?: UserGameCenterInfo;
// User Google account information, if a Google account has been linked
GoogleInfo?: UserGoogleInfo;
// User Google Play Games account information, if a Google Play Games account has been linked
GooglePlayGamesInfo?: UserGooglePlayGamesInfo;
// User iOS device information, if an iOS device has been linked
IosDeviceInfo?: UserIosDeviceInfo;
// User Kongregate account information, if a Kongregate account has been linked
Expand Down Expand Up @@ -4762,6 +4790,15 @@ declare module PlayFabClientModels {
GoogleName?: string;
}

export interface UserGooglePlayGamesInfo {
// Avatar image url of the Google Play Games player
GooglePlayGamesPlayerAvatarImageUrl?: string;
// Display name of the Google Play Games player
GooglePlayGamesPlayerDisplayName?: string;
// Google Play Games player ID
GooglePlayGamesPlayerId?: string;
}

export interface UserIosDeviceInfo {
// iOS device ID
IosDeviceId?: string;
Expand Down Expand Up @@ -4815,7 +4852,8 @@ declare module PlayFabClientModels {
| "FacebookInstantGamesId"
| "OpenIdConnect"
| "Apple"
| "NintendoSwitchAccount";
| "NintendoSwitchAccount"
| "GooglePlayGames";

export interface UserPrivateAccountInfo {
// user email address
Expand Down
3 changes: 2 additions & 1 deletion PlayFabSdk/Scripts/typings/PlayFab/PlayFabCloudScript.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -564,7 +564,8 @@ declare module PlayFabCloudScriptModels {
| "FacebookInstantGames"
| "OpenIdConnect"
| "Apple"
| "NintendoSwitchAccount";
| "NintendoSwitchAccount"
| "GooglePlayGames";

export interface LogStatement {
// Optional object accompanying the message as contextual information
Expand Down
2 changes: 2 additions & 0 deletions PlayFabSdk/Scripts/typings/PlayFab/PlayFabMultiplayer.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2280,6 +2280,8 @@ declare module PlayFabMultiplayerModels {
}

export interface MatchmakingQueueConfig {
// This is the buildAlias that will be used to allocate the multiplayer server for the match.
BuildAliasParams?: BuildAliasParams;
// This is the buildId that will be used to allocate the multiplayer server for the match.
BuildId?: string;
// List of difference rules used to find an optimal match.
Expand Down
18 changes: 16 additions & 2 deletions PlayFabSdk/Scripts/typings/PlayFab/PlayFabServer.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2333,6 +2333,7 @@ declare module PlayFabServerModels {
| "AutomationInvalidRuleName"
| "AutomationRuleAlreadyExists"
| "AutomationRuleLimitExceeded"
| "InvalidGooglePlayGamesServerAuthCode"
| "MatchmakingEntityInvalid"
| "MatchmakingPlayerAttributesInvalid"
| "MatchmakingQueueNotFound"
Expand Down Expand Up @@ -3461,7 +3462,8 @@ declare module PlayFabServerModels {
| "FacebookInstantGames"
| "OpenIdConnect"
| "Apple"
| "NintendoSwitchAccount";
| "NintendoSwitchAccount"
| "GooglePlayGames";

export interface LoginWithServerCustomIdRequest extends PlayFabModule.IPlayFabRequestCommon {
// Automatically create a PlayFab account if one is not currently linked to this ID.
Expand Down Expand Up @@ -4666,6 +4668,8 @@ declare module PlayFabServerModels {
GameCenterInfo?: UserGameCenterInfo;
// User Google account information, if a Google account has been linked
GoogleInfo?: UserGoogleInfo;
// User Google Play Games account information, if a Google Play Games account has been linked
GooglePlayGamesInfo?: UserGooglePlayGamesInfo;
// User iOS device information, if an iOS device has been linked
IosDeviceInfo?: UserIosDeviceInfo;
// User Kongregate account information, if a Kongregate account has been linked
Expand Down Expand Up @@ -4752,6 +4756,15 @@ declare module PlayFabServerModels {
GoogleName?: string;
}

export interface UserGooglePlayGamesInfo {
// Avatar image url of the Google Play Games player
GooglePlayGamesPlayerAvatarImageUrl?: string;
// Display name of the Google Play Games player
GooglePlayGamesPlayerDisplayName?: string;
// Google Play Games player ID
GooglePlayGamesPlayerId?: string;
}

export interface UserIosDeviceInfo {
// iOS device ID
IosDeviceId?: string;
Expand Down Expand Up @@ -4805,7 +4818,8 @@ declare module PlayFabServerModels {
| "FacebookInstantGamesId"
| "OpenIdConnect"
| "Apple"
| "NintendoSwitchAccount";
| "NintendoSwitchAccount"
| "GooglePlayGames";

export interface UserPrivateAccountInfo {
// user email address
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.100.220718",
"version": "2.101.220801",
"description": "Playfab SDK for node.js applications",
"license": "Apache-2.0",
"devDependencies": {
Expand Down

0 comments on commit 0ab1451

Please sign in to comment.