Skip to content

Commit 8d99a85

Browse files
https://api.playfab.com/releaseNotes/#180709
2 parents 91d0085 + 27bd727 commit 8d99a85

20 files changed

+392
-56
lines changed

PlayFabSdk/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "playfab-web-sdk",
3-
"version": "1.24.180705",
3+
"version": "1.26.180709",
44
"description": "Playfab SDK for JS client applications",
55
"license": "Apache-2.0",
66
"repository": {

PlayFabSdk/src/PlayFab/PlayFabAdminApi.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ if(!PlayFab.settings) {
2121
if(!PlayFab._internalSettings) {
2222
PlayFab._internalSettings = {
2323
entityToken: null,
24-
sdkVersion: "1.24.180705",
24+
sdkVersion: "1.26.180709",
2525
sessionTicket: null,
2626
productionServerUrl: ".playfabapi.com",
2727
errorTitleId: "Must be have PlayFab.settings.titleId set to call this method",
@@ -126,7 +126,7 @@ if(!PlayFab._internalSettings) {
126126
}
127127

128128
PlayFab.buildIdentifier = "jbuild_javascriptsdk_0";
129-
PlayFab.sdkVersion = "1.24.180705";
129+
PlayFab.sdkVersion = "1.26.180709";
130130
PlayFab.GenerateErrorReport = function (error) {
131131
if (error == null)
132132
return "";

PlayFabSdk/src/PlayFab/PlayFabClientApi.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ if(!PlayFab.settings) {
2121
if(!PlayFab._internalSettings) {
2222
PlayFab._internalSettings = {
2323
entityToken: null,
24-
sdkVersion: "1.24.180705",
24+
sdkVersion: "1.26.180709",
2525
sessionTicket: null,
2626
productionServerUrl: ".playfabapi.com",
2727
errorTitleId: "Must be have PlayFab.settings.titleId set to call this method",
@@ -126,7 +126,7 @@ if(!PlayFab._internalSettings) {
126126
}
127127

128128
PlayFab.buildIdentifier = "jbuild_javascriptsdk_0";
129-
PlayFab.sdkVersion = "1.24.180705";
129+
PlayFab.sdkVersion = "1.26.180709";
130130
PlayFab.GenerateErrorReport = function (error) {
131131
if (error == null)
132132
return "";

PlayFabSdk/src/PlayFab/PlayFabEntityApi.js

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ if(!PlayFab.settings) {
2121
if(!PlayFab._internalSettings) {
2222
PlayFab._internalSettings = {
2323
entityToken: null,
24-
sdkVersion: "1.24.180705",
24+
sdkVersion: "1.26.180709",
2525
sessionTicket: null,
2626
productionServerUrl: ".playfabapi.com",
2727
errorTitleId: "Must be have PlayFab.settings.titleId set to call this method",
@@ -126,7 +126,7 @@ if(!PlayFab._internalSettings) {
126126
}
127127

128128
PlayFab.buildIdentifier = "jbuild_javascriptsdk_0";
129-
PlayFab.sdkVersion = "1.24.180705";
129+
PlayFab.sdkVersion = "1.26.180709";
130130
PlayFab.GenerateErrorReport = function (error) {
131131
if (error == null)
132132
return "";
@@ -203,6 +203,11 @@ PlayFab.EntityApi = {
203203
PlayFab._internalSettings.ExecuteRequest(PlayFab._internalSettings.GetServerUrl() + "/Group/DeleteRole", request, "X-EntityToken", PlayFab._internalSettings.entityToken, callback, customData, extraHeaders);
204204
},
205205

206+
ExecuteEntityCloudScript: function (request, callback, customData, extraHeaders) {
207+
if (!PlayFab._internalSettings.entityToken) throw PlayFab._internalSettings.errorEntityToken;
208+
PlayFab._internalSettings.ExecuteRequest(PlayFab._internalSettings.GetServerUrl() + "/CloudScript/ExecuteEntityCloudScript", request, "X-EntityToken", PlayFab._internalSettings.entityToken, callback, customData, extraHeaders);
209+
},
210+
206211
FinalizeFileUploads: function (request, callback, customData, extraHeaders) {
207212
if (!PlayFab._internalSettings.entityToken) throw PlayFab._internalSettings.errorEntityToken;
208213
PlayFab._internalSettings.ExecuteRequest(PlayFab._internalSettings.GetServerUrl() + "/File/FinalizeFileUploads", request, "X-EntityToken", PlayFab._internalSettings.entityToken, callback, customData, extraHeaders);
@@ -340,6 +345,11 @@ PlayFab.EntityApi = {
340345
if (!PlayFab._internalSettings.entityToken) throw PlayFab._internalSettings.errorEntityToken;
341346
PlayFab._internalSettings.ExecuteRequest(PlayFab._internalSettings.GetServerUrl() + "/Group/UpdateRole", request, "X-EntityToken", PlayFab._internalSettings.entityToken, callback, customData, extraHeaders);
342347
},
348+
349+
WriteEvents: function (request, callback, customData, extraHeaders) {
350+
if (!PlayFab._internalSettings.entityToken) throw PlayFab._internalSettings.errorEntityToken;
351+
PlayFab._internalSettings.ExecuteRequest(PlayFab._internalSettings.GetServerUrl() + "/Event/WriteEvents", request, "X-EntityToken", PlayFab._internalSettings.entityToken, callback, customData, extraHeaders);
352+
},
343353
};
344354

345355
var PlayFabEntitySDK = PlayFab.EntityApi;

PlayFabSdk/src/PlayFab/PlayFabMatchmakerApi.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ if(!PlayFab.settings) {
2121
if(!PlayFab._internalSettings) {
2222
PlayFab._internalSettings = {
2323
entityToken: null,
24-
sdkVersion: "1.24.180705",
24+
sdkVersion: "1.26.180709",
2525
sessionTicket: null,
2626
productionServerUrl: ".playfabapi.com",
2727
errorTitleId: "Must be have PlayFab.settings.titleId set to call this method",
@@ -126,7 +126,7 @@ if(!PlayFab._internalSettings) {
126126
}
127127

128128
PlayFab.buildIdentifier = "jbuild_javascriptsdk_0";
129-
PlayFab.sdkVersion = "1.24.180705";
129+
PlayFab.sdkVersion = "1.26.180709";
130130
PlayFab.GenerateErrorReport = function (error) {
131131
if (error == null)
132132
return "";

PlayFabSdk/src/PlayFab/PlayFabServerApi.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ if(!PlayFab.settings) {
2121
if(!PlayFab._internalSettings) {
2222
PlayFab._internalSettings = {
2323
entityToken: null,
24-
sdkVersion: "1.24.180705",
24+
sdkVersion: "1.26.180709",
2525
sessionTicket: null,
2626
productionServerUrl: ".playfabapi.com",
2727
errorTitleId: "Must be have PlayFab.settings.titleId set to call this method",
@@ -126,7 +126,7 @@ if(!PlayFab._internalSettings) {
126126
}
127127

128128
PlayFab.buildIdentifier = "jbuild_javascriptsdk_0";
129-
PlayFab.sdkVersion = "1.24.180705";
129+
PlayFab.sdkVersion = "1.26.180709";
130130
PlayFab.GenerateErrorReport = function (error) {
131131
if (error == null)
132132
return "";

PlayFabSdk/src/Typings/PlayFab/PlayFabAdminApi.d.ts

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1690,7 +1690,6 @@ declare module PlayFabAdminModels {
16901690
}
16911691

16921692
type GenericErrorCodes = "Success"
1693-
| "MatchmakingHopperIdInvalid"
16941693
| "UnkownError"
16951694
| "InvalidParams"
16961695
| "AccountNotFound"
@@ -2069,9 +2068,11 @@ declare module PlayFabAdminModels {
20692068
| "GameServerConflict"
20702069
| "GameServerInternalServerError"
20712070
| "GameServerServiceUnavailable"
2072-
| "MatchmakingInvalidEntityKeyList"
2073-
| "MatchmakingInvalidTicketCreatorProfile"
2074-
| "MatchmakingInvalidUserAttributes"
2071+
| "ExplicitContentDetected"
2072+
| "PIIContentDetected"
2073+
| "InvalidScheduledTaskParameter"
2074+
| "MatchmakingEntityInvalid"
2075+
| "MatchmakingPlayerAttributesInvalid"
20752076
| "MatchmakingCreateRequestMissing"
20762077
| "MatchmakingCreateRequestCreatorMissing"
20772078
| "MatchmakingCreateRequestCreatorIdMissing"
@@ -2083,7 +2084,7 @@ declare module PlayFabAdminModels {
20832084
| "MatchmakingHopperIdMissing"
20842085
| "MatchmakingTitleIdMissing"
20852086
| "MatchmakingTicketIdIdMissing"
2086-
| "MatchmakingUserIdMissing"
2087+
| "MatchmakingPlayerIdMissing"
20872088
| "MatchmakingJoinRequestUserMissing"
20882089
| "MatchmakingHopperConfigNotFound"
20892090
| "MatchmakingMatchNotFound"
@@ -2096,10 +2097,12 @@ declare module PlayFabAdminModels {
20962097
| "MatchmakingCancelTicketServerIdentityInvalid"
20972098
| "MatchmakingCancelTicketUserIdentityMismatch"
20982099
| "MatchmakingGetMatchIdentityMismatch"
2099-
| "MatchmakingUserIdentityMismatch"
2100+
| "MatchmakingPlayerIdentityMismatch"
21002101
| "MatchmakingAlreadyJoinedTicket"
21012102
| "MatchmakingTicketAlreadyCompleted"
2102-
| "MatchmakingHopperConfigInvalid";
2103+
| "MatchmakingHopperIdInvalid"
2104+
| "MatchmakingHopperConfigInvalid"
2105+
| "MatchmakingMemberProfileInvalid";
21032106

21042107
/** https://api.playfab.com/Documentation/Admin/datatype/PlayFab.Admin.Models/PlayFab.Admin.Models.GetActionsOnPlayersInSegmentTaskInstanceResult */
21052108
export interface GetActionsOnPlayersInSegmentTaskInstanceResult extends PlayFabModule.IPlayFabResultCommon {
@@ -3726,7 +3729,9 @@ declare module PlayFabAdminModels {
37263729
| "BackEnd"
37273730
| "GameClient"
37283731
| "GameServer"
3729-
| "Partner";
3732+
| "Partner"
3733+
| "Custom"
3734+
| "API";
37303735

37313736
type StatisticAggregationMethod = "Last"
37323737
| "Min"

PlayFabSdk/src/Typings/PlayFab/PlayFabClientApi.d.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2314,7 +2314,7 @@ declare module PlayFabClientModels {
23142314
/** https://api.playfab.com/Documentation/Client/datatype/PlayFab.Client.Models/PlayFab.Client.Models.GetPlayerProfileRequest */
23152315
export interface GetPlayerProfileRequest extends PlayFabModule.IPlayFabRequestCommon {
23162316
/** Unique PlayFab assigned ID of the user on whom the operation will be performed. */
2317-
PlayFabId: string;
2317+
PlayFabId?: string;
23182318
/**
23192319
* If non-null, this determines which properties of the resulting player profiles to return. For API calls from the client,
23202320
* only the allowed client profile properties for the title may be requested. These allowed properties are configured in
@@ -3946,7 +3946,9 @@ declare module PlayFabClientModels {
39463946
| "BackEnd"
39473947
| "GameClient"
39483948
| "GameServer"
3949-
| "Partner";
3949+
| "Partner"
3950+
| "Custom"
3951+
| "API";
39503952

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

0 commit comments

Comments
 (0)