GeezerVison is showing github.com — https://api.playfab.com/releaseNotes/#180507 · rmoorman/JavaScriptSDK@0f1cf6c
File treeExpand file treeCollapse file tree Open diff view settings PlayFabTestingExample/src
Expand file treeCollapse file tree Open diff view settings Collapse file Copy file name to clipboardExpand all lines: PlayFabSdk/package.json +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
| 1 | 1 | { | 2 | 2 | "name": "playfab-web-sdk", | 3 | | - "version": "1.20.180409", | | 3 | + "version": "1.21.180507", | 4 | 4 | "description": "Playfab SDK for JS client applications", | 5 | 5 | "license": "Apache-2.0", | 6 | 6 | "repository": { | |
Collapse file Copy file name to clipboardExpand all lines: PlayFabSdk/src/PlayFab/PlayFabAdminApi.js +3-3Lines changed: 3 additions & 3 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -21,7 +21,7 @@ if(!PlayFab.settings) { | 21 | 21 | if(!PlayFab._internalSettings) { | 22 | 22 | PlayFab._internalSettings = { | 23 | 23 | entityToken: null, | 24 | | - sdkVersion: "1.20.180409", | | 24 | + sdkVersion: "1.21.180507", | 25 | 25 | sessionTicket: null, | 26 | 26 | productionServerUrl: ".playfabapi.com", | 27 | 27 | errorTitleId: "Must be have PlayFab.settings.titleId set to call this method", | @@ -125,8 +125,8 @@ if(!PlayFab._internalSettings) { | 125 | 125 | } | 126 | 126 | } | 127 | 127 |
| 128 | | -PlayFab.buildIdentifier = "jbuild_javascriptsdk_0"; | 129 | | -PlayFab.sdkVersion = "1.20.180409"; | | 128 | +PlayFab.buildIdentifier = "jbuild_javascriptsdk_1"; | | 129 | +PlayFab.sdkVersion = "1.21.180507"; | 130 | 130 | PlayFab.GenerateErrorReport = function (error) { | 131 | 131 | if (error == null) | 132 | 132 | return ""; | |
Collapse file Copy file name to clipboardExpand all lines: PlayFabSdk/src/PlayFab/PlayFabClientApi.js +3-3Lines changed: 3 additions & 3 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -21,7 +21,7 @@ if(!PlayFab.settings) { | 21 | 21 | if(!PlayFab._internalSettings) { | 22 | 22 | PlayFab._internalSettings = { | 23 | 23 | entityToken: null, | 24 | | - sdkVersion: "1.20.180409", | | 24 | + sdkVersion: "1.21.180507", | 25 | 25 | sessionTicket: null, | 26 | 26 | productionServerUrl: ".playfabapi.com", | 27 | 27 | errorTitleId: "Must be have PlayFab.settings.titleId set to call this method", | @@ -125,8 +125,8 @@ if(!PlayFab._internalSettings) { | 125 | 125 | } | 126 | 126 | } | 127 | 127 |
| 128 | | -PlayFab.buildIdentifier = "jbuild_javascriptsdk_0"; | 129 | | -PlayFab.sdkVersion = "1.20.180409"; | | 128 | +PlayFab.buildIdentifier = "jbuild_javascriptsdk_1"; | | 129 | +PlayFab.sdkVersion = "1.21.180507"; | 130 | 130 | PlayFab.GenerateErrorReport = function (error) { | 131 | 131 | if (error == null) | 132 | 132 | return ""; | |
Collapse file Copy file name to clipboardExpand all lines: PlayFabSdk/src/PlayFab/PlayFabEntityApi.js +8-3Lines changed: 8 additions & 3 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -21,7 +21,7 @@ if(!PlayFab.settings) { | 21 | 21 | if(!PlayFab._internalSettings) { | 22 | 22 | PlayFab._internalSettings = { | 23 | 23 | entityToken: null, | 24 | | - sdkVersion: "1.20.180409", | | 24 | + sdkVersion: "1.21.180507", | 25 | 25 | sessionTicket: null, | 26 | 26 | productionServerUrl: ".playfabapi.com", | 27 | 27 | errorTitleId: "Must be have PlayFab.settings.titleId set to call this method", | @@ -125,8 +125,8 @@ if(!PlayFab._internalSettings) { | 125 | 125 | } | 126 | 126 | } | 127 | 127 |
| 128 | | -PlayFab.buildIdentifier = "jbuild_javascriptsdk_0"; | 129 | | -PlayFab.sdkVersion = "1.20.180409"; | | 128 | +PlayFab.buildIdentifier = "jbuild_javascriptsdk_1"; | | 129 | +PlayFab.sdkVersion = "1.21.180507"; | 130 | 130 | PlayFab.GenerateErrorReport = function (error) { | 131 | 131 | if (error == null) | 132 | 132 | return ""; | @@ -246,6 +246,11 @@ PlayFab.EntityApi = { | 246 | 246 | PlayFab._internalSettings.ExecuteRequest(PlayFab._internalSettings.GetServerUrl() + "/Profile/GetProfile", request, "X-EntityToken", PlayFab._internalSettings.entityToken, callback, customData, extraHeaders); | 247 | 247 | }, | 248 | 248 |
| | 249 | + GetProfiles: function (request, callback, customData, extraHeaders) { | | 250 | + if (!PlayFab._internalSettings.entityToken) throw PlayFab._internalSettings.errorEntityToken; | | 251 | + PlayFab._internalSettings.ExecuteRequest(PlayFab._internalSettings.GetServerUrl() + "/Profile/GetProfiles", request, "X-EntityToken", PlayFab._internalSettings.entityToken, callback, customData, extraHeaders); | | 252 | + }, | | 253 | + | 249 | 254 | InitiateFileUploads: function (request, callback, customData, extraHeaders) { | 250 | 255 | if (!PlayFab._internalSettings.entityToken) throw PlayFab._internalSettings.errorEntityToken; | 251 | 256 | PlayFab._internalSettings.ExecuteRequest(PlayFab._internalSettings.GetServerUrl() + "/File/InitiateFileUploads", request, "X-EntityToken", PlayFab._internalSettings.entityToken, callback, customData, extraHeaders); | |
Collapse file Copy file name to clipboardExpand all lines: PlayFabSdk/src/PlayFab/PlayFabMatchmakerApi.js +3-3Lines changed: 3 additions & 3 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -21,7 +21,7 @@ if(!PlayFab.settings) { | 21 | 21 | if(!PlayFab._internalSettings) { | 22 | 22 | PlayFab._internalSettings = { | 23 | 23 | entityToken: null, | 24 | | - sdkVersion: "1.20.180409", | | 24 | + sdkVersion: "1.21.180507", | 25 | 25 | sessionTicket: null, | 26 | 26 | productionServerUrl: ".playfabapi.com", | 27 | 27 | errorTitleId: "Must be have PlayFab.settings.titleId set to call this method", | @@ -125,8 +125,8 @@ if(!PlayFab._internalSettings) { | 125 | 125 | } | 126 | 126 | } | 127 | 127 |
| 128 | | -PlayFab.buildIdentifier = "jbuild_javascriptsdk_0"; | 129 | | -PlayFab.sdkVersion = "1.20.180409"; | | 128 | +PlayFab.buildIdentifier = "jbuild_javascriptsdk_1"; | | 129 | +PlayFab.sdkVersion = "1.21.180507"; | 130 | 130 | PlayFab.GenerateErrorReport = function (error) { | 131 | 131 | if (error == null) | 132 | 132 | return ""; | |
Collapse file Copy file name to clipboardExpand all lines: PlayFabSdk/src/PlayFab/PlayFabServerApi.js +3-3Lines changed: 3 additions & 3 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -21,7 +21,7 @@ if(!PlayFab.settings) { | 21 | 21 | if(!PlayFab._internalSettings) { | 22 | 22 | PlayFab._internalSettings = { | 23 | 23 | entityToken: null, | 24 | | - sdkVersion: "1.20.180409", | | 24 | + sdkVersion: "1.21.180507", | 25 | 25 | sessionTicket: null, | 26 | 26 | productionServerUrl: ".playfabapi.com", | 27 | 27 | errorTitleId: "Must be have PlayFab.settings.titleId set to call this method", | @@ -125,8 +125,8 @@ if(!PlayFab._internalSettings) { | 125 | 125 | } | 126 | 126 | } | 127 | 127 |
| 128 | | -PlayFab.buildIdentifier = "jbuild_javascriptsdk_0"; | 129 | | -PlayFab.sdkVersion = "1.20.180409"; | | 128 | +PlayFab.buildIdentifier = "jbuild_javascriptsdk_1"; | | 129 | +PlayFab.sdkVersion = "1.21.180507"; | 130 | 130 | PlayFab.GenerateErrorReport = function (error) { | 131 | 131 | if (error == null) | 132 | 132 | return ""; | |
Collapse file Copy file name to clipboardExpand all lines: PlayFabSdk/src/Typings/PlayFab/PlayFabAdminApi.d.ts +8-1Lines changed: 8 additions & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -1655,6 +1655,7 @@ declare module PlayFabAdminModels { | 1655 | 1655 | } | 1656 | 1656 |
| 1657 | 1657 | type GenericErrorCodes = "Success" | | 1658 | + | "UnkownError" | 1658 | 1659 | | "InvalidParams" | 1659 | 1660 | | "AccountNotFound" | 1660 | 1661 | | "AccountBanned" | @@ -2015,7 +2016,13 @@ declare module PlayFabAdminModels { | 2015 | 2016 | | "EmailReportAlreadySent" | 2016 | 2017 | | "EmailReportRecipientBlacklisted" | 2017 | 2018 | | "EventNamespaceNotAllowed" | 2018 | | - | "EventEntityNotAllowed"; | | 2019 | + | "EventEntityNotAllowed" | | 2020 | + | "InvalidEntityType" | | 2021 | + | "NullTokenResultFromAad" | | 2022 | + | "InvalidTokenResultFromAad" | | 2023 | + | "NoValidCertificateForAad" | | 2024 | + | "InvalidCertificateForAad" | | 2025 | + | "DuplicateDropTableId"; | 2019 | 2026 |
| 2020 | 2027 | /** https://api.playfab.com/Documentation/Entity/datatype/PlayFab.Admin.Models/PlayFab.Admin.Models.GetActionsOnPlayersInSegmentTaskInstanceResult */ | 2021 | 2028 | export interface GetActionsOnPlayersInSegmentTaskInstanceResult extends PlayFabModule.IPlayFabResultCommon { | |
Collapse file Copy file name to clipboardExpand all lines: PlayFabSdk/src/Typings/PlayFab/PlayFabClientApi.d.ts +5Lines changed: 5 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -3748,6 +3748,11 @@ declare module PlayFabClientModels { | 3748 | 3748 |
| 3749 | 3749 | /** https://api.playfab.com/Documentation/Entity/datatype/PlayFab.Client.Models/PlayFab.Client.Models.RegisterPlayFabUserResult */ | 3750 | 3750 | export interface RegisterPlayFabUserResult extends PlayFabModule.IPlayFabResultCommon { | | 3751 | + /** | | 3752 | + * If LoginTitlePlayerAccountEntity flag is set on the login request the title_player_account will also be logged in and | | 3753 | + * returned. | | 3754 | + */ | | 3755 | + EntityToken?: EntityTokenResponse; | 3751 | 3756 | /** PlayFab unique identifier for this newly created account. */ | 3752 | 3757 | PlayFabId?: string; | 3753 | 3758 | /** Unique token identifying the user and game at the server level, for the current session. */ | |
Collapse file Copy file name to clipboardExpand all lines: PlayFabSdk/src/Typings/PlayFab/PlayFabEntityApi.d.ts +24Lines changed: 24 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -100,6 +100,11 @@ declare module PlayFabEntityModule { | 100 | 100 | * https://api.playfab.com/Documentation/Entity/method/GetProfile | 101 | 101 | */ | 102 | 102 | GetProfile(request: PlayFabEntityModels.GetEntityProfileRequest, callback: PlayFabModule.ApiCallback<PlayFabEntityModels.GetEntityProfileResponse>, customData?: any, extraHeaders?: { [key: string]: string }): void; | | 103 | + /** | | 104 | + * Retrieves the entity's profile. | | 105 | + * https://api.playfab.com/Documentation/Entity/method/GetProfiles | | 106 | + */ | | 107 | + GetProfiles(request: PlayFabEntityModels.GetEntityProfilesRequest, callback: PlayFabModule.ApiCallback<PlayFabEntityModels.GetEntityProfilesResponse>, customData?: any, extraHeaders?: { [key: string]: string }): void; | 103 | 108 | /** | 104 | 109 | * Initiates file uploads to an entity's profile. | 105 | 110 | * https://api.playfab.com/Documentation/Entity/method/InitiateFileUploads | @@ -553,6 +558,25 @@ declare module PlayFabEntityModels { | 553 | 558 |
| 554 | 559 | } | 555 | 560 |
| | 561 | + /** https://api.playfab.com/Documentation/Entity/datatype/PlayFab.Entity.Models/PlayFab.Entity.Models.GetEntityProfilesRequest */ | | 562 | + export interface GetEntityProfilesRequest extends PlayFabModule.IPlayFabRequestCommon { | | 563 | + /** | | 564 | + * Determines whether the objects will be returned as an escaped JSON string or as a un-escaped JSON object. Default is | | 565 | + * JSON string. | | 566 | + */ | | 567 | + DataAsObject?: boolean; | | 568 | + /** Entity keys of the profiles to load. Must be between 1 and 25 */ | | 569 | + Entities: EntityKey[]; | | 570 | + | | 571 | + } | | 572 | + | | 573 | + /** https://api.playfab.com/Documentation/Entity/datatype/PlayFab.Entity.Models/PlayFab.Entity.Models.GetEntityProfilesResponse */ | | 574 | + export interface GetEntityProfilesResponse extends PlayFabModule.IPlayFabResultCommon { | | 575 | + /** Entity profiles */ | | 576 | + Profiles?: EntityProfileBody[]; | | 577 | + | | 578 | + } | | 579 | + | 556 | 580 | /** https://api.playfab.com/Documentation/Entity/datatype/PlayFab.Entity.Models/PlayFab.Entity.Models.GetEntityTokenRequest */ | 557 | 581 | export interface GetEntityTokenRequest extends PlayFabModule.IPlayFabRequestCommon { | 558 | 582 | /** The entity to perform this action on. */ | |
Collapse file Copy file name to clipboardExpand all lines: PlayFabSdk/src/Typings/PlayFab/PlayFabServerApi.d.ts +8-1Lines changed: 8 additions & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -1634,6 +1634,7 @@ declare module PlayFabServerModels { | 1634 | 1634 | | "Closed"; | 1635 | 1635 |
| 1636 | 1636 | type GenericErrorCodes = "Success" | | 1637 | + | "UnkownError" | 1637 | 1638 | | "InvalidParams" | 1638 | 1639 | | "AccountNotFound" | 1639 | 1640 | | "AccountBanned" | @@ -1994,7 +1995,13 @@ declare module PlayFabServerModels { | 1994 | 1995 | | "EmailReportAlreadySent" | 1995 | 1996 | | "EmailReportRecipientBlacklisted" | 1996 | 1997 | | "EventNamespaceNotAllowed" | 1997 | | - | "EventEntityNotAllowed"; | | 1998 | + | "EventEntityNotAllowed" | | 1999 | + | "InvalidEntityType" | | 2000 | + | "NullTokenResultFromAad" | | 2001 | + | "InvalidTokenResultFromAad" | | 2002 | + | "NoValidCertificateForAad" | | 2003 | + | "InvalidCertificateForAad" | | 2004 | + | "DuplicateDropTableId"; | 1998 | 2005 |
| 1999 | 2006 | /** https://api.playfab.com/Documentation/Entity/datatype/PlayFab.Server.Models/PlayFab.Server.Models.GetAllSegmentsRequest */ | 2000 | 2007 | export interface GetAllSegmentsRequest extends PlayFabModule.IPlayFabRequestCommon { | |
|