Skip to content

Commit d6400cd

Browse files
https://api.playfab.com/releaseNotes/#170508
1 parent bfd4050 commit d6400cd

14 files changed

+154
-108
lines changed

PlayFabSdk/src/PlayFab/PlayFabAdminApi.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,8 @@ if(!PlayFab._internalSettings) {
9999
}
100100
}
101101

102-
PlayFab.buildIdentifier = "jbuild_javascriptsdk_1";
103-
PlayFab.sdkVersion = "1.4.170411";
102+
PlayFab.buildIdentifier = "jbuild_javascriptsdk_0";
103+
PlayFab.sdkVersion = "1.5.170508";
104104

105105
PlayFab.AdminApi = {
106106

PlayFabSdk/src/PlayFab/PlayFabClientApi.js

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,8 @@ if(!PlayFab._internalSettings) {
9999
}
100100
}
101101

102-
PlayFab.buildIdentifier = "jbuild_javascriptsdk_1";
103-
PlayFab.sdkVersion = "1.4.170411";
102+
PlayFab.buildIdentifier = "jbuild_javascriptsdk_0";
103+
PlayFab.sdkVersion = "1.5.170508";
104104

105105
PlayFab.ClientApi = {
106106

@@ -436,8 +436,9 @@ PlayFab.ClientApi = {
436436
},
437437

438438
LinkWindowsHello: function (request, callback) {
439+
if (PlayFab._internalSettings.sessionTicket == null) throw "Must be logged in to call this method";
439440

440-
PlayFab._internalSettings.ExecuteRequest(PlayFab._internalSettings.GetServerUrl() + "/Client/LinkWindowsHello", request, null, null, callback);
441+
PlayFab._internalSettings.ExecuteRequest(PlayFab._internalSettings.GetServerUrl() + "/Client/LinkWindowsHello", request, "X-Authorization", PlayFab._internalSettings.sessionTicket, callback);
441442
},
442443

443444
RemoveGenericID: function (request, callback) {
@@ -512,8 +513,9 @@ PlayFab.ClientApi = {
512513
},
513514

514515
UnlinkWindowsHello: function (request, callback) {
516+
if (PlayFab._internalSettings.sessionTicket == null) throw "Must be logged in to call this method";
515517

516-
PlayFab._internalSettings.ExecuteRequest(PlayFab._internalSettings.GetServerUrl() + "/Client/UnlinkWindowsHello", request, null, null, callback);
518+
PlayFab._internalSettings.ExecuteRequest(PlayFab._internalSettings.GetServerUrl() + "/Client/UnlinkWindowsHello", request, "X-Authorization", PlayFab._internalSettings.sessionTicket, callback);
517519
},
518520

519521
UpdateAvatarUrl: function (request, callback) {
@@ -980,8 +982,9 @@ PlayFab.ClientApi = {
980982
},
981983

982984
ValidateWindowsStoreReceipt: function (request, callback) {
985+
if (PlayFab._internalSettings.sessionTicket == null) throw "Must be logged in to call this method";
983986

984-
PlayFab._internalSettings.ExecuteRequest(PlayFab._internalSettings.GetServerUrl() + "/Client/ValidateWindowsStoreReceipt", request, null, null, callback);
987+
PlayFab._internalSettings.ExecuteRequest(PlayFab._internalSettings.GetServerUrl() + "/Client/ValidateWindowsStoreReceipt", request, "X-Authorization", PlayFab._internalSettings.sessionTicket, callback);
985988
},
986989

987990
_MultiStepClientLogin: function (needsAttribution) {

PlayFabSdk/src/PlayFab/PlayFabMatchmakerApi.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,8 @@ if(!PlayFab._internalSettings) {
9999
}
100100
}
101101

102-
PlayFab.buildIdentifier = "jbuild_javascriptsdk_1";
103-
PlayFab.sdkVersion = "1.4.170411";
102+
PlayFab.buildIdentifier = "jbuild_javascriptsdk_0";
103+
PlayFab.sdkVersion = "1.5.170508";
104104

105105
PlayFab.MatchmakerApi = {
106106

PlayFabSdk/src/PlayFab/PlayFabServerApi.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,8 @@ if(!PlayFab._internalSettings) {
9999
}
100100
}
101101

102-
PlayFab.buildIdentifier = "jbuild_javascriptsdk_1";
103-
PlayFab.sdkVersion = "1.4.170411";
102+
PlayFab.buildIdentifier = "jbuild_javascriptsdk_0";
103+
PlayFab.sdkVersion = "1.5.170508";
104104

105105
PlayFab.ServerApi = {
106106

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

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,7 @@ declare module PlayFabAdminModule {
358358
*/
359359
UpdateCloudScript(request: PlayFabAdminModels.UpdateCloudScriptRequest, callback: PlayFabModule.ApiCallback<PlayFabAdminModels.UpdateCloudScriptResult>): void;
360360
/**
361-
/ Delete a content file from the title
361+
/ Delete a content file from the title. When deleting a file that does not exist, it returns success.
362362
/ https://api.playfab.com/Documentation/Admin/method/DeleteContent
363363
*/
364364
DeleteContent(request: PlayFabAdminModels.DeleteContentRequest, callback: PlayFabModule.ApiCallback<PlayFabAdminModels.BlankResult>): void;
@@ -1700,10 +1700,18 @@ declare module PlayFabAdminModels {
17001700
/ The object returned from the CloudScript function, if any
17011701
*/
17021702
FunctionResult?: any;
1703+
/**
1704+
/ Flag indicating if the FunctionResult was too large and was subsequently dropped from this event
1705+
*/
1706+
FunctionResultTooLarge?: boolean;
17031707
/**
17041708
/ Entries logged during the function execution. These include both entries logged in the function code using log.info() and log.error() and error entries for API and HTTP request failures.
17051709
*/
17061710
Logs?: LogStatement[];
1711+
/**
1712+
/ Flag indicating if the logs were too large and were subsequently dropped from this event
1713+
*/
1714+
LogsTooLarge?: boolean;
17071715
ExecutionTimeSeconds: number;
17081716
/**
17091717
/ Processor time consumed while executing the function. This does not include time spent waiting on API calls or HTTP requests.
@@ -1719,7 +1727,7 @@ declare module PlayFabAdminModels {
17191727
*/
17201728
HttpRequestsIssued: number;
17211729
/**
1722-
/ Information about the error, if any, that occured during execution
1730+
/ Information about the error, if any, that occurred during execution
17231731
*/
17241732
Error?: ScriptExecutionError;
17251733

@@ -2759,7 +2767,7 @@ declare module PlayFabAdminModels {
27592767
*/
27602768
CharacterId?: string;
27612769
/**
2762-
/ Key-value pairs to be written to the custom data. Note that keys are trimmed of whitespace, are limited in size, and may not begin with a '!' character.
2770+
/ Key-value pairs to be written to the custom data. Note that keys are trimmed of whitespace, are limited in size, and may not begin with a '!' character or be null.
27632771
*/
27642772
Data?: { [key: string]: string };
27652773
/**
@@ -3315,10 +3323,6 @@ declare module PlayFabAdminModels {
33153323
/ time when the statistic version became inactive due to statistic version incrementing
33163324
*/
33173325
DeactivationTime?: string;
3318-
/**
3319-
/ status of the process of saving player statistic values of the previous version to a downloadable archive
3320-
*/
3321-
ArchivalStatus?: string;
33223326
/**
33233327
/ status of the statistic version
33243328
*/
@@ -4288,7 +4292,7 @@ declare module PlayFabAdminModels {
42884292
*/
42894293
PlayFabId: string;
42904294
/**
4291-
/ Key-value pairs to be written to the custom data. Note that keys are trimmed of whitespace, are limited in size, and may not begin with a '!' character.
4295+
/ Key-value pairs to be written to the custom data. Note that keys are trimmed of whitespace, are limited in size, and may not begin with a '!' character or be null.
42924296
*/
42934297
Data?: { [key: string]: string };
42944298
/**
@@ -4322,7 +4326,7 @@ declare module PlayFabAdminModels {
43224326
*/
43234327
PlayFabId: string;
43244328
/**
4325-
/ Key-value pairs to be written to the custom data. Note that keys are trimmed of whitespace, are limited in size, and may not begin with a '!' character.
4329+
/ Key-value pairs to be written to the custom data. Note that keys are trimmed of whitespace, are limited in size, and may not begin with a '!' character or be null.
43264330
*/
43274331
Data?: { [key: string]: string };
43284332
/**

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

Lines changed: 35 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,7 @@ declare module PlayFabClientModule {
380380
*/
381381
GetCharacterInventory(request: PlayFabClientModels.GetCharacterInventoryRequest, callback: PlayFabModule.ApiCallback<PlayFabClientModels.GetCharacterInventoryResult>): void;
382382
/**
383-
/ Retrieves a purchase along with its current PlayFab status.
383+
/ Retrieves a purchase along with its current PlayFab status. Returns inventory items from the purchase that are still active.
384384
/ https://api.playfab.com/Documentation/Client/method/GetPurchase
385385
*/
386386
GetPurchase(request: PlayFabClientModels.GetPurchaseRequest, callback: PlayFabModule.ApiCallback<PlayFabClientModels.GetPurchaseResult>): void;
@@ -1763,10 +1763,18 @@ declare module PlayFabClientModels {
17631763
/ The object returned from the CloudScript function, if any
17641764
*/
17651765
FunctionResult?: any;
1766+
/**
1767+
/ Flag indicating if the FunctionResult was too large and was subsequently dropped from this event
1768+
*/
1769+
FunctionResultTooLarge?: boolean;
17661770
/**
17671771
/ Entries logged during the function execution. These include both entries logged in the function code using log.info() and log.error() and error entries for API and HTTP request failures.
17681772
*/
17691773
Logs?: LogStatement[];
1774+
/**
1775+
/ Flag indicating if the logs were too large and were subsequently dropped from this event
1776+
*/
1777+
LogsTooLarge?: boolean;
17701778
ExecutionTimeSeconds: number;
17711779
/**
17721780
/ Processor time consumed while executing the function. This does not include time spent waiting on API calls or HTTP requests.
@@ -1782,7 +1790,7 @@ declare module PlayFabClientModels {
17821790
*/
17831791
HttpRequestsIssued: number;
17841792
/**
1785-
/ Information about the error, if any, that occured during execution
1793+
/ Information about the error, if any, that occurred during execution
17861794
*/
17871795
Error?: ScriptExecutionError;
17881796

@@ -3808,11 +3816,11 @@ declare module PlayFabClientModels {
38083816
*/
38093817
TitleId?: string;
38103818
/**
3811-
/ Base64 encoded body that is encrypted with the Title's public RSA key
3819+
/ Base64 encoded body that is encrypted with the Title's public RSA key (Enterprise Only).
38123820
*/
38133821
EncryptedRequest?: string;
38143822
/**
3815-
/ Player secret that is used to verify API request signatures
3823+
/ Player secret that is used to verify API request signatures (Enterprise Only).
38163824
*/
38173825
PlayerSecret?: string;
38183826
/**
@@ -3839,11 +3847,11 @@ declare module PlayFabClientModels {
38393847
*/
38403848
TitleId?: string;
38413849
/**
3842-
/ Base64 encoded body that is encrypted with the Title's public RSA key
3850+
/ Base64 encoded body that is encrypted with the Title's public RSA key (Enterprise Only).
38433851
*/
38443852
EncryptedRequest?: string;
38453853
/**
3846-
/ Player secret that is used to verify API request signatures
3854+
/ Player secret that is used to verify API request signatures (Enterprise Only).
38473855
*/
38483856
PlayerSecret?: string;
38493857
/**
@@ -3893,11 +3901,11 @@ declare module PlayFabClientModels {
38933901
*/
38943902
TitleId?: string;
38953903
/**
3896-
/ Base64 encoded body that is encrypted with the Title's public RSA key
3904+
/ Base64 encoded body that is encrypted with the Title's public RSA key (Enterprise Only).
38973905
*/
38983906
EncryptedRequest?: string;
38993907
/**
3900-
/ Player secret that is used to verify API request signatures
3908+
/ Player secret that is used to verify API request signatures (Enterprise Only).
39013909
*/
39023910
PlayerSecret?: string;
39033911
/**
@@ -3924,11 +3932,11 @@ declare module PlayFabClientModels {
39243932
*/
39253933
TitleId?: string;
39263934
/**
3927-
/ Base64 encoded body that is encrypted with the Title's public RSA key
3935+
/ Base64 encoded body that is encrypted with the Title's public RSA key (Enterprise Only).
39283936
*/
39293937
EncryptedRequest?: string;
39303938
/**
3931-
/ Player secret that is used to verify API request signatures
3939+
/ Player secret that is used to verify API request signatures (Enterprise Only).
39323940
*/
39333941
PlayerSecret?: string;
39343942
/**
@@ -3955,11 +3963,11 @@ declare module PlayFabClientModels {
39553963
*/
39563964
TitleId?: string;
39573965
/**
3958-
/ Base64 encoded body that is encrypted with the Title's public RSA key
3966+
/ Base64 encoded body that is encrypted with the Title's public RSA key (Enterprise Only).
39593967
*/
39603968
EncryptedRequest?: string;
39613969
/**
3962-
/ Player secret that is used to verify API request signatures
3970+
/ Player secret that is used to verify API request signatures (Enterprise Only).
39633971
*/
39643972
PlayerSecret?: string;
39653973
/**
@@ -3994,11 +4002,11 @@ declare module PlayFabClientModels {
39944002
*/
39954003
TitleId?: string;
39964004
/**
3997-
/ Base64 encoded body that is encrypted with the Title's public RSA key
4005+
/ Base64 encoded body that is encrypted with the Title's public RSA key (Enterprise Only).
39984006
*/
39994007
EncryptedRequest?: string;
40004008
/**
4001-
/ Player secret that is used to verify API request signatures
4009+
/ Player secret that is used to verify API request signatures (Enterprise Only).
40024010
*/
40034011
PlayerSecret?: string;
40044012
/**
@@ -4033,11 +4041,11 @@ declare module PlayFabClientModels {
40334041
*/
40344042
TitleId?: string;
40354043
/**
4036-
/ Base64 encoded body that is encrypted with the Title's public RSA key
4044+
/ Base64 encoded body that is encrypted with the Title's public RSA key (Enterprise Only).
40374045
*/
40384046
EncryptedRequest?: string;
40394047
/**
4040-
/ Player secret that is used to verify API request signatures
4048+
/ Player secret that is used to verify API request signatures (Enterprise Only).
40414049
*/
40424050
PlayerSecret?: string;
40434051

@@ -4083,11 +4091,11 @@ declare module PlayFabClientModels {
40834091
*/
40844092
TitleId?: string;
40854093
/**
4086-
/ Base64 encoded body that is encrypted with the Title's public RSA key
4094+
/ Base64 encoded body that is encrypted with the Title's public RSA key (Enterprise Only).
40874095
*/
40884096
EncryptedRequest?: string;
40894097
/**
4090-
/ Player secret that is used to verify API request signatures
4098+
/ Player secret that is used to verify API request signatures (Enterprise Only).
40914099
*/
40924100
PlayerSecret?: string;
40934101
/**
@@ -4114,11 +4122,11 @@ declare module PlayFabClientModels {
41144122
*/
41154123
TitleId?: string;
41164124
/**
4117-
/ Base64 encoded body that is encrypted with the Title's public RSA key
4125+
/ Base64 encoded body that is encrypted with the Title's public RSA key (Enterprise Only).
41184126
*/
41194127
EncryptedRequest?: string;
41204128
/**
4121-
/ Player secret that is used to verify API request signatures
4129+
/ Player secret that is used to verify API request signatures (Enterprise Only).
41224130
*/
41234131
PlayerSecret?: string;
41244132
/**
@@ -4778,11 +4786,11 @@ declare module PlayFabClientModels {
47784786
*/
47794787
TitleId?: string;
47804788
/**
4781-
/ Base64 encoded body that is encrypted with the Title's public RSA key
4789+
/ Base64 encoded body that is encrypted with the Title's public RSA key (Enterprise Only).
47824790
*/
47834791
EncryptedRequest?: string;
47844792
/**
4785-
/ Player secret that is used to verify API request signatures
4793+
/ Player secret that is used to verify API request signatures (Enterprise Only).
47864794
*/
47874795
PlayerSecret?: string;
47884796
/**
@@ -4836,11 +4844,11 @@ declare module PlayFabClientModels {
48364844
*/
48374845
TitleId: string;
48384846
/**
4839-
/ Base64 encoded body that is encrypted with the Title's public RSA key
4847+
/ Base64 encoded body that is encrypted with the Title's public RSA key (Enterprise Only).
48404848
*/
48414849
EncryptedRequest?: string;
48424850
/**
4843-
/ Player secret that is used to verify API request signatures
4851+
/ Player secret that is used to verify API request signatures (Enterprise Only).
48444852
*/
48454853
PlayerSecret?: string;
48464854
/**
@@ -5684,7 +5692,7 @@ declare module PlayFabClientModels {
56845692
*/
56855693
CharacterId: string;
56865694
/**
5687-
/ Key-value pairs to be written to the custom data. Note that keys are trimmed of whitespace, are limited in size, and may not begin with a '!' character.
5695+
/ Key-value pairs to be written to the custom data. Note that keys are trimmed of whitespace, are limited in size, and may not begin with a '!' character or be null.
56885696
*/
56895697
Data?: { [key: string]: string };
56905698
/**
@@ -5758,7 +5766,7 @@ declare module PlayFabClientModels {
57585766
*/
57595767
SharedGroupId: string;
57605768
/**
5761-
/ Key-value pairs to be written to the custom data. Note that keys are trimmed of whitespace, are limited in size, and may not begin with a '!' character.
5769+
/ Key-value pairs to be written to the custom data. Note that keys are trimmed of whitespace, are limited in size, and may not begin with a '!' character or be null.
57625770
*/
57635771
Data?: { [key: string]: string };
57645772
/**
@@ -5784,7 +5792,7 @@ declare module PlayFabClientModels {
57845792
*/
57855793
export interface UpdateUserDataRequest extends PlayFabModule.IPlayFabRequestCommon {
57865794
/**
5787-
/ Key-value pairs to be written to the custom data. Note that keys are trimmed of whitespace, are limited in size, and may not begin with a '!' character.
5795+
/ Key-value pairs to be written to the custom data. Note that keys are trimmed of whitespace, are limited in size, and may not begin with a '!' character or be null.
57885796
*/
57895797
Data?: { [key: string]: string };
57905798
/**

0 commit comments

Comments
 (0)