Skip to content

Commit

Permalink
https://docs.microsoft.com/en-us/gaming/playfab/release-notes/#240913
Browse files Browse the repository at this point in the history
  • Loading branch information
PlayFab SDK Team authored and PlayFab SDK Team committed Sep 16, 2024
2 parents ffa7877 + 542fe34 commit 8a28b4f
Show file tree
Hide file tree
Showing 15 changed files with 60 additions and 49 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.161.240830";
exports.buildIdentifier = "adobuild_nodesdk_8";
exports.sdk_version = "2.162.240913";
exports.buildIdentifier = "adobuild_nodesdk_115";

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.161.240830",
sdk: "JavaScriptSDK-2.162.240913",
},
});

Expand Down
14 changes: 14 additions & 0 deletions PlayFabSdk/Scripts/PlayFab/PlayFabProfiles.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,20 @@ exports.GetTitlePlayersFromXboxLiveIDs = function (request, callback) {
);
};

exports.SetDisplayName = function (request, callback) {
PlayFab.MakeRequest(
PlayFab.GetServerUrl() + "/Profile/SetDisplayName",
request,
"X-EntityToken",
PlayFab._internalSettings.entityToken,
function (error, result) {
if (callback != null) {
callback(error, result);
}
},
);
};

exports.SetGlobalPolicy = function (request, callback) {
PlayFab.MakeRequest(
PlayFab.GetServerUrl() + "/Profile/SetGlobalPolicy",
Expand Down
14 changes: 0 additions & 14 deletions PlayFabSdk/Scripts/PlayFab/PlayFabProgression.js
Original file line number Diff line number Diff line change
Expand Up @@ -172,20 +172,6 @@ exports.GetStatisticDefinition = function (request, callback) {
);
};

exports.GetStatisticDefinitions = function (request, callback) {
PlayFab.MakeRequest(
PlayFab.GetServerUrl() + "/Statistic/GetStatisticDefinitions",
request,
"X-EntityToken",
PlayFab._internalSettings.entityToken,
function (error, result) {
if (callback != null) {
callback(error, result);
}
},
);
};

exports.GetStatistics = function (request, callback) {
PlayFab.MakeRequest(
PlayFab.GetServerUrl() + "/Statistic/GetStatistics",
Expand Down
6 changes: 4 additions & 2 deletions PlayFabSdk/Scripts/typings/PlayFab/PlayFabAdmin.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3505,7 +3505,8 @@ declare module PlayFabAdminModels {
| "Apple"
| "NintendoSwitchAccount"
| "GooglePlayGames"
| "XboxMobileStore";
| "XboxMobileStore"
| "King";

export interface LogStatement {
// Optional object accompanying the message as contextual information
Expand Down Expand Up @@ -5361,7 +5362,8 @@ declare module PlayFabAdminModels {
| "Apple"
| "NintendoSwitchAccount"
| "GooglePlayGames"
| "XboxMobileStore";
| "XboxMobileStore"
| "King";

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

export interface ValidateEntityTokenRequest extends PlayFabModule.IPlayFabRequestCommon {
// The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.).
Expand Down
6 changes: 4 additions & 2 deletions PlayFabSdk/Scripts/typings/PlayFab/PlayFabClient.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3237,7 +3237,8 @@ declare module PlayFabClientModels {
| "Apple"
| "NintendoSwitchAccount"
| "GooglePlayGames"
| "XboxMobileStore";
| "XboxMobileStore"
| "King";

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 @@ -4832,7 +4833,8 @@ declare module PlayFabClientModels {
| "Apple"
| "NintendoSwitchAccount"
| "GooglePlayGames"
| "XboxMobileStore";
| "XboxMobileStore"
| "King";

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 @@ -599,7 +599,8 @@ declare module PlayFabCloudScriptModels {
| "Apple"
| "NintendoSwitchAccount"
| "GooglePlayGames"
| "XboxMobileStore";
| "XboxMobileStore"
| "King";

export interface LogStatement {
// Optional object accompanying the message as contextual information
Expand Down
24 changes: 24 additions & 0 deletions PlayFabSdk/Scripts/typings/PlayFab/PlayFabProfiles.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,12 @@ declare module PlayFabProfilesModule {
request: PlayFabProfilesModels.GetTitlePlayersFromXboxLiveIDsRequest | null,
callback: PlayFabModule.ApiCallback<PlayFabProfilesModels.GetTitlePlayersFromProviderIDsResponse> | null,
): void;
// Update the display name of the entity
// https://docs.microsoft.com/rest/api/playfab/profiles/account-management/setdisplayname
SetDisplayName(
request: PlayFabProfilesModels.SetDisplayNameRequest | null,
callback: PlayFabModule.ApiCallback<PlayFabProfilesModels.SetDisplayNameResponse> | null,
): void;
// Sets the global title access policy
// https://docs.microsoft.com/rest/api/playfab/profiles/account-management/setglobalpolicy
SetGlobalPolicy(
Expand Down Expand Up @@ -241,6 +247,24 @@ declare module PlayFabProfilesModels {
| "Deleted"
| "None";

export interface SetDisplayNameRequest 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 new value to be set on Entity Profile's display name
DisplayName?: string;
// The optional entity to perform this action on. Defaults to the currently logged in entity.
Entity?: EntityKey;
// The expected version of a profile to perform this update on
ExpectedVersion?: number;
}

export interface SetDisplayNameResponse extends PlayFabModule.IPlayFabResultCommon {
// The type of operation that occured on the profile's display name
OperationResult?: string;
// The updated version of the profile after the display name update
VersionNumber?: number;
}

export interface SetEntityProfilePolicyRequest 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
16 changes: 0 additions & 16 deletions PlayFabSdk/Scripts/typings/PlayFab/PlayFabProgression.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,12 +73,6 @@ declare module PlayFabProgressionModule {
request: PlayFabProgressionModels.GetStatisticDefinitionRequest | null,
callback: PlayFabModule.ApiCallback<PlayFabProgressionModels.GetStatisticDefinitionResponse> | null,
): void;
// Get all current statistic definitions information
// https://docs.microsoft.com/rest/api/playfab/progression/statistics/getstatisticdefinitions
GetStatisticDefinitions(
request: PlayFabProgressionModels.GetStatisticDefinitionsRequest | null,
callback: PlayFabModule.ApiCallback<PlayFabProgressionModels.GetStatisticDefinitionsResponse> | null,
): void;
// Gets statistics for the specified entity.
// https://docs.microsoft.com/rest/api/playfab/progression/statistics/getstatistics
GetStatistics(
Expand Down Expand Up @@ -375,16 +369,6 @@ declare module PlayFabProgressionModels {
VersionConfiguration?: VersionConfiguration;
}

export interface GetStatisticDefinitionsRequest extends PlayFabModule.IPlayFabRequestCommon {
// The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.).
CustomTags?: { [key: string]: string | null };
}

export interface GetStatisticDefinitionsResponse extends PlayFabModule.IPlayFabResultCommon {
// List of statistic definitions for the title.
StatisticDefinitions?: StatisticDefinition[];
}

export interface GetStatisticsForEntitiesRequest 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
6 changes: 4 additions & 2 deletions PlayFabSdk/Scripts/typings/PlayFab/PlayFabServer.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3773,7 +3773,8 @@ declare module PlayFabServerModels {
| "Apple"
| "NintendoSwitchAccount"
| "GooglePlayGames"
| "XboxMobileStore";
| "XboxMobileStore"
| "King";

export interface LoginWithPSNRequest extends PlayFabModule.IPlayFabRequestCommon {
// Auth code provided by the PlayStation :tm: Network OAuth provider.
Expand Down Expand Up @@ -5084,7 +5085,8 @@ declare module PlayFabServerModels {
| "Apple"
| "NintendoSwitchAccount"
| "GooglePlayGames"
| "XboxMobileStore";
| "XboxMobileStore"
| "King";

export interface UserPrivateAccountInfo {
// user email address
Expand Down
2 changes: 0 additions & 2 deletions PlayFabSdk/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
/// <reference path="Scripts/typings/PlayFab/PlayFabLocalization.d.ts" />
/// <reference path="Scripts/typings/PlayFab/PlayFabMultiplayer.d.ts" />
/// <reference path="Scripts/typings/PlayFab/PlayFabProfiles.d.ts" />
/// <reference path="Scripts/typings/PlayFab/PlayFabMatchmaker.d.ts" />
/// <reference path="Scripts/typings/PlayFab/PlayFabAddon.d.ts" />

export const PlayFab: PlayFabModule.IPlayFab;
Expand All @@ -35,6 +34,5 @@ export const PlayFabProgression: PlayFabProgressionModule.IPlayFabProgression;
export const PlayFabLocalization: PlayFabLocalizationModule.IPlayFabLocalization;
export const PlayFabMultiplayer: PlayFabMultiplayerModule.IPlayFabMultiplayer;
export const PlayFabProfiles: PlayFabProfilesModule.IPlayFabProfiles;
export const PlayFabMatchmaker: PlayFabMatchmakerModule.IPlayFabMatchmaker;
export const PlayFabAddon: PlayFabAddonModule.IPlayFabAddon;

2 changes: 0 additions & 2 deletions PlayFabSdk/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ var PlayFabProgression = require("./Scripts/PlayFab/PlayFabProgression.js");
var PlayFabLocalization = require("./Scripts/PlayFab/PlayFabLocalization.js");
var PlayFabMultiplayer = require("./Scripts/PlayFab/PlayFabMultiplayer.js");
var PlayFabProfiles = require("./Scripts/PlayFab/PlayFabProfiles.js");
var PlayFabMatchmaker = require("./Scripts/PlayFab/PlayFabMatchmaker.js");
var PlayFabAddon = require("./Scripts/PlayFab/PlayFabAddon.js");

module.exports = {
Expand All @@ -35,7 +34,6 @@ module.exports = {
PlayFabLocalization : PlayFabLocalization,
PlayFabMultiplayer : PlayFabMultiplayer,
PlayFabProfiles : PlayFabProfiles,
PlayFabMatchmaker : PlayFabMatchmaker,
PlayFabAddon : PlayFabAddon,
get settings() {
return PlayFab.settings;
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.161.240830",
"version": "2.162.240913",
"description": "Playfab SDK for node.js applications",
"license": "Apache-2.0",
"devDependencies": {
Expand Down
1 change: 0 additions & 1 deletion PlayFabSdk/test/test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ const PlayFabProgression = pf.PlayFabProgression as PlayFabProgressionModule.IPl
const PlayFabLocalization = pf.PlayFabLocalization as PlayFabLocalizationModule.IPlayFabLocalization;
const PlayFabMultiplayer = pf.PlayFabMultiplayer as PlayFabMultiplayerModule.IPlayFabMultiplayer;
const PlayFabProfiles = pf.PlayFabProfiles as PlayFabProfilesModule.IPlayFabProfiles;
const PlayFabMatchmaker = pf.PlayFabMatchmaker as PlayFabMatchmakerModule.IPlayFabMatchmaker;
const PlayFabAddon = pf.PlayFabAddon as PlayFabAddonModule.IPlayFabAddon;

type IAction = () => void;
Expand Down

0 comments on commit 8a28b4f

Please sign in to comment.