Skip to content

Commit eb1bb70

Browse files
https://api.playfab.com/releaseNotes/#171016
1 parent fa31962 commit eb1bb70

File tree

14 files changed

+70
-220
lines changed

14 files changed

+70
-220
lines changed

PlayFabSdk/src/PlayFab/PlayFabAdminApi.js

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ if(!PlayFab._internalSettings) {
123123
}
124124

125125
PlayFab.buildIdentifier = "jbuild_javascriptsdk_0";
126-
PlayFab.sdkVersion = "1.12.170925";
126+
PlayFab.sdkVersion = "1.13.171016";
127127
PlayFab.GenerateErrorReport = function (error) {
128128
if (error == null)
129129
return "";
@@ -247,15 +247,6 @@ PlayFab.AdminApi = {
247247
PlayFab._internalSettings.ExecuteRequest(PlayFab._internalSettings.GetServerUrl() + "/Admin/GetActionsOnPlayersInSegmentTaskInstance", request, "X-SecretKey", PlayFab.settings.developerSecretKey, callback, customData, extraHeaders);
248248
},
249249

250-
/**
251-
* @deprecated Please use GetTasks instead.
252-
*/
253-
GetAllActionGroups: function (request, callback, customData, extraHeaders) {
254-
if (!PlayFab.settings.developerSecretKey) throw PlayFab._internalSettings.errorSecretKey;
255-
256-
PlayFab._internalSettings.ExecuteRequest(PlayFab._internalSettings.GetServerUrl() + "/Admin/GetAllActionGroups", request, "X-SecretKey", PlayFab.settings.developerSecretKey, callback, customData, extraHeaders);
257-
},
258-
259250
GetAllSegments: function (request, callback, customData, extraHeaders) {
260251
if (!PlayFab.settings.developerSecretKey) throw PlayFab._internalSettings.errorSecretKey;
261252

@@ -735,3 +726,4 @@ PlayFab.AdminApi = {
735726
};
736727

737728
var PlayFabAdminSDK = PlayFab.AdminApi;
729+

PlayFabSdk/src/PlayFab/PlayFabClientApi.js

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ if(!PlayFab._internalSettings) {
123123
}
124124

125125
PlayFab.buildIdentifier = "jbuild_javascriptsdk_0";
126-
PlayFab.sdkVersion = "1.12.170925";
126+
PlayFab.sdkVersion = "1.13.171016";
127127
PlayFab.GenerateErrorReport = function (error) {
128128
if (error == null)
129129
return "";
@@ -1054,3 +1054,19 @@ PlayFab.ClientApi = {
10541054
};
10551055

10561056
var PlayFabClientSDK = PlayFab.ClientApi;
1057+
1058+
PlayFab.RegisterWithPhaser = function() {
1059+
if ( typeof Phaser === 'undefined')
1060+
return;
1061+
1062+
Phaser.Plugin.PlayFab = function (game, parent) {
1063+
Phaser.Plugin.call(this, game, parent);
1064+
};
1065+
Phaser.Plugin.PlayFab.prototype = Object.create(Phaser.Plugin.prototype);
1066+
Phaser.Plugin.PlayFab.prototype.constructor = Phaser.Plugin.PlayFab;
1067+
Phaser.Plugin.PlayFab.prototype.PlayFab = PlayFab;
1068+
Phaser.Plugin.PlayFab.prototype.settings = PlayFab.settings;
1069+
Phaser.Plugin.PlayFab.prototype.ClientApi = PlayFab.ClientApi;
1070+
};
1071+
PlayFab.RegisterWithPhaser();
1072+

PlayFabSdk/src/PlayFab/PlayFabMatchmakerApi.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ if(!PlayFab._internalSettings) {
123123
}
124124

125125
PlayFab.buildIdentifier = "jbuild_javascriptsdk_0";
126-
PlayFab.sdkVersion = "1.12.170925";
126+
PlayFab.sdkVersion = "1.13.171016";
127127
PlayFab.GenerateErrorReport = function (error) {
128128
if (error == null)
129129
return "";
@@ -168,3 +168,4 @@ PlayFab.MatchmakerApi = {
168168
};
169169

170170
var PlayFabMatchmakerSDK = PlayFab.MatchmakerApi;
171+

PlayFabSdk/src/PlayFab/PlayFabServerApi.js

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ if(!PlayFab._internalSettings) {
123123
}
124124

125125
PlayFab.buildIdentifier = "jbuild_javascriptsdk_0";
126-
PlayFab.sdkVersion = "1.12.170925";
126+
PlayFab.sdkVersion = "1.13.171016";
127127
PlayFab.GenerateErrorReport = function (error) {
128128
if (error == null)
129129
return "";
@@ -232,15 +232,6 @@ PlayFab.ServerApi = {
232232
PlayFab._internalSettings.ExecuteRequest(PlayFab._internalSettings.GetServerUrl() + "/Server/ExecuteCloudScript", request, "X-SecretKey", PlayFab.settings.developerSecretKey, callback, customData, extraHeaders);
233233
},
234234

235-
/**
236-
* @deprecated Please use GetAllSegments instead.
237-
*/
238-
GetAllActionGroups: function (request, callback, customData, extraHeaders) {
239-
if (!PlayFab.settings.developerSecretKey) throw PlayFab._internalSettings.errorSecretKey;
240-
241-
PlayFab._internalSettings.ExecuteRequest(PlayFab._internalSettings.GetServerUrl() + "/Server/GetAllActionGroups", request, "X-SecretKey", PlayFab.settings.developerSecretKey, callback, customData, extraHeaders);
242-
},
243-
244235
GetAllSegments: function (request, callback, customData, extraHeaders) {
245236
if (!PlayFab.settings.developerSecretKey) throw PlayFab._internalSettings.errorSecretKey;
246237

@@ -795,3 +786,4 @@ PlayFab.ServerApi = {
795786
};
796787

797788
var PlayFabServerSDK = PlayFab.ServerApi;
789+

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

Lines changed: 0 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -92,11 +92,6 @@ declare module PlayFabAdminModule {
9292
/ https://api.playfab.com/Documentation/Admin/method/GetActionsOnPlayersInSegmentTaskInstance
9393
*/
9494
GetActionsOnPlayersInSegmentTaskInstance(request: PlayFabAdminModels.GetTaskInstanceRequest, callback: PlayFabModule.ApiCallback<PlayFabAdminModels.GetActionsOnPlayersInSegmentTaskInstanceResult>, customData?: any, extraHeaders?: { [key: string]: string }): void;
95-
/**
96-
/ Retrieve a list of all PlayStream actions groups.
97-
/ https://api.playfab.com/Documentation/Admin/method/GetAllActionGroups
98-
*/
99-
GetAllActionGroups(request: PlayFabAdminModels.GetAllActionGroupsRequest, callback: PlayFabModule.ApiCallback<PlayFabAdminModels.GetAllActionGroupsResult>, customData?: any, extraHeaders?: { [key: string]: string }): void;
10095
/**
10196
/ Retrieves an array of player segment definitions. Results from this can be used in subsequent API calls such as GetPlayersInSegment which requires a Segment ID. While segment names can change the ID for that segment will not change.
10297
/ https://api.playfab.com/Documentation/Admin/method/GetAllSegments
@@ -1907,21 +1902,6 @@ declare module PlayFabAdminModels {
19071902

19081903
}
19091904

1910-
/**
1911-
/ https://api.playfab.com/Documentation/Client/datatype/PlayFab.Admin.Models/PlayFab.Admin.Models.GetActionGroupResult
1912-
*/
1913-
export interface GetActionGroupResult extends PlayFabModule.IPlayFabResultCommon {
1914-
/**
1915-
/ Action Group ID
1916-
*/
1917-
Id?: string;
1918-
/**
1919-
/ Action Group name
1920-
*/
1921-
Name: string;
1922-
1923-
}
1924-
19251905
/**
19261906
/ https://api.playfab.com/Documentation/Client/datatype/PlayFab.Admin.Models/PlayFab.Admin.Models.GetActionsOnPlayersInSegmentTaskInstanceResult
19271907
*/
@@ -1937,24 +1917,6 @@ declare module PlayFabAdminModels {
19371917

19381918
}
19391919

1940-
/**
1941-
/ https://api.playfab.com/Documentation/Client/datatype/PlayFab.Admin.Models/PlayFab.Admin.Models.GetAllActionGroupsRequest
1942-
*/
1943-
export interface GetAllActionGroupsRequest extends PlayFabModule.IPlayFabRequestCommon {
1944-
1945-
}
1946-
1947-
/**
1948-
/ https://api.playfab.com/Documentation/Client/datatype/PlayFab.Admin.Models/PlayFab.Admin.Models.GetAllActionGroupsResult
1949-
*/
1950-
export interface GetAllActionGroupsResult extends PlayFabModule.IPlayFabResultCommon {
1951-
/**
1952-
/ List of Action Groups.
1953-
*/
1954-
ActionGroups: GetActionGroupResult[];
1955-
1956-
}
1957-
19581920
/**
19591921
/ https://api.playfab.com/Documentation/Client/datatype/PlayFab.Admin.Models/PlayFab.Admin.Models.GetAllSegmentsRequest
19601922
*/

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

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1916,10 +1916,6 @@ declare module PlayFabClientModels {
19161916
/ game session custom data
19171917
*/
19181918
GameServerData?: string;
1919-
/**
1920-
/ game specific string denoting server configuration
1921-
*/
1922-
GameServerState?: number;
19231919
/**
19241920
/ game specific string denoting server configuration
19251921
*/

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

Lines changed: 12 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -82,11 +82,6 @@ declare module PlayFabServerModule {
8282
/ https://api.playfab.com/Documentation/Server/method/ExecuteCloudScript
8383
*/
8484
ExecuteCloudScript(request: PlayFabServerModels.ExecuteCloudScriptServerRequest, callback: PlayFabModule.ApiCallback<PlayFabServerModels.ExecuteCloudScriptResult>, customData?: any, extraHeaders?: { [key: string]: string }): void;
85-
/**
86-
/ Retrieve a list of all PlayStream actions groups.
87-
/ https://api.playfab.com/Documentation/Server/method/GetAllActionGroups
88-
*/
89-
GetAllActionGroups(request: PlayFabServerModels.GetAllActionGroupsRequest, callback: PlayFabModule.ApiCallback<PlayFabServerModels.GetAllActionGroupsResult>, customData?: any, extraHeaders?: { [key: string]: string }): void;
9085
/**
9186
/ Retrieves an array of player segment definitions. Results from this can be used in subsequent API calls such as GetPlayersInSegment which requires a Segment ID. While segment names can change the ID for that segment will not change.
9287
/ https://api.playfab.com/Documentation/Server/method/GetAllSegments
@@ -1852,39 +1847,6 @@ declare module PlayFabServerModels {
18521847
type GameInstanceState = "Open"
18531848
| "Closed";
18541849

1855-
/**
1856-
/ https://api.playfab.com/Documentation/Client/datatype/PlayFab.Server.Models/PlayFab.Server.Models.GetActionGroupResult
1857-
*/
1858-
export interface GetActionGroupResult extends PlayFabModule.IPlayFabResultCommon {
1859-
/**
1860-
/ Action Group ID
1861-
*/
1862-
Id?: string;
1863-
/**
1864-
/ Action Group name
1865-
*/
1866-
Name: string;
1867-
1868-
}
1869-
1870-
/**
1871-
/ https://api.playfab.com/Documentation/Client/datatype/PlayFab.Server.Models/PlayFab.Server.Models.GetAllActionGroupsRequest
1872-
*/
1873-
export interface GetAllActionGroupsRequest extends PlayFabModule.IPlayFabRequestCommon {
1874-
1875-
}
1876-
1877-
/**
1878-
/ https://api.playfab.com/Documentation/Client/datatype/PlayFab.Server.Models/PlayFab.Server.Models.GetAllActionGroupsResult
1879-
*/
1880-
export interface GetAllActionGroupsResult extends PlayFabModule.IPlayFabResultCommon {
1881-
/**
1882-
/ List of Action Groups.
1883-
*/
1884-
ActionGroups: GetActionGroupResult[];
1885-
1886-
}
1887-
18881850
/**
18891851
/ https://api.playfab.com/Documentation/Client/datatype/PlayFab.Server.Models/PlayFab.Server.Models.GetAllSegmentsRequest
18901852
*/
@@ -4008,27 +3970,31 @@ declare module PlayFabServerModels {
40083970
*/
40093971
export interface PushNotificationPackage {
40103972
/**
4011-
/ Arbitrary string that will be delivered with the message. Suggested use: JSON formatted object
3973+
/ Numerical badge to display on App icon (iOS only)
3974+
*/
3975+
Badge: number;
3976+
/**
3977+
/ This must be a JSON formatted object. For use with developer-created custom Push Notification plugins
40123978
*/
40133979
CustomData?: string;
40143980
/**
4015-
/ Icon file to display with the message
3981+
/ Icon file to display with the message (Not supported for iOS)
40163982
*/
40173983
Icon?: string;
40183984
/**
4019-
/ Content of the message
3985+
/ Content of the message (all platforms)
40203986
*/
40213987
Message: string;
40223988
/**
4023-
/ If set, represents a timestamp for when the device should display the message. Local format should be formatted as: yyyy-MM-dd HH:mm:ss or UTC timestamp formatted as yyyy-MM-ddTHH:mm:ssZ. Delivery is not delayed, scheduling is expected to be handled by the device.
3989+
/ This field was solely for use with the PlayFab custom Push Plugin, which has been deprecated in favor of the supported platform-specific fields
40243990
*/
40253991
ScheduleDate?: string;
40263992
/**
4027-
/ Sound file to play with the message
3993+
/ Sound file to play with the message (all platforms)
40283994
*/
40293995
Sound?: string;
40303996
/**
4031-
/ Title/Subject of the message
3997+
/ Title/Subject of the message. Not supported for iOS
40323998
*/
40333999
Title: string;
40344000

@@ -4439,15 +4405,15 @@ declare module PlayFabServerModels {
44394405
*/
44404406
Message?: string;
44414407
/**
4442-
/ Defines all possible push attributes like message, title, icon, etc. Not fully supported for iOS devices.
4408+
/ Defines all possible push attributes like message, title, icon, etc. Some parameters are device specific - please see the PushNotificationPackage documentation for details.
44434409
*/
44444410
Package?: PushNotificationPackage;
44454411
/**
44464412
/ PlayFabId of the recipient of the push notification.
44474413
*/
44484414
Recipient: string;
44494415
/**
4450-
/ Subject of message to send (may not be displayed in all platforms.
4416+
/ Subject of message to send (may not be displayed in all platforms)
44514417
*/
44524418
Subject?: string;
44534419
/**

PlayFabTestingExample/src/PlayFab/PlayFabAdminApi.js

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ if(!PlayFab._internalSettings) {
123123
}
124124

125125
PlayFab.buildIdentifier = "jbuild_javascriptsdk_0";
126-
PlayFab.sdkVersion = "1.12.170925";
126+
PlayFab.sdkVersion = "1.13.171016";
127127
PlayFab.GenerateErrorReport = function (error) {
128128
if (error == null)
129129
return "";
@@ -247,15 +247,6 @@ PlayFab.AdminApi = {
247247
PlayFab._internalSettings.ExecuteRequest(PlayFab._internalSettings.GetServerUrl() + "/Admin/GetActionsOnPlayersInSegmentTaskInstance", request, "X-SecretKey", PlayFab.settings.developerSecretKey, callback, customData, extraHeaders);
248248
},
249249

250-
/**
251-
* @deprecated Please use GetTasks instead.
252-
*/
253-
GetAllActionGroups: function (request, callback, customData, extraHeaders) {
254-
if (!PlayFab.settings.developerSecretKey) throw PlayFab._internalSettings.errorSecretKey;
255-
256-
PlayFab._internalSettings.ExecuteRequest(PlayFab._internalSettings.GetServerUrl() + "/Admin/GetAllActionGroups", request, "X-SecretKey", PlayFab.settings.developerSecretKey, callback, customData, extraHeaders);
257-
},
258-
259250
GetAllSegments: function (request, callback, customData, extraHeaders) {
260251
if (!PlayFab.settings.developerSecretKey) throw PlayFab._internalSettings.errorSecretKey;
261252

@@ -735,3 +726,4 @@ PlayFab.AdminApi = {
735726
};
736727

737728
var PlayFabAdminSDK = PlayFab.AdminApi;
729+

PlayFabTestingExample/src/PlayFab/PlayFabClientApi.js

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ if(!PlayFab._internalSettings) {
123123
}
124124

125125
PlayFab.buildIdentifier = "jbuild_javascriptsdk_0";
126-
PlayFab.sdkVersion = "1.12.170925";
126+
PlayFab.sdkVersion = "1.13.171016";
127127
PlayFab.GenerateErrorReport = function (error) {
128128
if (error == null)
129129
return "";
@@ -1054,3 +1054,19 @@ PlayFab.ClientApi = {
10541054
};
10551055

10561056
var PlayFabClientSDK = PlayFab.ClientApi;
1057+
1058+
PlayFab.RegisterWithPhaser = function() {
1059+
if ( typeof Phaser === 'undefined')
1060+
return;
1061+
1062+
Phaser.Plugin.PlayFab = function (game, parent) {
1063+
Phaser.Plugin.call(this, game, parent);
1064+
};
1065+
Phaser.Plugin.PlayFab.prototype = Object.create(Phaser.Plugin.prototype);
1066+
Phaser.Plugin.PlayFab.prototype.constructor = Phaser.Plugin.PlayFab;
1067+
Phaser.Plugin.PlayFab.prototype.PlayFab = PlayFab;
1068+
Phaser.Plugin.PlayFab.prototype.settings = PlayFab.settings;
1069+
Phaser.Plugin.PlayFab.prototype.ClientApi = PlayFab.ClientApi;
1070+
};
1071+
PlayFab.RegisterWithPhaser();
1072+

PlayFabTestingExample/src/PlayFab/PlayFabMatchmakerApi.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ if(!PlayFab._internalSettings) {
123123
}
124124

125125
PlayFab.buildIdentifier = "jbuild_javascriptsdk_0";
126-
PlayFab.sdkVersion = "1.12.170925";
126+
PlayFab.sdkVersion = "1.13.171016";
127127
PlayFab.GenerateErrorReport = function (error) {
128128
if (error == null)
129129
return "";
@@ -168,3 +168,4 @@ PlayFab.MatchmakerApi = {
168168
};
169169

170170
var PlayFabMatchmakerSDK = PlayFab.MatchmakerApi;
171+

0 commit comments

Comments
 (0)