Skip to content

Commit

Permalink
https://docs.microsoft.com/en-us/gaming/playfab/release-notes/#220802
Browse files Browse the repository at this point in the history
  • Loading branch information
PlayFab SDK Team authored and PlayFab SDK Team committed Aug 3, 2022
2 parents 0ab1451 + 6be00aa commit 89794c5
Show file tree
Hide file tree
Showing 6 changed files with 49 additions and 16 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.101.220801";
exports.buildIdentifier = "adobuild_nodesdk_116";
exports.sdk_version = "2.102.220802";
exports.buildIdentifier = "adobuild_nodesdk_114";

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

Expand Down
14 changes: 14 additions & 0 deletions PlayFabSdk/Scripts/PlayFab/PlayFabAuthentication.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,20 @@ var PlayFab = require("./PlayFab.js");

exports.settings = PlayFab.settings;

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

exports.GetEntityToken = function (request, callback) {
var authKey = "";
var authValue = "";
Expand Down
15 changes: 15 additions & 0 deletions PlayFabSdk/Scripts/typings/PlayFab/PlayFabAuthentication.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
declare module PlayFabAuthenticationModule {
export interface IPlayFabAuthentication {
settings: PlayFabModule.IPlayFabSettings;
// Delete a game_server entity.
// https://docs.microsoft.com/rest/api/playfab/authentication/authentication/delete
Delete(
request: PlayFabAuthenticationModels.DeleteRequest | null,
callback: PlayFabModule.ApiCallback<PlayFabAuthenticationModels.EmptyResponse> | null,
): void;
// Method to exchange a legacy AuthenticationTicket or title SecretKey for an Entity Token or to refresh a still valid
// Entity Token.
// https://docs.microsoft.com/rest/api/playfab/authentication/authentication/getentitytoken
Expand All @@ -20,6 +26,15 @@ declare module PlayFabAuthenticationModule {
}

declare module PlayFabAuthenticationModels {
export interface DeleteRequest 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 game_server entity to be removed.
Entity: EntityKey;
}

export interface EmptyResponse extends PlayFabModule.IPlayFabResultCommon {}

export interface EntityKey {
// Unique ID of the entity.
Id: string;
Expand Down
24 changes: 14 additions & 10 deletions PlayFabSdk/Scripts/typings/PlayFab/PlayFabMultiplayer.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1405,13 +1405,15 @@ declare module PlayFabMultiplayerModels {
// OData style string that contains one or more filters. Only the following operators are supported: "and" (logical and),
// "eq" (equal), "ne" (not equals), "ge" (greater than or equal), "gt" (greater than), "le" (less than or equal), and "lt"
// (less than). The left-hand side of each OData logical expression should be either a search property key (e.g.
// string_key1, number_key3, etc) or one of the pre-defined search keys: memberCount, membershipLock (must equal 'Unlocked'
// or 'Locked'), amOwner (required to equal "true"), amMember (required to equal "true").
// string_key1, number_key3, etc) or one of the pre-defined search keys all of which must be prefixed by "lobby/":
// lobby/memberCount (number of players in a lobby), lobby/maxMemberCount (maximum number of players allowed in a lobby),
// lobby/membershipLock (must equal 'Unlocked' or 'Locked'), lobby/amOwner (required to equal "true"), lobby/amMember
// (required to equal "true").
Filter?: string;
// OData style string that contains sorting for this query in either ascending ("asc") or descending ("desc") order.
// OrderBy clauses are of the form "number_key1 asc" or the pre-defined search key "memberCount desc". To sort by closest,
// a moniker `distance{number_key1 = 5}` can be used to sort by distance from the given number. This field only supports
// either one sort clause or one distance clause.
// OrderBy clauses are of the form "number_key1 asc" or the pre-defined search key "lobby/memberCount asc" and
// "lobby/maxMemberCount desc". To sort by closest, a moniker `distance{number_key1 = 5}` can be used to sort by distance
// from the given number. This field only supports either one sort clause or one distance clause.
OrderBy?: string;
// Request pagination information.
Pagination?: PaginationRequest;
Expand All @@ -1432,13 +1434,15 @@ declare module PlayFabMultiplayerModels {
// OData style string that contains one or more filters. Only the following operators are supported: "and" (logical and),
// "eq" (equal), "ne" (not equals), "ge" (greater than or equal), "gt" (greater than), "le" (less than or equal), and "lt"
// (less than). The left-hand side of each OData logical expression should be either a search property key (e.g.
// string_key1, number_key3, etc) or one of the pre-defined search keys: memberCount, membershipLock (must equal 'Unlocked'
// or 'Locked'), amOwner (required to equal "true"), amMember (required to equal "true").
// string_key1, number_key3, etc) or one of the pre-defined search keys all of which must be prefixed by "lobby/":
// lobby/memberCount (number of players in a lobby), lobby/maxMemberCount (maximum number of players allowed in a lobby),
// lobby/membershipLock (must equal 'Unlocked' or 'Locked'), lobby/amOwner (required to equal "true"), lobby/amMember
// (required to equal "true").
Filter?: string;
// OData style string that contains sorting for this query in either ascending ("asc") or descending ("desc") order.
// OrderBy clauses are of the form "number_key1 asc" or the pre-defined search key "memberCount desc". To sort by closest,
// a moniker `distance{number_key1 = 5}` can be used to sort by distance from the given number. This field only supports
// either one sort clause or one distance clause.
// OrderBy clauses are of the form "number_key1 asc" or the pre-defined search key "lobby/memberCount asc" and
// "lobby/maxMemberCount desc". To sort by closest, a moniker `distance{number_key1 = 5}` can be used to sort by distance
// from the given number. This field only supports either one sort clause or one distance clause.
OrderBy?: string;
// Request pagination information.
Pagination?: PaginationRequest;
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.101.220801",
"version": "2.102.220802",
"description": "Playfab SDK for node.js applications",
"license": "Apache-2.0",
"devDependencies": {
Expand Down

0 comments on commit 89794c5

Please sign in to comment.