Skip to content

Commit 0b1f6a9

Browse files
https://docs.microsoft.com/en-us/gaming/playfab/release-notes/#211012
1 parent 0f1e29f commit 0b1f6a9

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+649
-943
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.93.210927",
3+
"version": "1.79.201217",
44
"description": "Playfab SDK for JS client applications",
55
"license": "Apache-2.0",
66
"repository": {

PlayFabSdk/src/PlayFab/PlayFabAdminApi.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ if(!PlayFab.settings) {
1414
if(!PlayFab._internalSettings) {
1515
PlayFab._internalSettings = {
1616
entityToken: null,
17-
sdkVersion: "1.93.210927",
17+
sdkVersion: "1.79.201217",
1818
requestGetParams: {
19-
sdk: "JavaScriptSDK-1.93.210927"
19+
sdk: "JavaScriptSDK-1.79.201217"
2020
},
2121
sessionTicket: null,
2222
verticalName: null, // The name of a customer vertical. This is only for customers running a private cluster. Generally you shouldn't touch this
@@ -223,8 +223,8 @@ if(!PlayFab._internalSettings) {
223223
}
224224
}
225225

226-
PlayFab.buildIdentifier = "jbuild_javascriptsdk_sdk-generic-2_2";
227-
PlayFab.sdkVersion = "1.93.210927";
226+
PlayFab.buildIdentifier = "jbuild_javascriptsdk_sdk-generic-2_0";
227+
PlayFab.sdkVersion = "1.79.201217";
228228
PlayFab.GenerateErrorReport = function (error) {
229229
if (error == null)
230230
return "";

PlayFabSdk/src/PlayFab/PlayFabAuthenticationApi.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ if(!PlayFab.settings) {
1414
if(!PlayFab._internalSettings) {
1515
PlayFab._internalSettings = {
1616
entityToken: null,
17-
sdkVersion: "1.93.210927",
17+
sdkVersion: "1.79.201217",
1818
requestGetParams: {
19-
sdk: "JavaScriptSDK-1.93.210927"
19+
sdk: "JavaScriptSDK-1.79.201217"
2020
},
2121
sessionTicket: null,
2222
verticalName: null, // The name of a customer vertical. This is only for customers running a private cluster. Generally you shouldn't touch this
@@ -223,8 +223,8 @@ if(!PlayFab._internalSettings) {
223223
}
224224
}
225225

226-
PlayFab.buildIdentifier = "jbuild_javascriptsdk_sdk-generic-2_2";
227-
PlayFab.sdkVersion = "1.93.210927";
226+
PlayFab.buildIdentifier = "jbuild_javascriptsdk_sdk-generic-2_0";
227+
PlayFab.sdkVersion = "1.79.201217";
228228
PlayFab.GenerateErrorReport = function (error) {
229229
if (error == null)
230230
return "";

PlayFabSdk/src/PlayFab/PlayFabClientApi.js

Lines changed: 64 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ if(!PlayFab.settings) {
1414
if(!PlayFab._internalSettings) {
1515
PlayFab._internalSettings = {
1616
entityToken: null,
17-
sdkVersion: "1.93.210927",
17+
sdkVersion: "1.79.201217",
1818
requestGetParams: {
19-
sdk: "JavaScriptSDK-1.93.210927"
19+
sdk: "JavaScriptSDK-1.79.201217"
2020
},
2121
sessionTicket: null,
2222
verticalName: null, // The name of a customer vertical. This is only for customers running a private cluster. Generally you shouldn't touch this
@@ -223,8 +223,8 @@ if(!PlayFab._internalSettings) {
223223
}
224224
}
225225

226-
PlayFab.buildIdentifier = "jbuild_javascriptsdk_sdk-generic-2_2";
227-
PlayFab.sdkVersion = "1.93.210927";
226+
PlayFab.buildIdentifier = "jbuild_javascriptsdk_sdk-generic-2_0";
227+
PlayFab.sdkVersion = "1.79.201217";
228228
PlayFab.GenerateErrorReport = function (error) {
229229
if (error == null)
230230
return "";
@@ -297,10 +297,6 @@ PlayFab.ClientApi = {
297297
return PlayFab._internalSettings.ExecuteRequestWrapper("/Client/ConsumeMicrosoftStoreEntitlements", request, "X-Authorization", callback, customData, extraHeaders);
298298
},
299299

300-
ConsumePS5Entitlements: function (request, callback, customData, extraHeaders) {
301-
return PlayFab._internalSettings.ExecuteRequestWrapper("/Client/ConsumePS5Entitlements", request, "X-Authorization", callback, customData, extraHeaders);
302-
},
303-
304300
ConsumePSNEntitlements: function (request, callback, customData, extraHeaders) {
305301
return PlayFab._internalSettings.ExecuteRequestWrapper("/Client/ConsumePSNEntitlements", request, "X-Authorization", callback, customData, extraHeaders);
306302
},
@@ -529,6 +525,10 @@ PlayFab.ClientApi = {
529525
return PlayFab._internalSettings.ExecuteRequestWrapper("/Client/GetUserReadOnlyData", request, "X-Authorization", callback, customData, extraHeaders);
530526
},
531527

528+
GetWindowsHelloChallenge: function (request, callback, customData, extraHeaders) {
529+
return PlayFab._internalSettings.ExecuteRequestWrapper("/Client/GetWindowsHelloChallenge", request, null, callback, customData, extraHeaders);
530+
},
531+
532532
GrantCharacterToUser: function (request, callback, customData, extraHeaders) {
533533
return PlayFab._internalSettings.ExecuteRequestWrapper("/Client/GrantCharacterToUser", request, "X-Authorization", callback, customData, extraHeaders);
534534
},
@@ -593,6 +593,10 @@ PlayFab.ClientApi = {
593593
return PlayFab._internalSettings.ExecuteRequestWrapper("/Client/LinkTwitch", request, "X-Authorization", callback, customData, extraHeaders);
594594
},
595595

596+
LinkWindowsHello: function (request, callback, customData, extraHeaders) {
597+
return PlayFab._internalSettings.ExecuteRequestWrapper("/Client/LinkWindowsHello", request, "X-Authorization", callback, customData, extraHeaders);
598+
},
599+
596600
LinkXboxAccount: function (request, callback, customData, extraHeaders) {
597601
return PlayFab._internalSettings.ExecuteRequestWrapper("/Client/LinkXboxAccount", request, "X-Authorization", callback, customData, extraHeaders);
598602
},
@@ -1005,6 +1009,30 @@ PlayFab.ClientApi = {
10051009
return new Promise(function(resolve){resolve(authenticationContext);});
10061010
},
10071011

1012+
LoginWithWindowsHello: function (request, callback, customData, extraHeaders) {
1013+
request.TitleId = PlayFab.settings.titleId ? PlayFab.settings.titleId : request.TitleId; if (!request.TitleId) throw PlayFab._internalSettings.errorTitleId;
1014+
// PlayFab._internalSettings.authenticationContext can be modified by other asynchronous login attempts
1015+
// Deep-copy the authenticationContext here to safely update it
1016+
var authenticationContext = JSON.parse(JSON.stringify(PlayFab._internalSettings.authenticationContext));
1017+
var overloadCallback = function (result, error) {
1018+
if (result != null) {
1019+
if(result.data.SessionTicket != null) {
1020+
PlayFab._internalSettings.sessionTicket = result.data.SessionTicket;
1021+
}
1022+
if (result.data.EntityToken != null) {
1023+
PlayFab._internalSettings.entityToken = result.data.EntityToken.EntityToken;
1024+
}
1025+
// Apply the updates for the AuthenticationContext returned to the client
1026+
authenticationContext = PlayFab._internalSettings.UpdateAuthenticationContext(authenticationContext, result);
1027+
}
1028+
if (callback != null && typeof (callback) === "function")
1029+
callback(result, error);
1030+
};
1031+
PlayFab._internalSettings.ExecuteRequestWrapper("/Client/LoginWithWindowsHello", request, null, overloadCallback, customData, extraHeaders);
1032+
// Return a Promise so that multiple asynchronous calls to this method can be handled simultaneously with Promise.all()
1033+
return new Promise(function(resolve){resolve(authenticationContext);});
1034+
},
1035+
10081036
LoginWithXbox: function (request, callback, customData, extraHeaders) {
10091037
request.TitleId = PlayFab.settings.titleId ? PlayFab.settings.titleId : request.TitleId; if (!request.TitleId) throw PlayFab._internalSettings.errorTitleId;
10101038
// PlayFab._internalSettings.authenticationContext can be modified by other asynchronous login attempts
@@ -1072,6 +1100,30 @@ PlayFab.ClientApi = {
10721100
return PlayFab._internalSettings.ExecuteRequestWrapper("/Client/RegisterPlayFabUser", request, null, overloadCallback, customData, extraHeaders);
10731101
},
10741102

1103+
RegisterWithWindowsHello: function (request, callback, customData, extraHeaders) {
1104+
request.TitleId = PlayFab.settings.titleId ? PlayFab.settings.titleId : request.TitleId; if (!request.TitleId) throw PlayFab._internalSettings.errorTitleId;
1105+
// PlayFab._internalSettings.authenticationContext can be modified by other asynchronous login attempts
1106+
// Deep-copy the authenticationContext here to safely update it
1107+
var authenticationContext = JSON.parse(JSON.stringify(PlayFab._internalSettings.authenticationContext));
1108+
var overloadCallback = function (result, error) {
1109+
if (result != null) {
1110+
if(result.data.SessionTicket != null) {
1111+
PlayFab._internalSettings.sessionTicket = result.data.SessionTicket;
1112+
}
1113+
if (result.data.EntityToken != null) {
1114+
PlayFab._internalSettings.entityToken = result.data.EntityToken.EntityToken;
1115+
}
1116+
// Apply the updates for the AuthenticationContext returned to the client
1117+
authenticationContext = PlayFab._internalSettings.UpdateAuthenticationContext(authenticationContext, result);
1118+
}
1119+
if (callback != null && typeof (callback) === "function")
1120+
callback(result, error);
1121+
};
1122+
PlayFab._internalSettings.ExecuteRequestWrapper("/Client/RegisterWithWindowsHello", request, null, overloadCallback, customData, extraHeaders);
1123+
// Return a Promise so that multiple asynchronous calls to this method can be handled simultaneously with Promise.all()
1124+
return new Promise(function(resolve){resolve(authenticationContext);});
1125+
},
1126+
10751127
RemoveContactEmail: function (request, callback, customData, extraHeaders) {
10761128
return PlayFab._internalSettings.ExecuteRequestWrapper("/Client/RemoveContactEmail", request, "X-Authorization", callback, customData, extraHeaders);
10771129
},
@@ -1192,6 +1244,10 @@ PlayFab.ClientApi = {
11921244
return PlayFab._internalSettings.ExecuteRequestWrapper("/Client/UnlinkTwitch", request, "X-Authorization", callback, customData, extraHeaders);
11931245
},
11941246

1247+
UnlinkWindowsHello: function (request, callback, customData, extraHeaders) {
1248+
return PlayFab._internalSettings.ExecuteRequestWrapper("/Client/UnlinkWindowsHello", request, "X-Authorization", callback, customData, extraHeaders);
1249+
},
1250+
11951251
UnlinkXboxAccount: function (request, callback, customData, extraHeaders) {
11961252
return PlayFab._internalSettings.ExecuteRequestWrapper("/Client/UnlinkXboxAccount", request, "X-Authorization", callback, customData, extraHeaders);
11971253
},

PlayFabSdk/src/PlayFab/PlayFabCloudScriptApi.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ if(!PlayFab.settings) {
1414
if(!PlayFab._internalSettings) {
1515
PlayFab._internalSettings = {
1616
entityToken: null,
17-
sdkVersion: "1.93.210927",
17+
sdkVersion: "1.79.201217",
1818
requestGetParams: {
19-
sdk: "JavaScriptSDK-1.93.210927"
19+
sdk: "JavaScriptSDK-1.79.201217"
2020
},
2121
sessionTicket: null,
2222
verticalName: null, // The name of a customer vertical. This is only for customers running a private cluster. Generally you shouldn't touch this
@@ -223,8 +223,8 @@ if(!PlayFab._internalSettings) {
223223
}
224224
}
225225

226-
PlayFab.buildIdentifier = "jbuild_javascriptsdk_sdk-generic-2_2";
227-
PlayFab.sdkVersion = "1.93.210927";
226+
PlayFab.buildIdentifier = "jbuild_javascriptsdk_sdk-generic-2_0";
227+
PlayFab.sdkVersion = "1.79.201217";
228228
PlayFab.GenerateErrorReport = function (error) {
229229
if (error == null)
230230
return "";
@@ -242,11 +242,11 @@ PlayFab.CloudScriptApi = {
242242
},
243243

244244
ExecuteEntityCloudScript: function (request, callback, customData, extraHeaders) {
245-
return PlayFab._internalSettings.ExecuteRequestWrapper("/CloudScript/ExecuteEntityCloudScript", request, "X-EntityToken", callback, customData, extraHeaders);
245+
return PlayFab._internalSettings.ExecuteRequestWrapper("/CloudScript/ExecuteEntityCloudScript", request, null, callback, customData, extraHeaders);
246246
},
247247

248248
ExecuteFunction: function (request, callback, customData, extraHeaders) {
249-
return PlayFab._internalSettings.ExecuteRequestWrapper("/CloudScript/ExecuteFunction", request, "X-EntityToken", callback, customData, extraHeaders);
249+
return PlayFab._internalSettings.ExecuteRequestWrapper("/CloudScript/ExecuteFunction", request, null, callback, customData, extraHeaders);
250250
},
251251

252252
ListFunctions: function (request, callback, customData, extraHeaders) {

PlayFabSdk/src/PlayFab/PlayFabDataApi.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ if(!PlayFab.settings) {
1414
if(!PlayFab._internalSettings) {
1515
PlayFab._internalSettings = {
1616
entityToken: null,
17-
sdkVersion: "1.93.210927",
17+
sdkVersion: "1.79.201217",
1818
requestGetParams: {
19-
sdk: "JavaScriptSDK-1.93.210927"
19+
sdk: "JavaScriptSDK-1.79.201217"
2020
},
2121
sessionTicket: null,
2222
verticalName: null, // The name of a customer vertical. This is only for customers running a private cluster. Generally you shouldn't touch this
@@ -223,8 +223,8 @@ if(!PlayFab._internalSettings) {
223223
}
224224
}
225225

226-
PlayFab.buildIdentifier = "jbuild_javascriptsdk_sdk-generic-2_2";
227-
PlayFab.sdkVersion = "1.93.210927";
226+
PlayFab.buildIdentifier = "jbuild_javascriptsdk_sdk-generic-2_0";
227+
PlayFab.sdkVersion = "1.79.201217";
228228
PlayFab.GenerateErrorReport = function (error) {
229229
if (error == null)
230230
return "";

PlayFabSdk/src/PlayFab/PlayFabEventsApi.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ if(!PlayFab.settings) {
1414
if(!PlayFab._internalSettings) {
1515
PlayFab._internalSettings = {
1616
entityToken: null,
17-
sdkVersion: "1.93.210927",
17+
sdkVersion: "1.79.201217",
1818
requestGetParams: {
19-
sdk: "JavaScriptSDK-1.93.210927"
19+
sdk: "JavaScriptSDK-1.79.201217"
2020
},
2121
sessionTicket: null,
2222
verticalName: null, // The name of a customer vertical. This is only for customers running a private cluster. Generally you shouldn't touch this
@@ -223,8 +223,8 @@ if(!PlayFab._internalSettings) {
223223
}
224224
}
225225

226-
PlayFab.buildIdentifier = "jbuild_javascriptsdk_sdk-generic-2_2";
227-
PlayFab.sdkVersion = "1.93.210927";
226+
PlayFab.buildIdentifier = "jbuild_javascriptsdk_sdk-generic-2_0";
227+
PlayFab.sdkVersion = "1.79.201217";
228228
PlayFab.GenerateErrorReport = function (error) {
229229
if (error == null)
230230
return "";

PlayFabSdk/src/PlayFab/PlayFabExperimentationApi.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ if(!PlayFab.settings) {
1414
if(!PlayFab._internalSettings) {
1515
PlayFab._internalSettings = {
1616
entityToken: null,
17-
sdkVersion: "1.93.210927",
17+
sdkVersion: "1.79.201217",
1818
requestGetParams: {
19-
sdk: "JavaScriptSDK-1.93.210927"
19+
sdk: "JavaScriptSDK-1.79.201217"
2020
},
2121
sessionTicket: null,
2222
verticalName: null, // The name of a customer vertical. This is only for customers running a private cluster. Generally you shouldn't touch this
@@ -223,8 +223,8 @@ if(!PlayFab._internalSettings) {
223223
}
224224
}
225225

226-
PlayFab.buildIdentifier = "jbuild_javascriptsdk_sdk-generic-2_2";
227-
PlayFab.sdkVersion = "1.93.210927";
226+
PlayFab.buildIdentifier = "jbuild_javascriptsdk_sdk-generic-2_0";
227+
PlayFab.sdkVersion = "1.79.201217";
228228
PlayFab.GenerateErrorReport = function (error) {
229229
if (error == null)
230230
return "";

PlayFabSdk/src/PlayFab/PlayFabGroupsApi.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ if(!PlayFab.settings) {
1414
if(!PlayFab._internalSettings) {
1515
PlayFab._internalSettings = {
1616
entityToken: null,
17-
sdkVersion: "1.93.210927",
17+
sdkVersion: "1.79.201217",
1818
requestGetParams: {
19-
sdk: "JavaScriptSDK-1.93.210927"
19+
sdk: "JavaScriptSDK-1.79.201217"
2020
},
2121
sessionTicket: null,
2222
verticalName: null, // The name of a customer vertical. This is only for customers running a private cluster. Generally you shouldn't touch this
@@ -223,8 +223,8 @@ if(!PlayFab._internalSettings) {
223223
}
224224
}
225225

226-
PlayFab.buildIdentifier = "jbuild_javascriptsdk_sdk-generic-2_2";
227-
PlayFab.sdkVersion = "1.93.210927";
226+
PlayFab.buildIdentifier = "jbuild_javascriptsdk_sdk-generic-2_0";
227+
PlayFab.sdkVersion = "1.79.201217";
228228
PlayFab.GenerateErrorReport = function (error) {
229229
if (error == null)
230230
return "";

PlayFabSdk/src/PlayFab/PlayFabInsightsApi.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ if(!PlayFab.settings) {
1414
if(!PlayFab._internalSettings) {
1515
PlayFab._internalSettings = {
1616
entityToken: null,
17-
sdkVersion: "1.93.210927",
17+
sdkVersion: "1.79.201217",
1818
requestGetParams: {
19-
sdk: "JavaScriptSDK-1.93.210927"
19+
sdk: "JavaScriptSDK-1.79.201217"
2020
},
2121
sessionTicket: null,
2222
verticalName: null, // The name of a customer vertical. This is only for customers running a private cluster. Generally you shouldn't touch this
@@ -223,8 +223,8 @@ if(!PlayFab._internalSettings) {
223223
}
224224
}
225225

226-
PlayFab.buildIdentifier = "jbuild_javascriptsdk_sdk-generic-2_2";
227-
PlayFab.sdkVersion = "1.93.210927";
226+
PlayFab.buildIdentifier = "jbuild_javascriptsdk_sdk-generic-2_0";
227+
PlayFab.sdkVersion = "1.79.201217";
228228
PlayFab.GenerateErrorReport = function (error) {
229229
if (error == null)
230230
return "";

0 commit comments

Comments
 (0)