Skip to content

Commit

Permalink
https://docs.microsoft.com/en-us/gaming/playfab/release-notes/#231110
Browse files Browse the repository at this point in the history
  • Loading branch information
PlayFab SDK Team authored and PlayFab SDK Team committed Nov 16, 2023
2 parents af6b088 + 684b134 commit 386b177
Show file tree
Hide file tree
Showing 6 changed files with 59 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.140.231027";
exports.buildIdentifier = "adobuild_nodesdk_118";
exports.sdk_version = "2.142.231110";
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.140.231027",
sdk: "JavaScriptSDK-2.142.231110",
},
});

Expand Down
48 changes: 45 additions & 3 deletions PlayFabSdk/Scripts/typings/PlayFab/PlayFabAdmin.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -744,8 +744,12 @@ declare module PlayFabAdminModels {
}

export interface Action {
// Action content to Add Inventory item v2
AddInventoryItemV2Content?: AddInventoryItemV2Content;
// Action content to ban player
BanPlayerContent?: BanPlayerContent;
// Action content to delete inventory item v2
DeleteInventoryItemV2Content?: DeleteInventoryItemV2Content;
// Action content to delete player
DeletePlayerContent?: DeletePlayerContent;
// Action content to execute cloud script
Expand All @@ -762,6 +766,8 @@ declare module PlayFabAdminModels {
PushNotificationContent?: PushNotificationContent;
// Action content to send email
SendEmailContent?: SendEmailContent;
// Action content to Subtract Inventory item v2
SubtractInventoryItemV2Content?: SubtractInventoryItemV2Content;
}

export interface ActionsOnPlayersInSegmentTaskParameter {
Expand Down Expand Up @@ -825,6 +831,19 @@ declare module PlayFabAdminModels {
Comparison?: string;
}

export interface AddInventoryItemV2Content {
// Amount of the item to be granted to a player
Amount?: number;
// The collection id for where the item will be granted in the player inventory
CollectionId?: string;
// The duration in seconds of the subscription to be granted to a player
DurationInSeconds?: number;
// The id of item to be granted to the player
ItemId?: string;
// The stack id for where the item will be granted in the player inventory
StackId?: string;
}

export interface AddLocalizedNewsRequest extends PlayFabModule.IPlayFabRequestCommon {
// Localized body text of the news.
Body: string;
Expand Down Expand Up @@ -1674,6 +1693,15 @@ declare module PlayFabAdminModels {
Key: string;
}

export interface DeleteInventoryItemV2Content {
// The collection id for where the item will be removed from the player inventory
CollectionId?: string;
// The id of item to be removed from the player
ItemId?: string;
// The stack id for where the item will be removed from the player inventory
StackId?: string;
}

export interface DeleteMasterPlayerAccountRequest extends PlayFabModule.IPlayFabRequestCommon {
// Developer created string to identify a user without PlayFab ID
MetaData?: string;
Expand Down Expand Up @@ -2455,6 +2483,7 @@ declare module PlayFabAdminModels {
| "InvalidNamespaceMismatch"
| "LeaderboardColumnLengthMismatch"
| "InvalidStatisticScore"
| "LeaderboardColumnsNotSpecified"
| "MatchmakingEntityInvalid"
| "MatchmakingPlayerAttributesInvalid"
| "MatchmakingQueueNotFound"
Expand Down Expand Up @@ -3101,11 +3130,11 @@ declare module PlayFabAdminModels {
}

export interface GrantItemContent {
// Publish cloudscript results as playstream event
// The catalog version of the item to be granted to the player
CatalogVersion?: string;
// Publish cloudscript results as playstream event
// The id of item to be granted to the player
ItemId?: string;
// Publish cloudscript results as playstream event
// Quantity of the item to be granted to a player
ItemQuantity: number;
}

Expand Down Expand Up @@ -4676,6 +4705,19 @@ declare module PlayFabAdminModels {
| "FreeTrial"
| "PaymentPending";

export interface SubtractInventoryItemV2Content {
// Amount of the item to removed from the player
Amount?: number;
// The collection id for where the item will be removed from the player inventory
CollectionId?: string;
// The duration in seconds to be removed from the subscription in the players inventory
DurationInSeconds?: number;
// The id of item to be removed from the player
ItemId?: string;
// The stack id for where the item will be removed from the player inventory
StackId?: string;
}

export interface SubtractUserVirtualCurrencyRequest extends PlayFabModule.IPlayFabRequestCommon {
// Amount to be subtracted from the user balance of the specified virtual currency.
Amount: number;
Expand Down
14 changes: 7 additions & 7 deletions PlayFabSdk/Scripts/typings/PlayFab/PlayFabMultiplayer.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1122,7 +1122,7 @@ declare module PlayFabMultiplayerModels {
AccessPolicy?: string;
// The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.).
CustomTags?: { [key: string]: string | null };
// The private key-value pairs which are only visible to members of the lobby. At most 30 key-value pairs may be stored
// The private key-value pairs which are visible to all entities in the lobby. At most 30 key-value pairs may be stored
// here, keys are limited to 30 characters and values to 1000. The total size of all lobbyData values may not exceed 4096
// bytes. Keys are case sensitive.
LobbyData?: { [key: string]: string | null };
Expand Down Expand Up @@ -1928,7 +1928,7 @@ declare module PlayFabMultiplayerModels {
// The maximum number of players allowed in the lobby. The value must be between 2 and 128.
MaxPlayers: number;
// The private key-value pairs used by the member to communicate information to other members and the owner. Visible to all
// members of the lobby. At most 30 key-value pairs may be stored here, keys are limited to 30 characters and values to
// entities in the lobby. At most 30 key-value pairs may be stored here, keys are limited to 30 characters and values to
// 1000. The total size of all memberData values may not exceed 4096 bytes. Keys are case sensitive.
MemberData?: { [key: string]: string | null };
// The member entity who is joining the lobby. The first member to join will be the lobby owner.
Expand All @@ -1954,7 +1954,7 @@ declare module PlayFabMultiplayerModels {
// The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.).
CustomTags?: { [key: string]: string | null };
// The private key-value pairs used by the member to communicate information to other members and the owner. Visible to all
// members of the lobby. At most 30 key-value pairs may be stored here, keys are limited to 30 characters and values to
// entities in the lobby. At most 30 key-value pairs may be stored here, keys are limited to 30 characters and values to
// 1000. The total size of all memberData values may not exceed 4096 bytes.Keys are case sensitive.
MemberData?: { [key: string]: string | null };
// The member entity who is joining the lobby.
Expand Down Expand Up @@ -3037,7 +3037,7 @@ declare module PlayFabMultiplayerModels {
AccessPolicy?: string;
// The optional custom tags associated with the request (e.g. build number, external trace identifiers, etc.).
CustomTags?: { [key: string]: string | null };
// The private key-value pairs which are only visible to members of the lobby. Optional. Sets or updates key-value pairs on
// The private key-value pairs which are visible to all entities in the lobby. Optional. Sets or updates key-value pairs on
// the lobby. Only the current lobby owner can set lobby data. Keys may be an arbitrary string of at most 30 characters.
// The total size of all lobbyData values may not exceed 4096 bytes. Values are not individually limited. There can be up
// to 30 key-value pairs stored here. Keys are case sensitive.
Expand All @@ -3052,9 +3052,9 @@ declare module PlayFabMultiplayerModels {
MaxPlayers?: number;
// The private key-value pairs used by the member to communicate information to other members and the owner. Optional. Sets
// or updates new key-value pairs on the caller's member data. New keys will be added with their values and existing keys
// will be updated with the new values. Visible to all members of the lobby. At most 30 key-value pairs may be stored here,
// keys are limited to 30 characters and values to 1000. The total size of all memberData values may not exceed 4096 bytes.
// Keys are case sensitive. Servers cannot specifiy this.
// will be updated with the new values. Visible to all entities in the lobby. At most 30 key-value pairs may be stored
// here, keys are limited to 30 characters and values to 1000. The total size of all memberData values may not exceed 4096
// bytes. Keys are case sensitive. Servers cannot specifiy this.
MemberData?: { [key: string]: string | null };
// The keys to delete from the lobby MemberData. Optional. Deletes key-value pairs on the caller's member data. All the
// specified keys will be removed from the caller's member data. Keys that do not exist are a no-op. If the key to delete
Expand Down
1 change: 1 addition & 0 deletions PlayFabSdk/Scripts/typings/PlayFab/PlayFabServer.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2387,6 +2387,7 @@ declare module PlayFabServerModels {
| "InvalidNamespaceMismatch"
| "LeaderboardColumnLengthMismatch"
| "InvalidStatisticScore"
| "LeaderboardColumnsNotSpecified"
| "MatchmakingEntityInvalid"
| "MatchmakingPlayerAttributesInvalid"
| "MatchmakingQueueNotFound"
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.140.231027",
"version": "2.142.231110",
"description": "Playfab SDK for node.js applications",
"license": "Apache-2.0",
"devDependencies": {
Expand Down

0 comments on commit 386b177

Please sign in to comment.