Skip to content

Commit 8a28b4f

Browse files
PlayFab SDK TeamPlayFab SDK Team
PlayFab SDK Team
authored and
PlayFab SDK Team
committed
https://docs.microsoft.com/en-us/gaming/playfab/release-notes/#240913
2 parents ffa7877 + 542fe34 commit 8a28b4f

15 files changed

+60
-49
lines changed

PlayFabSdk/Scripts/PlayFab/PlayFab.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
var url = require("url");
44
var https = require("https");
55

6-
exports.sdk_version = "2.161.240830";
7-
exports.buildIdentifier = "adobuild_nodesdk_8";
6+
exports.sdk_version = "2.162.240913";
7+
exports.buildIdentifier = "adobuild_nodesdk_115";
88

99
var settings = (exports.settings = {
1010
productionUrl: ".playfabapi.com",
@@ -19,7 +19,7 @@ var _internalSettings = (exports._internalSettings = {
1919
entityToken: null,
2020
sessionTicket: null,
2121
requestGetParams: {
22-
sdk: "JavaScriptSDK-2.161.240830",
22+
sdk: "JavaScriptSDK-2.162.240913",
2323
},
2424
});
2525

PlayFabSdk/Scripts/PlayFab/PlayFabProfiles.js

+14
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,20 @@ exports.GetTitlePlayersFromXboxLiveIDs = function (request, callback) {
7474
);
7575
};
7676

77+
exports.SetDisplayName = function (request, callback) {
78+
PlayFab.MakeRequest(
79+
PlayFab.GetServerUrl() + "/Profile/SetDisplayName",
80+
request,
81+
"X-EntityToken",
82+
PlayFab._internalSettings.entityToken,
83+
function (error, result) {
84+
if (callback != null) {
85+
callback(error, result);
86+
}
87+
},
88+
);
89+
};
90+
7791
exports.SetGlobalPolicy = function (request, callback) {
7892
PlayFab.MakeRequest(
7993
PlayFab.GetServerUrl() + "/Profile/SetGlobalPolicy",

PlayFabSdk/Scripts/PlayFab/PlayFabProgression.js

-14
Original file line numberDiff line numberDiff line change
@@ -172,20 +172,6 @@ exports.GetStatisticDefinition = function (request, callback) {
172172
);
173173
};
174174

175-
exports.GetStatisticDefinitions = function (request, callback) {
176-
PlayFab.MakeRequest(
177-
PlayFab.GetServerUrl() + "/Statistic/GetStatisticDefinitions",
178-
request,
179-
"X-EntityToken",
180-
PlayFab._internalSettings.entityToken,
181-
function (error, result) {
182-
if (callback != null) {
183-
callback(error, result);
184-
}
185-
},
186-
);
187-
};
188-
189175
exports.GetStatistics = function (request, callback) {
190176
PlayFab.MakeRequest(
191177
PlayFab.GetServerUrl() + "/Statistic/GetStatistics",

PlayFabSdk/Scripts/typings/PlayFab/PlayFabAdmin.d.ts

+4-2
Original file line numberDiff line numberDiff line change
@@ -3505,7 +3505,8 @@ declare module PlayFabAdminModels {
35053505
| "Apple"
35063506
| "NintendoSwitchAccount"
35073507
| "GooglePlayGames"
3508-
| "XboxMobileStore";
3508+
| "XboxMobileStore"
3509+
| "King";
35093510

35103511
export interface LogStatement {
35113512
// Optional object accompanying the message as contextual information
@@ -5361,7 +5362,8 @@ declare module PlayFabAdminModels {
53615362
| "Apple"
53625363
| "NintendoSwitchAccount"
53635364
| "GooglePlayGames"
5364-
| "XboxMobileStore";
5365+
| "XboxMobileStore"
5366+
| "King";
53655367

53665368
export interface UserOriginationSegmentFilter {
53675369
// User login provider.

PlayFabSdk/Scripts/typings/PlayFab/PlayFabAuthentication.d.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,8 @@ declare module PlayFabAuthenticationModels {
138138
| "Apple"
139139
| "NintendoSwitchAccount"
140140
| "GooglePlayGames"
141-
| "XboxMobileStore";
141+
| "XboxMobileStore"
142+
| "King";
142143

143144
export interface ValidateEntityTokenRequest extends PlayFabModule.IPlayFabRequestCommon {
144145
// The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.).

PlayFabSdk/Scripts/typings/PlayFab/PlayFabClient.d.ts

+4-2
Original file line numberDiff line numberDiff line change
@@ -3237,7 +3237,8 @@ declare module PlayFabClientModels {
32373237
| "Apple"
32383238
| "NintendoSwitchAccount"
32393239
| "GooglePlayGames"
3240-
| "XboxMobileStore";
3240+
| "XboxMobileStore"
3241+
| "King";
32413242

32423243
export interface LoginResult extends PlayFabModule.IPlayFabResultCommon {
32433244
// If LoginTitlePlayerAccountEntity flag is set on the login request the title_player_account will also be logged in and
@@ -4832,7 +4833,8 @@ declare module PlayFabClientModels {
48324833
| "Apple"
48334834
| "NintendoSwitchAccount"
48344835
| "GooglePlayGames"
4835-
| "XboxMobileStore";
4836+
| "XboxMobileStore"
4837+
| "King";
48364838

48374839
export interface UserPrivateAccountInfo {
48384840
// user email address

PlayFabSdk/Scripts/typings/PlayFab/PlayFabCloudScript.d.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -599,7 +599,8 @@ declare module PlayFabCloudScriptModels {
599599
| "Apple"
600600
| "NintendoSwitchAccount"
601601
| "GooglePlayGames"
602-
| "XboxMobileStore";
602+
| "XboxMobileStore"
603+
| "King";
603604

604605
export interface LogStatement {
605606
// Optional object accompanying the message as contextual information

PlayFabSdk/Scripts/typings/PlayFab/PlayFabProfiles.d.ts

+24
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,12 @@ declare module PlayFabProfilesModule {
3131
request: PlayFabProfilesModels.GetTitlePlayersFromXboxLiveIDsRequest | null,
3232
callback: PlayFabModule.ApiCallback<PlayFabProfilesModels.GetTitlePlayersFromProviderIDsResponse> | null,
3333
): void;
34+
// Update the display name of the entity
35+
// https://docs.microsoft.com/rest/api/playfab/profiles/account-management/setdisplayname
36+
SetDisplayName(
37+
request: PlayFabProfilesModels.SetDisplayNameRequest | null,
38+
callback: PlayFabModule.ApiCallback<PlayFabProfilesModels.SetDisplayNameResponse> | null,
39+
): void;
3440
// Sets the global title access policy
3541
// https://docs.microsoft.com/rest/api/playfab/profiles/account-management/setglobalpolicy
3642
SetGlobalPolicy(
@@ -241,6 +247,24 @@ declare module PlayFabProfilesModels {
241247
| "Deleted"
242248
| "None";
243249

250+
export interface SetDisplayNameRequest extends PlayFabModule.IPlayFabRequestCommon {
251+
// The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.).
252+
CustomTags?: { [key: string]: string | null };
253+
// The new value to be set on Entity Profile's display name
254+
DisplayName?: string;
255+
// The optional entity to perform this action on. Defaults to the currently logged in entity.
256+
Entity?: EntityKey;
257+
// The expected version of a profile to perform this update on
258+
ExpectedVersion?: number;
259+
}
260+
261+
export interface SetDisplayNameResponse extends PlayFabModule.IPlayFabResultCommon {
262+
// The type of operation that occured on the profile's display name
263+
OperationResult?: string;
264+
// The updated version of the profile after the display name update
265+
VersionNumber?: number;
266+
}
267+
244268
export interface SetEntityProfilePolicyRequest extends PlayFabModule.IPlayFabRequestCommon {
245269
// The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.).
246270
CustomTags?: { [key: string]: string | null };

PlayFabSdk/Scripts/typings/PlayFab/PlayFabProgression.d.ts

-16
Original file line numberDiff line numberDiff line change
@@ -73,12 +73,6 @@ declare module PlayFabProgressionModule {
7373
request: PlayFabProgressionModels.GetStatisticDefinitionRequest | null,
7474
callback: PlayFabModule.ApiCallback<PlayFabProgressionModels.GetStatisticDefinitionResponse> | null,
7575
): void;
76-
// Get all current statistic definitions information
77-
// https://docs.microsoft.com/rest/api/playfab/progression/statistics/getstatisticdefinitions
78-
GetStatisticDefinitions(
79-
request: PlayFabProgressionModels.GetStatisticDefinitionsRequest | null,
80-
callback: PlayFabModule.ApiCallback<PlayFabProgressionModels.GetStatisticDefinitionsResponse> | null,
81-
): void;
8276
// Gets statistics for the specified entity.
8377
// https://docs.microsoft.com/rest/api/playfab/progression/statistics/getstatistics
8478
GetStatistics(
@@ -375,16 +369,6 @@ declare module PlayFabProgressionModels {
375369
VersionConfiguration?: VersionConfiguration;
376370
}
377371

378-
export interface GetStatisticDefinitionsRequest extends PlayFabModule.IPlayFabRequestCommon {
379-
// The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.).
380-
CustomTags?: { [key: string]: string | null };
381-
}
382-
383-
export interface GetStatisticDefinitionsResponse extends PlayFabModule.IPlayFabResultCommon {
384-
// List of statistic definitions for the title.
385-
StatisticDefinitions?: StatisticDefinition[];
386-
}
387-
388372
export interface GetStatisticsForEntitiesRequest extends PlayFabModule.IPlayFabRequestCommon {
389373
// The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.).
390374
CustomTags?: { [key: string]: string | null };

PlayFabSdk/Scripts/typings/PlayFab/PlayFabServer.d.ts

+4-2
Original file line numberDiff line numberDiff line change
@@ -3773,7 +3773,8 @@ declare module PlayFabServerModels {
37733773
| "Apple"
37743774
| "NintendoSwitchAccount"
37753775
| "GooglePlayGames"
3776-
| "XboxMobileStore";
3776+
| "XboxMobileStore"
3777+
| "King";
37773778

37783779
export interface LoginWithPSNRequest extends PlayFabModule.IPlayFabRequestCommon {
37793780
// Auth code provided by the PlayStation :tm: Network OAuth provider.
@@ -5084,7 +5085,8 @@ declare module PlayFabServerModels {
50845085
| "Apple"
50855086
| "NintendoSwitchAccount"
50865087
| "GooglePlayGames"
5087-
| "XboxMobileStore";
5088+
| "XboxMobileStore"
5089+
| "King";
50885090

50895091
export interface UserPrivateAccountInfo {
50905092
// user email address

PlayFabSdk/index.d.ts

-2
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
/// <reference path="Scripts/typings/PlayFab/PlayFabLocalization.d.ts" />
1515
/// <reference path="Scripts/typings/PlayFab/PlayFabMultiplayer.d.ts" />
1616
/// <reference path="Scripts/typings/PlayFab/PlayFabProfiles.d.ts" />
17-
/// <reference path="Scripts/typings/PlayFab/PlayFabMatchmaker.d.ts" />
1817
/// <reference path="Scripts/typings/PlayFab/PlayFabAddon.d.ts" />
1918

2019
export const PlayFab: PlayFabModule.IPlayFab;
@@ -35,6 +34,5 @@ export const PlayFabProgression: PlayFabProgressionModule.IPlayFabProgression;
3534
export const PlayFabLocalization: PlayFabLocalizationModule.IPlayFabLocalization;
3635
export const PlayFabMultiplayer: PlayFabMultiplayerModule.IPlayFabMultiplayer;
3736
export const PlayFabProfiles: PlayFabProfilesModule.IPlayFabProfiles;
38-
export const PlayFabMatchmaker: PlayFabMatchmakerModule.IPlayFabMatchmaker;
3937
export const PlayFabAddon: PlayFabAddonModule.IPlayFabAddon;
4038

PlayFabSdk/index.js

-2
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ var PlayFabProgression = require("./Scripts/PlayFab/PlayFabProgression.js");
1515
var PlayFabLocalization = require("./Scripts/PlayFab/PlayFabLocalization.js");
1616
var PlayFabMultiplayer = require("./Scripts/PlayFab/PlayFabMultiplayer.js");
1717
var PlayFabProfiles = require("./Scripts/PlayFab/PlayFabProfiles.js");
18-
var PlayFabMatchmaker = require("./Scripts/PlayFab/PlayFabMatchmaker.js");
1918
var PlayFabAddon = require("./Scripts/PlayFab/PlayFabAddon.js");
2019

2120
module.exports = {
@@ -35,7 +34,6 @@ module.exports = {
3534
PlayFabLocalization : PlayFabLocalization,
3635
PlayFabMultiplayer : PlayFabMultiplayer,
3736
PlayFabProfiles : PlayFabProfiles,
38-
PlayFabMatchmaker : PlayFabMatchmaker,
3937
PlayFabAddon : PlayFabAddon,
4038
get settings() {
4139
return PlayFab.settings;

PlayFabSdk/package-lock.json

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

PlayFabSdk/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "playfab-sdk",
3-
"version": "2.161.240830",
3+
"version": "2.162.240913",
44
"description": "Playfab SDK for node.js applications",
55
"license": "Apache-2.0",
66
"devDependencies": {

PlayFabSdk/test/test.ts

-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ const PlayFabProgression = pf.PlayFabProgression as PlayFabProgressionModule.IPl
2121
const PlayFabLocalization = pf.PlayFabLocalization as PlayFabLocalizationModule.IPlayFabLocalization;
2222
const PlayFabMultiplayer = pf.PlayFabMultiplayer as PlayFabMultiplayerModule.IPlayFabMultiplayer;
2323
const PlayFabProfiles = pf.PlayFabProfiles as PlayFabProfilesModule.IPlayFabProfiles;
24-
const PlayFabMatchmaker = pf.PlayFabMatchmaker as PlayFabMatchmakerModule.IPlayFabMatchmaker;
2524
const PlayFabAddon = pf.PlayFabAddon as PlayFabAddonModule.IPlayFabAddon;
2625

2726
type IAction = () => void;

0 commit comments

Comments
 (0)