Skip to content

Commit

Permalink
https://api.playfab.com/releaseNotes/#180709
Browse files Browse the repository at this point in the history
  • Loading branch information
PlayFabJenkinsBot committed Jul 9, 2018
2 parents 91d0085 + 27bd727 commit 8d99a85
Show file tree
Hide file tree
Showing 20 changed files with 392 additions and 56 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.24.180705",
"version": "1.26.180709",
"description": "Playfab SDK for JS client applications",
"license": "Apache-2.0",
"repository": {
Expand Down
4 changes: 2 additions & 2 deletions PlayFabSdk/src/PlayFab/PlayFabAdminApi.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ if(!PlayFab.settings) {
if(!PlayFab._internalSettings) {
PlayFab._internalSettings = {
entityToken: null,
sdkVersion: "1.24.180705",
sdkVersion: "1.26.180709",
sessionTicket: null,
productionServerUrl: ".playfabapi.com",
errorTitleId: "Must be have PlayFab.settings.titleId set to call this method",
Expand Down Expand Up @@ -126,7 +126,7 @@ if(!PlayFab._internalSettings) {
}

PlayFab.buildIdentifier = "jbuild_javascriptsdk_0";
PlayFab.sdkVersion = "1.24.180705";
PlayFab.sdkVersion = "1.26.180709";
PlayFab.GenerateErrorReport = function (error) {
if (error == null)
return "";
Expand Down
4 changes: 2 additions & 2 deletions PlayFabSdk/src/PlayFab/PlayFabClientApi.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ if(!PlayFab.settings) {
if(!PlayFab._internalSettings) {
PlayFab._internalSettings = {
entityToken: null,
sdkVersion: "1.24.180705",
sdkVersion: "1.26.180709",
sessionTicket: null,
productionServerUrl: ".playfabapi.com",
errorTitleId: "Must be have PlayFab.settings.titleId set to call this method",
Expand Down Expand Up @@ -126,7 +126,7 @@ if(!PlayFab._internalSettings) {
}

PlayFab.buildIdentifier = "jbuild_javascriptsdk_0";
PlayFab.sdkVersion = "1.24.180705";
PlayFab.sdkVersion = "1.26.180709";
PlayFab.GenerateErrorReport = function (error) {
if (error == null)
return "";
Expand Down
14 changes: 12 additions & 2 deletions PlayFabSdk/src/PlayFab/PlayFabEntityApi.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ if(!PlayFab.settings) {
if(!PlayFab._internalSettings) {
PlayFab._internalSettings = {
entityToken: null,
sdkVersion: "1.24.180705",
sdkVersion: "1.26.180709",
sessionTicket: null,
productionServerUrl: ".playfabapi.com",
errorTitleId: "Must be have PlayFab.settings.titleId set to call this method",
Expand Down Expand Up @@ -126,7 +126,7 @@ if(!PlayFab._internalSettings) {
}

PlayFab.buildIdentifier = "jbuild_javascriptsdk_0";
PlayFab.sdkVersion = "1.24.180705";
PlayFab.sdkVersion = "1.26.180709";
PlayFab.GenerateErrorReport = function (error) {
if (error == null)
return "";
Expand Down Expand Up @@ -203,6 +203,11 @@ PlayFab.EntityApi = {
PlayFab._internalSettings.ExecuteRequest(PlayFab._internalSettings.GetServerUrl() + "/Group/DeleteRole", request, "X-EntityToken", PlayFab._internalSettings.entityToken, callback, customData, extraHeaders);
},

ExecuteEntityCloudScript: function (request, callback, customData, extraHeaders) {
if (!PlayFab._internalSettings.entityToken) throw PlayFab._internalSettings.errorEntityToken;
PlayFab._internalSettings.ExecuteRequest(PlayFab._internalSettings.GetServerUrl() + "/CloudScript/ExecuteEntityCloudScript", request, "X-EntityToken", PlayFab._internalSettings.entityToken, callback, customData, extraHeaders);
},

FinalizeFileUploads: function (request, callback, customData, extraHeaders) {
if (!PlayFab._internalSettings.entityToken) throw PlayFab._internalSettings.errorEntityToken;
PlayFab._internalSettings.ExecuteRequest(PlayFab._internalSettings.GetServerUrl() + "/File/FinalizeFileUploads", request, "X-EntityToken", PlayFab._internalSettings.entityToken, callback, customData, extraHeaders);
Expand Down Expand Up @@ -340,6 +345,11 @@ PlayFab.EntityApi = {
if (!PlayFab._internalSettings.entityToken) throw PlayFab._internalSettings.errorEntityToken;
PlayFab._internalSettings.ExecuteRequest(PlayFab._internalSettings.GetServerUrl() + "/Group/UpdateRole", request, "X-EntityToken", PlayFab._internalSettings.entityToken, callback, customData, extraHeaders);
},

WriteEvents: function (request, callback, customData, extraHeaders) {
if (!PlayFab._internalSettings.entityToken) throw PlayFab._internalSettings.errorEntityToken;
PlayFab._internalSettings.ExecuteRequest(PlayFab._internalSettings.GetServerUrl() + "/Event/WriteEvents", request, "X-EntityToken", PlayFab._internalSettings.entityToken, callback, customData, extraHeaders);
},
};

var PlayFabEntitySDK = PlayFab.EntityApi;
Expand Down
4 changes: 2 additions & 2 deletions PlayFabSdk/src/PlayFab/PlayFabMatchmakerApi.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ if(!PlayFab.settings) {
if(!PlayFab._internalSettings) {
PlayFab._internalSettings = {
entityToken: null,
sdkVersion: "1.24.180705",
sdkVersion: "1.26.180709",
sessionTicket: null,
productionServerUrl: ".playfabapi.com",
errorTitleId: "Must be have PlayFab.settings.titleId set to call this method",
Expand Down Expand Up @@ -126,7 +126,7 @@ if(!PlayFab._internalSettings) {
}

PlayFab.buildIdentifier = "jbuild_javascriptsdk_0";
PlayFab.sdkVersion = "1.24.180705";
PlayFab.sdkVersion = "1.26.180709";
PlayFab.GenerateErrorReport = function (error) {
if (error == null)
return "";
Expand Down
4 changes: 2 additions & 2 deletions PlayFabSdk/src/PlayFab/PlayFabServerApi.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ if(!PlayFab.settings) {
if(!PlayFab._internalSettings) {
PlayFab._internalSettings = {
entityToken: null,
sdkVersion: "1.24.180705",
sdkVersion: "1.26.180709",
sessionTicket: null,
productionServerUrl: ".playfabapi.com",
errorTitleId: "Must be have PlayFab.settings.titleId set to call this method",
Expand Down Expand Up @@ -126,7 +126,7 @@ if(!PlayFab._internalSettings) {
}

PlayFab.buildIdentifier = "jbuild_javascriptsdk_0";
PlayFab.sdkVersion = "1.24.180705";
PlayFab.sdkVersion = "1.26.180709";
PlayFab.GenerateErrorReport = function (error) {
if (error == null)
return "";
Expand Down
21 changes: 13 additions & 8 deletions PlayFabSdk/src/Typings/PlayFab/PlayFabAdminApi.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1690,7 +1690,6 @@ declare module PlayFabAdminModels {
}

type GenericErrorCodes = "Success"
| "MatchmakingHopperIdInvalid"
| "UnkownError"
| "InvalidParams"
| "AccountNotFound"
Expand Down Expand Up @@ -2069,9 +2068,11 @@ declare module PlayFabAdminModels {
| "GameServerConflict"
| "GameServerInternalServerError"
| "GameServerServiceUnavailable"
| "MatchmakingInvalidEntityKeyList"
| "MatchmakingInvalidTicketCreatorProfile"
| "MatchmakingInvalidUserAttributes"
| "ExplicitContentDetected"
| "PIIContentDetected"
| "InvalidScheduledTaskParameter"
| "MatchmakingEntityInvalid"
| "MatchmakingPlayerAttributesInvalid"
| "MatchmakingCreateRequestMissing"
| "MatchmakingCreateRequestCreatorMissing"
| "MatchmakingCreateRequestCreatorIdMissing"
Expand All @@ -2083,7 +2084,7 @@ declare module PlayFabAdminModels {
| "MatchmakingHopperIdMissing"
| "MatchmakingTitleIdMissing"
| "MatchmakingTicketIdIdMissing"
| "MatchmakingUserIdMissing"
| "MatchmakingPlayerIdMissing"
| "MatchmakingJoinRequestUserMissing"
| "MatchmakingHopperConfigNotFound"
| "MatchmakingMatchNotFound"
Expand All @@ -2096,10 +2097,12 @@ declare module PlayFabAdminModels {
| "MatchmakingCancelTicketServerIdentityInvalid"
| "MatchmakingCancelTicketUserIdentityMismatch"
| "MatchmakingGetMatchIdentityMismatch"
| "MatchmakingUserIdentityMismatch"
| "MatchmakingPlayerIdentityMismatch"
| "MatchmakingAlreadyJoinedTicket"
| "MatchmakingTicketAlreadyCompleted"
| "MatchmakingHopperConfigInvalid";
| "MatchmakingHopperIdInvalid"
| "MatchmakingHopperConfigInvalid"
| "MatchmakingMemberProfileInvalid";

/** https://api.playfab.com/Documentation/Admin/datatype/PlayFab.Admin.Models/PlayFab.Admin.Models.GetActionsOnPlayersInSegmentTaskInstanceResult */
export interface GetActionsOnPlayersInSegmentTaskInstanceResult extends PlayFabModule.IPlayFabResultCommon {
Expand Down Expand Up @@ -3726,7 +3729,9 @@ declare module PlayFabAdminModels {
| "BackEnd"
| "GameClient"
| "GameServer"
| "Partner";
| "Partner"
| "Custom"
| "API";

type StatisticAggregationMethod = "Last"
| "Min"
Expand Down
8 changes: 6 additions & 2 deletions PlayFabSdk/src/Typings/PlayFab/PlayFabClientApi.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2314,7 +2314,7 @@ declare module PlayFabClientModels {
/** https://api.playfab.com/Documentation/Client/datatype/PlayFab.Client.Models/PlayFab.Client.Models.GetPlayerProfileRequest */
export interface GetPlayerProfileRequest extends PlayFabModule.IPlayFabRequestCommon {
/** Unique PlayFab assigned ID of the user on whom the operation will be performed. */
PlayFabId: string;
PlayFabId?: string;
/**
* If non-null, this determines which properties of the resulting player profiles to return. For API calls from the client,
* only the allowed client profile properties for the title may be requested. These allowed properties are configured in
Expand Down Expand Up @@ -3946,7 +3946,9 @@ declare module PlayFabClientModels {
| "BackEnd"
| "GameClient"
| "GameServer"
| "Partner";
| "Partner"
| "Custom"
| "API";

/** https://api.playfab.com/Documentation/Client/datatype/PlayFab.Client.Models/PlayFab.Client.Models.StartGameRequest */
export interface StartGameRequest extends PlayFabModule.IPlayFabRequestCommon {
Expand Down Expand Up @@ -4668,6 +4670,8 @@ declare module PlayFabClientModels {
export interface UserSettings {
/** Boolean for whether this player is eligible for gathering device info. */
GatherDeviceInfo: boolean;
/** Boolean for whether this player should report OnFocus play-time tracking. */
GatherFocusInfo: boolean;
/** Boolean for whether this player is eligible for ad tracking. */
NeedsAttribution: boolean;

Expand Down
Loading

0 comments on commit 8d99a85

Please sign in to comment.