Skip to content

Commit

Permalink
https://api.playfab.com/releaseNotes/#190205
Browse files Browse the repository at this point in the history
  • Loading branch information
PlayFabJenkinsBot committed Feb 5, 2019
2 parents cc8312d + 6a52d55 commit 55281be
Show file tree
Hide file tree
Showing 33 changed files with 265 additions and 103 deletions.
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-web-sdk",
"version": "1.38.190123",
"version": "1.39.190205",
"description": "Playfab SDK for JS client applications",
"license": "Apache-2.0",
"repository": {
Expand Down
11 changes: 8 additions & 3 deletions PlayFabSdk/src/PlayFab/PlayFabAdminApi.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ if(!PlayFab.settings) {
if(!PlayFab._internalSettings) {
PlayFab._internalSettings = {
entityToken: null,
sdkVersion: "1.38.190123",
sdkVersion: "1.39.190205",
requestGetParams: {
sdk: "JavaScriptSDK-1.38.190123"
sdk: "JavaScriptSDK-1.39.190205"
},
sessionTicket: null,
verticalName: null, // The name of a customer vertical. This is only for customers running a private cluster. Generally you shouldn't touch this
Expand Down Expand Up @@ -157,7 +157,7 @@ if(!PlayFab._internalSettings) {
}

PlayFab.buildIdentifier = "jbuild_javascriptsdk__sdk-genericslave-3_1";
PlayFab.sdkVersion = "1.38.190123";
PlayFab.sdkVersion = "1.39.190205";
PlayFab.GenerateErrorReport = function (error) {
if (error == null)
return "";
Expand All @@ -179,6 +179,11 @@ PlayFab.AdminApi = {
PlayFab._internalSettings.ExecuteRequest(PlayFab._internalSettings.GetServerUrl() + "/Admin/AbortTaskInstance", request, "X-SecretKey", PlayFab.settings.developerSecretKey, callback, customData, extraHeaders);
},

AddLocalizedNews: function (request, callback, customData, extraHeaders) {
if (!PlayFab.settings.developerSecretKey) throw PlayFab._internalSettings.errorSecretKey;
PlayFab._internalSettings.ExecuteRequest(PlayFab._internalSettings.GetServerUrl() + "/Admin/AddLocalizedNews", request, "X-SecretKey", PlayFab.settings.developerSecretKey, callback, customData, extraHeaders);
},

AddNews: function (request, callback, customData, extraHeaders) {
if (!PlayFab.settings.developerSecretKey) throw PlayFab._internalSettings.errorSecretKey;
PlayFab._internalSettings.ExecuteRequest(PlayFab._internalSettings.GetServerUrl() + "/Admin/AddNews", request, "X-SecretKey", PlayFab.settings.developerSecretKey, callback, customData, extraHeaders);
Expand Down
6 changes: 3 additions & 3 deletions PlayFabSdk/src/PlayFab/PlayFabAuthenticationApi.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ if(!PlayFab.settings) {
if(!PlayFab._internalSettings) {
PlayFab._internalSettings = {
entityToken: null,
sdkVersion: "1.38.190123",
sdkVersion: "1.39.190205",
requestGetParams: {
sdk: "JavaScriptSDK-1.38.190123"
sdk: "JavaScriptSDK-1.39.190205"
},
sessionTicket: null,
verticalName: null, // The name of a customer vertical. This is only for customers running a private cluster. Generally you shouldn't touch this
Expand Down Expand Up @@ -157,7 +157,7 @@ if(!PlayFab._internalSettings) {
}

PlayFab.buildIdentifier = "jbuild_javascriptsdk__sdk-genericslave-3_1";
PlayFab.sdkVersion = "1.38.190123";
PlayFab.sdkVersion = "1.39.190205";
PlayFab.GenerateErrorReport = function (error) {
if (error == null)
return "";
Expand Down
6 changes: 3 additions & 3 deletions PlayFabSdk/src/PlayFab/PlayFabClientApi.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ if(!PlayFab.settings) {
if(!PlayFab._internalSettings) {
PlayFab._internalSettings = {
entityToken: null,
sdkVersion: "1.38.190123",
sdkVersion: "1.39.190205",
requestGetParams: {
sdk: "JavaScriptSDK-1.38.190123"
sdk: "JavaScriptSDK-1.39.190205"
},
sessionTicket: null,
verticalName: null, // The name of a customer vertical. This is only for customers running a private cluster. Generally you shouldn't touch this
Expand Down Expand Up @@ -157,7 +157,7 @@ if(!PlayFab._internalSettings) {
}

PlayFab.buildIdentifier = "jbuild_javascriptsdk__sdk-genericslave-3_1";
PlayFab.sdkVersion = "1.38.190123";
PlayFab.sdkVersion = "1.39.190205";
PlayFab.GenerateErrorReport = function (error) {
if (error == null)
return "";
Expand Down
6 changes: 3 additions & 3 deletions PlayFabSdk/src/PlayFab/PlayFabCloudScriptApi.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ if(!PlayFab.settings) {
if(!PlayFab._internalSettings) {
PlayFab._internalSettings = {
entityToken: null,
sdkVersion: "1.38.190123",
sdkVersion: "1.39.190205",
requestGetParams: {
sdk: "JavaScriptSDK-1.38.190123"
sdk: "JavaScriptSDK-1.39.190205"
},
sessionTicket: null,
verticalName: null, // The name of a customer vertical. This is only for customers running a private cluster. Generally you shouldn't touch this
Expand Down Expand Up @@ -157,7 +157,7 @@ if(!PlayFab._internalSettings) {
}

PlayFab.buildIdentifier = "jbuild_javascriptsdk__sdk-genericslave-3_1";
PlayFab.sdkVersion = "1.38.190123";
PlayFab.sdkVersion = "1.39.190205";
PlayFab.GenerateErrorReport = function (error) {
if (error == null)
return "";
Expand Down
6 changes: 3 additions & 3 deletions PlayFabSdk/src/PlayFab/PlayFabDataApi.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ if(!PlayFab.settings) {
if(!PlayFab._internalSettings) {
PlayFab._internalSettings = {
entityToken: null,
sdkVersion: "1.38.190123",
sdkVersion: "1.39.190205",
requestGetParams: {
sdk: "JavaScriptSDK-1.38.190123"
sdk: "JavaScriptSDK-1.39.190205"
},
sessionTicket: null,
verticalName: null, // The name of a customer vertical. This is only for customers running a private cluster. Generally you shouldn't touch this
Expand Down Expand Up @@ -157,7 +157,7 @@ if(!PlayFab._internalSettings) {
}

PlayFab.buildIdentifier = "jbuild_javascriptsdk__sdk-genericslave-3_1";
PlayFab.sdkVersion = "1.38.190123";
PlayFab.sdkVersion = "1.39.190205";
PlayFab.GenerateErrorReport = function (error) {
if (error == null)
return "";
Expand Down
6 changes: 3 additions & 3 deletions PlayFabSdk/src/PlayFab/PlayFabEventsApi.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ if(!PlayFab.settings) {
if(!PlayFab._internalSettings) {
PlayFab._internalSettings = {
entityToken: null,
sdkVersion: "1.38.190123",
sdkVersion: "1.39.190205",
requestGetParams: {
sdk: "JavaScriptSDK-1.38.190123"
sdk: "JavaScriptSDK-1.39.190205"
},
sessionTicket: null,
verticalName: null, // The name of a customer vertical. This is only for customers running a private cluster. Generally you shouldn't touch this
Expand Down Expand Up @@ -157,7 +157,7 @@ if(!PlayFab._internalSettings) {
}

PlayFab.buildIdentifier = "jbuild_javascriptsdk__sdk-genericslave-3_1";
PlayFab.sdkVersion = "1.38.190123";
PlayFab.sdkVersion = "1.39.190205";
PlayFab.GenerateErrorReport = function (error) {
if (error == null)
return "";
Expand Down
6 changes: 3 additions & 3 deletions PlayFabSdk/src/PlayFab/PlayFabGroupsApi.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ if(!PlayFab.settings) {
if(!PlayFab._internalSettings) {
PlayFab._internalSettings = {
entityToken: null,
sdkVersion: "1.38.190123",
sdkVersion: "1.39.190205",
requestGetParams: {
sdk: "JavaScriptSDK-1.38.190123"
sdk: "JavaScriptSDK-1.39.190205"
},
sessionTicket: null,
verticalName: null, // The name of a customer vertical. This is only for customers running a private cluster. Generally you shouldn't touch this
Expand Down Expand Up @@ -157,7 +157,7 @@ if(!PlayFab._internalSettings) {
}

PlayFab.buildIdentifier = "jbuild_javascriptsdk__sdk-genericslave-3_1";
PlayFab.sdkVersion = "1.38.190123";
PlayFab.sdkVersion = "1.39.190205";
PlayFab.GenerateErrorReport = function (error) {
if (error == null)
return "";
Expand Down
6 changes: 3 additions & 3 deletions PlayFabSdk/src/PlayFab/PlayFabLocalizationApi.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ if(!PlayFab.settings) {
if(!PlayFab._internalSettings) {
PlayFab._internalSettings = {
entityToken: null,
sdkVersion: "1.38.190123",
sdkVersion: "1.39.190205",
requestGetParams: {
sdk: "JavaScriptSDK-1.38.190123"
sdk: "JavaScriptSDK-1.39.190205"
},
sessionTicket: null,
verticalName: null, // The name of a customer vertical. This is only for customers running a private cluster. Generally you shouldn't touch this
Expand Down Expand Up @@ -157,7 +157,7 @@ if(!PlayFab._internalSettings) {
}

PlayFab.buildIdentifier = "jbuild_javascriptsdk__sdk-genericslave-3_1";
PlayFab.sdkVersion = "1.38.190123";
PlayFab.sdkVersion = "1.39.190205";
PlayFab.GenerateErrorReport = function (error) {
if (error == null)
return "";
Expand Down
6 changes: 3 additions & 3 deletions PlayFabSdk/src/PlayFab/PlayFabMatchmakerApi.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ if(!PlayFab.settings) {
if(!PlayFab._internalSettings) {
PlayFab._internalSettings = {
entityToken: null,
sdkVersion: "1.38.190123",
sdkVersion: "1.39.190205",
requestGetParams: {
sdk: "JavaScriptSDK-1.38.190123"
sdk: "JavaScriptSDK-1.39.190205"
},
sessionTicket: null,
verticalName: null, // The name of a customer vertical. This is only for customers running a private cluster. Generally you shouldn't touch this
Expand Down Expand Up @@ -157,7 +157,7 @@ if(!PlayFab._internalSettings) {
}

PlayFab.buildIdentifier = "jbuild_javascriptsdk__sdk-genericslave-3_1";
PlayFab.sdkVersion = "1.38.190123";
PlayFab.sdkVersion = "1.39.190205";
PlayFab.GenerateErrorReport = function (error) {
if (error == null)
return "";
Expand Down
6 changes: 3 additions & 3 deletions PlayFabSdk/src/PlayFab/PlayFabMultiplayerApi.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ if(!PlayFab.settings) {
if(!PlayFab._internalSettings) {
PlayFab._internalSettings = {
entityToken: null,
sdkVersion: "1.38.190123",
sdkVersion: "1.39.190205",
requestGetParams: {
sdk: "JavaScriptSDK-1.38.190123"
sdk: "JavaScriptSDK-1.39.190205"
},
sessionTicket: null,
verticalName: null, // The name of a customer vertical. This is only for customers running a private cluster. Generally you shouldn't touch this
Expand Down Expand Up @@ -157,7 +157,7 @@ if(!PlayFab._internalSettings) {
}

PlayFab.buildIdentifier = "jbuild_javascriptsdk__sdk-genericslave-3_1";
PlayFab.sdkVersion = "1.38.190123";
PlayFab.sdkVersion = "1.39.190205";
PlayFab.GenerateErrorReport = function (error) {
if (error == null)
return "";
Expand Down
6 changes: 3 additions & 3 deletions PlayFabSdk/src/PlayFab/PlayFabProfilesApi.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ if(!PlayFab.settings) {
if(!PlayFab._internalSettings) {
PlayFab._internalSettings = {
entityToken: null,
sdkVersion: "1.38.190123",
sdkVersion: "1.39.190205",
requestGetParams: {
sdk: "JavaScriptSDK-1.38.190123"
sdk: "JavaScriptSDK-1.39.190205"
},
sessionTicket: null,
verticalName: null, // The name of a customer vertical. This is only for customers running a private cluster. Generally you shouldn't touch this
Expand Down Expand Up @@ -157,7 +157,7 @@ if(!PlayFab._internalSettings) {
}

PlayFab.buildIdentifier = "jbuild_javascriptsdk__sdk-genericslave-3_1";
PlayFab.sdkVersion = "1.38.190123";
PlayFab.sdkVersion = "1.39.190205";
PlayFab.GenerateErrorReport = function (error) {
if (error == null)
return "";
Expand Down
11 changes: 8 additions & 3 deletions PlayFabSdk/src/PlayFab/PlayFabServerApi.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ if(!PlayFab.settings) {
if(!PlayFab._internalSettings) {
PlayFab._internalSettings = {
entityToken: null,
sdkVersion: "1.38.190123",
sdkVersion: "1.39.190205",
requestGetParams: {
sdk: "JavaScriptSDK-1.38.190123"
sdk: "JavaScriptSDK-1.39.190205"
},
sessionTicket: null,
verticalName: null, // The name of a customer vertical. This is only for customers running a private cluster. Generally you shouldn't touch this
Expand Down Expand Up @@ -157,7 +157,7 @@ if(!PlayFab._internalSettings) {
}

PlayFab.buildIdentifier = "jbuild_javascriptsdk__sdk-genericslave-3_1";
PlayFab.sdkVersion = "1.38.190123";
PlayFab.sdkVersion = "1.39.190205";
PlayFab.GenerateErrorReport = function (error) {
if (error == null)
return "";
Expand Down Expand Up @@ -384,6 +384,11 @@ PlayFab.ServerApi = {
PlayFab._internalSettings.ExecuteRequest(PlayFab._internalSettings.GetServerUrl() + "/Server/GetPlayFabIDsFromNintendoSwitchDeviceIds", request, "X-SecretKey", PlayFab.settings.developerSecretKey, callback, customData, extraHeaders);
},

GetPlayFabIDsFromPSNAccountIDs: function (request, callback, customData, extraHeaders) {
if (!PlayFab.settings.developerSecretKey) throw PlayFab._internalSettings.errorSecretKey;
PlayFab._internalSettings.ExecuteRequest(PlayFab._internalSettings.GetServerUrl() + "/Server/GetPlayFabIDsFromPSNAccountIDs", request, "X-SecretKey", PlayFab.settings.developerSecretKey, callback, customData, extraHeaders);
},

GetPlayFabIDsFromSteamIDs: function (request, callback, customData, extraHeaders) {
if (!PlayFab.settings.developerSecretKey) throw PlayFab._internalSettings.errorSecretKey;
PlayFab._internalSettings.ExecuteRequest(PlayFab._internalSettings.GetServerUrl() + "/Server/GetPlayFabIDsFromSteamIDs", request, "X-SecretKey", PlayFab.settings.developerSecretKey, callback, customData, extraHeaders);
Expand Down
38 changes: 35 additions & 3 deletions PlayFabSdk/src/Typings/PlayFab/PlayFabAdminApi.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ declare module PlayFabAdminModule {
* https://api.playfab.com/Documentation/Admin/method/AbortTaskInstance
*/
AbortTaskInstance(request: PlayFabAdminModels.AbortTaskInstanceRequest, callback: PlayFabModule.ApiCallback<PlayFabAdminModels.EmptyResponse>, customData?: any, extraHeaders?: { [key: string]: string }): void;
/**
* Update news item to include localized version
* https://api.playfab.com/Documentation/Admin/method/AddLocalizedNews
*/
AddLocalizedNews(request: PlayFabAdminModels.AddLocalizedNewsRequest, callback: PlayFabModule.ApiCallback<PlayFabAdminModels.AddLocalizedNewsResult>, customData?: any, extraHeaders?: { [key: string]: string }): void;
/**
* Adds a new news item to the title's news feed
* https://api.playfab.com/Documentation/Admin/method/AddNews
Expand Down Expand Up @@ -622,13 +627,31 @@ declare module PlayFabAdminModels {

}

/** https://api.playfab.com/Documentation/Admin/datatype/PlayFab.Admin.Models/PlayFab.Admin.Models.AddLocalizedNewsRequest */
export interface AddLocalizedNewsRequest extends PlayFabModule.IPlayFabRequestCommon {
/** Localized body text of the news. */
Body: string;
/** Language of the news item. */
Language: string;
/** Unique id of the updated news item. */
NewsId: string;
/** Localized title (headline) of the news item. */
Title: string;

}

/** https://api.playfab.com/Documentation/Admin/datatype/PlayFab.Admin.Models/PlayFab.Admin.Models.AddLocalizedNewsResult */
export interface AddLocalizedNewsResult extends PlayFabModule.IPlayFabResultCommon {

}

/** https://api.playfab.com/Documentation/Admin/datatype/PlayFab.Admin.Models/PlayFab.Admin.Models.AddNewsRequest */
export interface AddNewsRequest extends PlayFabModule.IPlayFabRequestCommon {
/** Body text of the news */
/** Default body text of the news. */
Body: string;
/** Time this news was published. If not set, defaults to now. */
Timestamp?: string;
/** Title (headline) of the news item */
/** Default title (headline) of the news item. */
Title: string;

}
Expand Down Expand Up @@ -2094,6 +2117,12 @@ declare module PlayFabAdminModels {
| "PushNotificationTemplateInvalidSyntax"
| "PushNotificationTemplateNoCustomPayloadForV1"
| "NoLeaderboardForStatistic"
| "TitleNewsMissingDefaultLanguage"
| "TitleNewsNotFound"
| "TitleNewsDuplicateLanguage"
| "TitleNewsMissingTitleOrBody"
| "TitleNewsInvalidLanguage"
| "EmailRecipientBlacklisted"
| "MatchmakingEntityInvalid"
| "MatchmakingPlayerAttributesInvalid"
| "MatchmakingCreateRequestMissing"
Expand Down Expand Up @@ -2131,7 +2160,10 @@ declare module PlayFabAdminModels {
| "MatchmakingNotEnabled"
| "MatchmakingGetStatisticsIdentityInvalid"
| "MatchmakingStatisticsIdMissing"
| "CannotEnableMultiplayerServersForTitle";
| "CannotEnableMultiplayerServersForTitle"
| "TitleConfigNotFound"
| "TitleConfigUpdateConflict"
| "TitleConfigSerializationError";

/** https://api.playfab.com/Documentation/Admin/datatype/PlayFab.Admin.Models/PlayFab.Admin.Models.GetActionsOnPlayersInSegmentTaskInstanceResult */
export interface GetActionsOnPlayersInSegmentTaskInstanceResult extends PlayFabModule.IPlayFabResultCommon {
Expand Down
4 changes: 2 additions & 2 deletions PlayFabSdk/src/Typings/PlayFab/PlayFabClientApi.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1909,7 +1909,7 @@ declare module PlayFabClientModels {

/** https://api.playfab.com/Documentation/Client/datatype/PlayFab.Client.Models/PlayFab.Client.Models.FriendInfo */
export interface FriendInfo {
/** Unique lobby identifier of the Game Server Instance to which this player is currently connected. */
/** This field is not populated. */
CurrentMatchmakerLobbyId?: string;
/** Available Facebook information (if the user and PlayFab friend are also connected in Facebook). */
FacebookInfo?: UserFacebookInfo;
Expand Down Expand Up @@ -4559,7 +4559,7 @@ declare module PlayFabClientModels {
Body?: string;
/** Unique identifier of news item. */
NewsId?: string;
/** Date and time when the news items was posted. */
/** Date and time when the news item was posted. */
Timestamp: string;
/** Title of the news item. */
Title?: string;
Expand Down
10 changes: 5 additions & 5 deletions PlayFabSdk/src/Typings/PlayFab/PlayFabProfilesApi.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,17 +99,17 @@ declare module PlayFabProfilesModels {

/** https://api.playfab.com/Documentation/Profiles/datatype/PlayFab.Profiles.Models/PlayFab.Profiles.Models.EntityProfileBody */
export interface EntityProfileBody {
/**
* The display name of the entity. This field may serve different purposes for different entity types. i.e.: for a title
* player account it could represent the display name of the player, whereas on a character it could be character's name.
*/
DisplayName?: string;
/** The entity id and type. */
Entity?: EntityKey;
/** The chain of responsibility for this entity. Use Lineage. */
EntityChain?: string;
/** The files on this profile. */
Files?: { [key: string]: EntityProfileFileMetadata };
/**
* The friendly name of the entity. This field may serve different purposes for different entity types. i.e.: for a title
* player account it could represent the display name of the player, whereas on a character it could be character's name.
*/
FriendlyName?: string;
/** The language on this profile. */
Language?: string;
/** The lineage of this profile. */
Expand Down
Loading

0 comments on commit 55281be

Please sign in to comment.