Skip to content

Commit

Permalink
https://docs.microsoft.com/en-us/gaming/playfab/release-notes/#241122
Browse files Browse the repository at this point in the history
  • Loading branch information
PlayFab SDK Team authored and PlayFab SDK Team committed Nov 25, 2024
2 parents 81935a2 + 008a57a commit 9beba9e
Show file tree
Hide file tree
Showing 9 changed files with 101 additions and 7 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.165.241108";
exports.buildIdentifier = "adobuild_nodesdk_114";
exports.sdk_version = "2.166.241122";
exports.buildIdentifier = "adobuild_nodesdk_8";

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

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

exports.GetPlayFabIDsFromSteamNames = function (request, callback) {
if (PlayFab._internalSettings.sessionTicket == null) {
throw "Must be logged in to call this method";
}
PlayFab.MakeRequest(
PlayFab.GetServerUrl() + "/Client/GetPlayFabIDsFromSteamNames",
request,
"X-Authorization",
PlayFab._internalSettings.sessionTicket,
function (error, result) {
if (callback != null) {
callback(error, result);
}
},
);
};

exports.GetPlayFabIDsFromTwitchIDs = function (request, callback) {
if (PlayFab._internalSettings.sessionTicket == null) {
throw "Must be logged in to call this method";
Expand Down
17 changes: 17 additions & 0 deletions PlayFabSdk/Scripts/PlayFab/PlayFabServer.js
Original file line number Diff line number Diff line change
Expand Up @@ -820,6 +820,23 @@ exports.GetPlayFabIDsFromSteamIDs = function (request, callback) {
);
};

exports.GetPlayFabIDsFromSteamNames = function (request, callback) {
if (PlayFab.settings.developerSecretKey == null) {
throw "Must have PlayFab.settings.DeveloperSecretKey set to call this method";
}
PlayFab.MakeRequest(
PlayFab.GetServerUrl() + "/Server/GetPlayFabIDsFromSteamNames",
request,
"X-SecretKey",
PlayFab.settings.developerSecretKey,
function (error, result) {
if (callback != null) {
callback(error, result);
}
},
);
};

exports.GetPlayFabIDsFromTwitchIDs = function (request, callback) {
if (PlayFab.settings.developerSecretKey == null) {
throw "Must have PlayFab.settings.DeveloperSecretKey set to call this method";
Expand Down
4 changes: 4 additions & 0 deletions PlayFabSdk/Scripts/typings/PlayFab/PlayFabAdmin.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2541,6 +2541,8 @@ declare module PlayFabAdminModels {
| "StatisticColumnLengthMismatch"
| "InvalidExternalEntityId"
| "UpdatingStatisticsUsingTransactionIdNotAvailableForFreeTier"
| "TransactionAlreadyApplied"
| "ReportDataNotRetrievedSuccessfully"
| "MatchmakingEntityInvalid"
| "MatchmakingPlayerAttributesInvalid"
| "MatchmakingQueueNotFound"
Expand Down Expand Up @@ -2820,6 +2822,8 @@ declare module PlayFabAdminModels {
| "GameSaveFileNotUploaded"
| "GameSaveBadRequest"
| "GameSaveOperationNotAllowed"
| "GameSaveDataStorageQuotaExceeded"
| "GameSaveNewerManifestExists"
| "StateShareForbidden"
| "StateShareTitleNotInFlight"
| "StateShareStateNotFound"
Expand Down
25 changes: 25 additions & 0 deletions PlayFabSdk/Scripts/typings/PlayFab/PlayFabClient.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -386,6 +386,13 @@ declare module PlayFabClientModule {
request: PlayFabClientModels.GetPlayFabIDsFromSteamIDsRequest | null,
callback: PlayFabModule.ApiCallback<PlayFabClientModels.GetPlayFabIDsFromSteamIDsResult> | null,
): void;
// Retrieves the unique PlayFab identifiers for the given set of Steam identifiers. The Steam identifiers are persona
// names.
// https://docs.microsoft.com/rest/api/playfab/client/account-management/getplayfabidsfromsteamnames
GetPlayFabIDsFromSteamNames(
request: PlayFabClientModels.GetPlayFabIDsFromSteamNamesRequest | null,
callback: PlayFabModule.ApiCallback<PlayFabClientModels.GetPlayFabIDsFromSteamNamesResult> | null,
): void;
// Retrieves the unique PlayFab identifiers for the given set of Twitch identifiers. The Twitch identifiers are the IDs for
// the user accounts, available as "_id" from the Twitch API methods (ex:
// https://github.com/justintv/Twitch-API/blob/master/v3_resources/users.md#get-usersuser).
Expand Down Expand Up @@ -2688,6 +2695,17 @@ declare module PlayFabClientModels {
Data?: SteamPlayFabIdPair[];
}

export interface GetPlayFabIDsFromSteamNamesRequest extends PlayFabModule.IPlayFabRequestCommon {
// Array of unique Steam identifiers for which the title needs to get PlayFab identifiers. The array cannot exceed 2,000 in
// length.
SteamNames: string[];
}

export interface GetPlayFabIDsFromSteamNamesResult extends PlayFabModule.IPlayFabResultCommon {
// Mapping of Steam identifiers to PlayFab identifiers.
Data?: SteamNamePlayFabIdPair[];
}

export interface GetPlayFabIDsFromTwitchIDsRequest extends PlayFabModule.IPlayFabRequestCommon {
// Array of unique Twitch identifiers (Twitch's _id) for which the title needs to get PlayFab identifiers. The array cannot
// exceed 2,000 in length.
Expand Down Expand Up @@ -4233,6 +4251,13 @@ declare module PlayFabClientModels {
Version: number;
}

export interface SteamNamePlayFabIdPair {
// Unique PlayFab identifier for a user, or null if no PlayFab account is linked to the Steam identifier.
PlayFabId?: string;
// Unique Steam identifier for a user, also known as Steam persona name.
SteamName?: string;
}

export interface SteamPlayFabIdPair {
// Unique PlayFab identifier for a user, or null if no PlayFab account is linked to the Steam identifier.
PlayFabId?: string;
Expand Down
4 changes: 3 additions & 1 deletion PlayFabSdk/Scripts/typings/PlayFab/PlayFabMultiplayer.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -603,7 +603,9 @@ declare module PlayFabMultiplayerModels {
| "CentralIndia"
| "UaeNorth"
| "UkSouth"
| "SwedenCentral";
| "SwedenCentral"
| "CanadaCentral"
| "MexicoCentral";

type AzureVmFamily = "A"

Expand Down
29 changes: 29 additions & 0 deletions PlayFabSdk/Scripts/typings/PlayFab/PlayFabServer.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -327,6 +327,13 @@ declare module PlayFabServerModule {
request: PlayFabServerModels.GetPlayFabIDsFromSteamIDsRequest | null,
callback: PlayFabModule.ApiCallback<PlayFabServerModels.GetPlayFabIDsFromSteamIDsResult> | null,
): void;
// Retrieves the unique PlayFab identifiers for the given set of Steam identifiers. The Steam identifiers are persona
// names.
// https://docs.microsoft.com/rest/api/playfab/server/account-management/getplayfabidsfromsteamnames
GetPlayFabIDsFromSteamNames(
request: PlayFabServerModels.GetPlayFabIDsFromSteamNamesRequest | null,
callback: PlayFabModule.ApiCallback<PlayFabServerModels.GetPlayFabIDsFromSteamNamesResult> | null,
): void;
// Retrieves the unique PlayFab identifiers for the given set of Twitch identifiers. The Twitch identifiers are the IDs for
// the user accounts, available as "_id" from the Twitch API methods (ex:
// https://github.com/justintv/Twitch-API/blob/master/v3_resources/users.md#get-usersuser).
Expand Down Expand Up @@ -2437,6 +2444,8 @@ declare module PlayFabServerModels {
| "StatisticColumnLengthMismatch"
| "InvalidExternalEntityId"
| "UpdatingStatisticsUsingTransactionIdNotAvailableForFreeTier"
| "TransactionAlreadyApplied"
| "ReportDataNotRetrievedSuccessfully"
| "MatchmakingEntityInvalid"
| "MatchmakingPlayerAttributesInvalid"
| "MatchmakingQueueNotFound"
Expand Down Expand Up @@ -2716,6 +2725,8 @@ declare module PlayFabServerModels {
| "GameSaveFileNotUploaded"
| "GameSaveBadRequest"
| "GameSaveOperationNotAllowed"
| "GameSaveDataStorageQuotaExceeded"
| "GameSaveNewerManifestExists"
| "StateShareForbidden"
| "StateShareTitleNotInFlight"
| "StateShareStateNotFound"
Expand Down Expand Up @@ -3250,6 +3261,17 @@ declare module PlayFabServerModels {
Data?: SteamPlayFabIdPair[];
}

export interface GetPlayFabIDsFromSteamNamesRequest extends PlayFabModule.IPlayFabRequestCommon {
// Array of unique Steam identifiers for which the title needs to get PlayFab identifiers. The array cannot exceed 2,000 in
// length.
SteamNames: string[];
}

export interface GetPlayFabIDsFromSteamNamesResult extends PlayFabModule.IPlayFabResultCommon {
// Mapping of Steam identifiers to PlayFab identifiers.
Data?: SteamNamePlayFabIdPair[];
}

export interface GetPlayFabIDsFromTwitchIDsRequest extends PlayFabModule.IPlayFabRequestCommon {
// Array of unique Twitch identifiers (Twitch's _id) for which the title needs to get PlayFab identifiers. The array cannot
// exceed 2,000 in length.
Expand Down Expand Up @@ -4545,6 +4567,13 @@ declare module PlayFabServerModels {
Version: number;
}

export interface SteamNamePlayFabIdPair {
// Unique PlayFab identifier for a user, or null if no PlayFab account is linked to the Steam identifier.
PlayFabId?: string;
// Unique Steam identifier for a user, also known as Steam persona name.
SteamName?: string;
}

export interface SteamPlayFabIdPair {
// Unique PlayFab identifier for a user, or null if no PlayFab account is linked to the Steam identifier.
PlayFabId?: string;
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.165.241108",
"version": "2.166.241122",
"description": "Playfab SDK for node.js applications",
"license": "Apache-2.0",
"devDependencies": {
Expand Down

0 comments on commit 9beba9e

Please sign in to comment.